adoroszlai commented on a change in pull request #2337:
URL: https://github.com/apache/ozone/pull/2337#discussion_r656327745



##########
File path: 
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueHandler.java
##########
@@ -827,12 +829,25 @@ ContainerCommandResponseProto handleGetSmallFile(
         ChunkBuffer data = chunkManager.readChunk(kvContainer, blockID,
             chunkInfo, dispatcherContext);
         dataBuffers.addAll(data.toByteStringList(byteBufferToByteString));
-        chunkInfoProto = chunk;
+        chunk.getChecksumData().getChecksumsList().stream().forEach(
+            (ck -> checksumBuilder.addChecksums(ck)));

Review comment:
       Please try to avoid streams on read/write path 
([HDDS-3702](https://issues.apache.org/jira/browse/HDDS-3702)).




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to