Repository navigation
Another distributed race condition, #1571 - #1609
Conversation
e3eb373 to
b633a2d
Compare
There was a problem hiding this comment.
Changing a bit the pattern for reducing test code duplication
There was a problem hiding this comment.
Just to check where this one is inserted in the 2PC. It appears, anywhere after the first phase: can occurs before second phase, concurrently to it, or after, varying from one test run to the other. Sometimes it is even on the same thread than a second phase (obviously not occurring concurrently those times).
There was a problem hiding this comment.
More logs in order to detect more easily thing occurring concurrently. (Adding the thread number is an indication too, but who knows if those threads are launched concurrently or one after another with some synchronization mechanism?)
There was a problem hiding this comment.
It appears I had messed them up again in the previous PR, sorry...
|
@fredericDelaporte thanks for this. However, now that we have official confirmation that the 2nd phase is asynchronous, I'm wondering if it still makes sense to have AssertEventQueueCoherent - your explicit tests are failing because we see in "incoherent" sequence of events, but we now know that this sequence is in fact the expected behavior... Shouldn't remove this check? |
|
BTW the same is probably true of the check that data has been committed to the table. Ideally, we should:
What do you think? If you agree, do you want to amend your PR? |
|
Yes those checks are no more really relevant. It should no more cause a failure, going to amend. |
|
Rebased, and changed as written above and in #1610 review. |
…lback race, enabling fixed race. npgsql#1571
|
Failure of the |
As said in #1571, test demonstrating another distributed race condition with Npgsql.