Add test for append and repair with partition simulator #33
Loading…
Reference in a new issue
No description provided.
Delete branch "ss-repair-with-partition-simulator"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds EQC (statem) test for file operations and repair under
simulated network partition.
The main purpose is to confirm no dataloss, i.e. every chunk that has
been successfully written (ACK received) by append/write opration will
be read after partition heals.
Test sometimes fails, following cases should be investigated respectively.
bad_return_value
frommachi_cr_client
. Probably just code bug.Output: https://gist.github.com/shino/6e917e1afc26a83cb01e
machi_cr_client:append_chunk
responds ok but{Offset, Length, Key}
is the same one before witten. Maybe test code bug, maybe around simulator,
maybe actual code... don't know yet...
Output: https://gist.github.com/shino/f38140fbe1c4da8e8fa4
(full version, long.
59a84638cd/gistfile1.txt
)read_chunk
for written chunk returns different binary from the one whenit was written. No idea at the moment
Output: https://gist.github.com/shino/011f3d3e3f4028093d58#file-gistfile1-txt-L10569-L10580
This looks very cool, @shino! Looking forward to running it tomorrow. 🍰
Bug #36 is an important one to fix. My guess is that it addresses Shino's description of number two and number three? I have not looked at the first one yet ... and probably will not have time today, sorry! (Need to finish Ricon-related stuff and pack for travel tomorrow.)
Agree > #36 will fix 2. and 3.
For the first one
bad_return_value
, quick fix is at903e9395c8
, justreply
tag missing forhandle_call
return. I will create another PR with small eunit unless too difficult 😅+1 from me (just one small change request) but I have been in a hurry today. @mrallen1 and/or @kuenishi, could you please review also?
Also/otherwise, I'm thrilled that this is finding bugs even before the PR is merged.
^_^
I'll try a review on Wednesday unless Mark takes while we're in holiday.
@slfritchie Thanks for review! I pushed the commit to address your comment.
My expectation was wrong and somewhat deeper. Opened Separate issue #39.
I often see (not always) this error:
It pretty look like the 3rd issue but not sure.
That is 2nd one. Please refer #36 , which includes temporary(?) patch.
+1 but please address one small comment before merge. Great job!