szetszwo commented on code in PR #11551:
URL: https://github.com/apache/ozone/pull/11551#discussion_r4287150366
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/StreamBlockInputStream.java:
##########
@@ -77,7 +77,9 @@ public class StreamBlockInputStream extends
BlockExtendedInputStream {
private final String name = "stream" + STREAM_ID.getAndIncrement();
private final BlockID blockID;
- private final long blockLength;
+ private long blockLength;
+ // The block is under construction, so its length is fetched from the
datanode before the first access.
+ private boolean underConstruction;
Review Comment:
Let's call it `needUpdateBlockLength` since setting underConstruction to
false is misleading (the block may be still underConstruction.)
--
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]