sreejasahithi commented on code in PR #9461:
URL: https://github.com/apache/ozone/pull/9461#discussion_r2598379395


##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/StreamBlockInputStream.java:
##########
@@ -399,7 +403,7 @@ private ByteBuffer read(int length, boolean preRead) throws 
IOException {
     }
 
     ByteBuffer readFromQueue() throws IOException {
-      final ReadBlockResponseProto readBlock = poll(10, TimeUnit.SECONDS);
+      final ReadBlockResponseProto readBlock = poll(readTimeoutMs, 
TimeUnit.SECONDS);

Review Comment:
   Thanks @Russole for working on this, left few comments
   
   Because readTimeoutMs is in milliseconds, you must pass 
TimeUnit.MILLISECONDS so the timeout isn’t misinterpreted as seconds 
   ```suggestion
         final ReadBlockResponseProto readBlock = poll(readTimeoutMs, 
TimeUnit.MILLISECONDS);
   ```
   



-- 
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]

Reply via email to