sadanand48 commented on a change in pull request #2835:
URL: https://github.com/apache/ozone/pull/2835#discussion_r748130949
##########
File path:
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockDataStreamOutput.java
##########
@@ -259,6 +268,19 @@ public void write(ByteBuffer b, int off, int len) throws
IOException {
}
final StreamBuffer buf = new StreamBuffer(b, off, len);
+
+ // Controls the number of buffers on the client.
+ if (futures.size() >= streamWindowSize) {
+ try {
+ futures.poll().get();
Review comment:
Q. Does this mean that once this window is reached i.e once 64 buffers
get filled , it will keep blocking (waiting for the future to complete) the
client for every buffer till the last one is written?
--
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]