FrankChen021 commented on code in PR #19827:
URL: https://github.com/apache/druid/pull/19827#discussion_r3686802629
##########
processing/src/main/java/org/apache/druid/java/util/http/client/io/AppendableByteArrayInputStream.java:
##########
@@ -51,15 +51,15 @@ public void add(byte[] bytesToAdd)
synchronized (singleByteReaderDoer) {
bytes.addLast(bytesToAdd);
available += bytesToAdd.length;
- singleByteReaderDoer.notify();
+ singleByteReaderDoer.notifyAll();
}
Review Comment:
Fixed in 6c387d9faa: add() again uses notify() so data arrival wakes only
one reader, while done() and exceptionCaught() retain notifyAll() to release
every terminal waiter. The multi-waiter terminal tests still pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]