adoroszlai commented on a change in pull request #551: HDDS-2717. Handle chunk increments in datanode URL: https://github.com/apache/hadoop-ozone/pull/551#discussion_r387788220
########## File path: hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockOutputStream.java ########## @@ -81,18 +82,17 @@ private final BlockData.Builder containerBlockData; private XceiverClientManager xceiverClientManager; private XceiverClientSpi xceiverClient; - private final ContainerProtos.ChecksumType checksumType; private final int bytesPerChecksum; private int chunkIndex; - private int chunkSize; + private final AtomicLong chunkOffset = new AtomicLong(); Review comment: That was my initial attempt, but it turned out that for retries a new `BlockOutputStream` with 0 offset is created, so I needed to change the retry logic: f8429f8b946318e73bff6497ab619a0e53d78562 ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
