Repository navigation
Conversation
7e6eb95 to
4adbb35
Compare
This comment was marked as outdated.
This comment was marked as outdated.
steve-chavez
left a comment
There was a problem hiding this comment.
LGTM. Disregard previous comment, just read the test.
There is a real world condition that triggers this, it's just very rare: when the worker is waiting in |
4adbb35 to
be28992
Compare
fdf32b3 to
8c3e4a2
Compare
If the first call to wait_event returned with an EINTR error, the continue statement jumped the control to the while (running_handles > 0) condition. Since running_handles was initialized to 0, it exited the loop and committed the open transaction, dropping the entire batch without processing it.
8c3e4a2 to
8d26ce4
Compare
|
Can we fix the spelling in the PR title? withour -> without |
Done |
If the first call to
wait_eventreturned with anEINTRerror, the continue statement jumped the control to thewhile (running_handles > 0)condition. Sincerunning_handleswas initialized to 0, it exited the loop and committed the open transaction, dropping the entire batch without processing it.Since it is timing dependent and hard to write a deterministic test for, a test reproducing with sleeping is committed here: e73dd12