Scott Lystig Fritchie
8cd41a7bf2
Clean up projection-related tests in machi_proxy_flu1_client:api_smoke_test
2015-10-14 12:49:48 +09:00
Mark Allen
ec9682520a
Fix tests with bad file names.
...
Either catch the {error, bad_arg} tuple or modify the file name to
conform to the machi conventions of prefix^uuid^seqno.
2015-10-13 21:13:12 -05:00
Scott Lystig Fritchie
2724960eaf
TODO MARK: added clarification to test/machi_flu_psup_test.erl
2015-10-12 15:43:45 +09:00
Scott Lystig Fritchie
5131ebdd16
Change eunit expectations from change to using psup
2015-10-12 15:38:47 +09:00
Scott Lystig Fritchie
cbf773215e
TODO MARK add comment for machi_cr_client_test:smoke_test2/0 failure
2015-10-12 15:29:54 +09:00
Scott Lystig Fritchie
8a8c4dcede
Adapt machi_cr_client_test:smoke_test2/0 to change in FLU semantics: partial_write -> unwritten
2015-10-12 14:22:47 +09:00
Mark Allen
f3e6d46e36
Fix chain manager failures disabling active mode
...
The FLU psup starts the chain manager in active mode by default
(as it should for normal run-time operation.) By adding the
{active_mode, false} tuple to the options list, we can
tell the chain manager that it should be explicitly manipulated
during tests.
2015-10-11 23:05:44 -05:00
Mark Allen
da0b331936
WIP
2015-10-11 23:05:27 -05:00
Mark Allen
855f94925c
Validate semantics on partial reads
2015-10-11 23:05:00 -05:00
Mark Allen
8187e01fe0
Use psup startup
2015-10-11 23:04:43 -05:00
Mark Allen
5926cef44a
Make test start up more reliable
2015-10-08 15:49:22 -05:00
Mark Allen
d3fe7ee181
Pull write-once files over to clean branch
...
I am treating the original write-once branch as a prototype
which I am now throwing away. I had too much work interleved
in there, so I felt like the best thing to do would be to cut
a new clean branch and pull the files over and start over
against a recent-ish master.
We will have to refactor the other things in FLU in a more
piecemeal fashion.
2015-10-02 16:29:09 -05:00
Scott Lystig Fritchie
6425cca13f
Fix broken eunit test
2015-09-21 21:44:03 +09:00
Scott Lystig Fritchie
69a304102e
Write public proj in all_members order only
2015-09-21 15:09:16 +09:00
Scott Lystig Fritchie
83e878eb07
More verbosity, whee
2015-09-20 14:06:55 +09:00
Scott Lystig Fritchie
6b4ed1c061
Verbose debugging cruft
2015-09-19 14:25:07 +09:00
Scott Lystig Fritchie
72bfa163ba
Small test bugfixes & verbose/debugging cruft
2015-09-19 14:16:54 +09:00
Scott Lystig Fritchie
5001406499
Add proplist-based configuration for TCP port and tmp dir for converge demo
2015-09-15 17:54:27 +09:00
Scott Lystig Fritchie
75c94420e0
Add test_ets_table to give programmatic slowdown
2015-09-14 22:52:41 +09:00
Scott Lystig Fritchie
b4f8bc8058
Add pretty_time(). Add CONFIRM verbose logging for none proj
2015-09-14 17:00:09 +09:00
Scott Lystig Fritchie
fdf78bdbbc
Tweak IsRelevantToMe_p in B10 (more)
...
Last night we hit a rare case of failed convergence.
f was out of sync with the rest of the world.
f: upi=[b,g,f] repairing=[a,c]
The "rest of the world" used a larger chain at:
*: upi=[c,b,g,a], repairing=[f]
And f refused to join the larger chain because of the way that
IsRelevantToMe_p was being calculated before this commit.
Hrrrm, though, I'm not convinced that this particular problem
is fixed 100% by this patch. What if the chain lengths were
the same but also UPI incompatible? e.g. if I remove 'a' from
the "real world (in the partition simulator)" example above:
f: upi=[b,g,f] repairing=[c]
*: upi=[c,b,g], repairing=[f]
Hrmmmmm, I may need to reintroduce the my-recent-adopted-projection-
flapping-like-counter thingie to try to break this kind of
incompatible deadlock.
2015-09-14 13:40:34 +09:00
Scott Lystig Fritchie
4fba6c0d33
Adjust converge test conditions slightly
2015-09-13 21:07:54 +09:00
Scott Lystig Fritchie
04369673b0
MaxFiles static file deletion isn't good for make_zerf(). Add some no-partition scenarios
2015-09-13 16:59:08 +09:00
Scott Lystig Fritchie
f3a0ee91cf
WIP: thread P_calc_current all the way to C100 for CP mode assist
2015-09-13 15:58:45 +09:00
Scott Lystig Fritchie
5efec1b6cd
Add upi_unanimous annotation to AP mode
2015-09-11 21:47:05 +09:00
Scott Lystig Fritchie
68f1ff68ee
Bugfix: broken eunit test
2015-09-11 17:52:40 +09:00
Scott Lystig Fritchie
a0c129c16d
Bugfix: wow, a chain state transition sanity check bug
2015-09-11 17:32:52 +09:00
Scott Lystig Fritchie
8df7d58365
Add partition simulator support to fitness service
2015-09-11 16:45:29 +09:00
Scott Lystig Fritchie
41737ae62a
Add delete_admin_down API implementation, oops!
2015-09-10 18:05:18 +09:00
Scott Lystig Fritchie
d45c249e89
Add admin down status API to fitness server
2015-09-10 17:30:11 +09:00
Scott Lystig Fritchie
c14b9ce50f
Minor cleanup, add more partitions to converge demo
2015-09-10 16:39:15 +09:00
Scott Lystig Fritchie
b7aa33c617
Yeah, nearly there. AP fails occasionally in multiple-asymmetric-partition sequence
2015-09-09 23:10:39 +09:00
Scott Lystig Fritchie
7af863d840
Add stubs of machi_fitness server
2015-09-08 16:13:07 +09:00
Scott Lystig Fritchie
185c9eb313
WIP: add failing eunit placeholder for spam
2015-09-07 15:38:23 +09:00
Scott Lystig Fritchie
4376ce9ec1
Remove all flap counting and inner projection stuff
2015-09-04 17:17:49 +09:00
Scott Lystig Fritchie
2e2f5f44c4
Another tweak to private_projections_are_stable()
2015-09-01 00:51:12 +09:00
Scott Lystig Fritchie
823b47bef3
Bugfix: convergence property for CP mode, again
2015-08-30 19:52:31 +09:00
Scott Lystig Fritchie
764708f3ef
Fix private_projections_are_stable() for long CP mode chains
2015-08-30 00:03:51 +09:00
Scott Lystig Fritchie
94394d3429
Bugfix: allow none proj to re-emerge from flapping (more)
...
See comments added in this commit at A40.
So far, I've been doing CP mode testing with a handful of (very useful)
network partition combinations using:
machi_chain_manager1_converge_demo:t(3, [{private_write_verbose,true}, {consistency_mode, cp_mode}, {witnesses, [a]}]).
Next steps:
* Expand number & types of partitions
* Expand to chain lengths of 5 and beyond
2015-08-29 21:36:53 +09:00
Scott Lystig Fritchie
ee19a0856b
WIP: justincase
2015-08-29 19:59:46 +09:00
Scott Lystig Fritchie
dc5ae4047a
Bugfix: react_to_env_A30 inner->norm fix, make_zerf() none proj derp fix
2015-08-29 18:01:13 +09:00
Scott Lystig Fritchie
85eb3567a3
Bugfix: convergence property for CP mode
2015-08-29 15:57:23 +09:00
Scott Lystig Fritchie
403cb5b7a6
WIP: improvements, but now flapping inner epoch keeps increasing {sigh}
2015-08-28 21:13:54 +09:00
Scott Lystig Fritchie
3dfe5c2677
WIP: fix annotation history on disk
2015-08-28 18:37:11 +09:00
Scott Lystig Fritchie
12b74a52fd
WIP: pre-dinner paranoid checkin
2015-08-27 18:45:27 +09:00
Scott Lystig Fritchie
28335a1310
Add CP mode unwedge. All eunit tests are passing again.
2015-08-26 18:47:39 +09:00
Scott Lystig Fritchie
e8f3ab381d
Add set_consistency_mode() to projection store API, use it
2015-08-26 14:57:51 +09:00
Scott Lystig Fritchie
833463f20d
Merge branch 'master' into slf/chain-manager/cp-mode4
2015-08-26 14:39:42 +09:00
Scott Lystig Fritchie
27656eafaa
Fix (via sleep, egadz) race condition in machi_flu_psup_test
2015-08-26 14:38:56 +09:00
Scott Lystig Fritchie
c12231c7b6
Fix other tests to accomodate new semantics
2015-08-25 19:45:31 +09:00