szetszwo commented on code in PR #5251:
URL: https://github.com/apache/ozone/pull/5251#discussion_r1317987417
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockOutputStream.java:
##########
@@ -703,6 +705,19 @@ CompletableFuture<ContainerCommandResponseProto>
writeChunkToContainer(
LOG.debug("Writing chunk {} length {} at offset {}",
chunkInfo.getChunkName(), effectiveChunkSize, offset);
}
+
+ final ChunkInfo previous = previousChunkInfo.getAndSet(chunkInfo);
+ final long expectedOffset = previous == null ? 0
+ : chunkInfo.getChunkName().equals(previous.getChunkName()) ?
Review Comment:
https://github.com/apache/ozone/blob/200e5fe41c07ad4993fec5647d2cd8774798da7c/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockOutputStream.java#L698
On a second thought, the chunk name will never be the same due to line 698
above.
--
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]