Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.7.0
-
None
Description
In SendingAccountor.waitForSendToComplete():
public synchronized void waitForSendComplete() { try { wait.acquire(batchesSent.get()); batchesSent.set(0); } catch (InterruptedException e) { logger.warn("Failure while waiting for send complete.", e); // TODO InterruptedException } }
It's possible that between the time batchesSent.get() returns and that batchesSent.set(0) are executed, that additional batches could have been sent. If that happens, then the set(0) overwrites the count, losing those. This needs to be better protected against that.
Attachments
Attachments
Issue Links
- is duplicated by
-
DRILL-1909 Fix SendingAccountor thread safety
- Resolved