jojochuang commented on code in PR #9101:
URL: https://github.com/apache/ozone/pull/9101#discussion_r2404586294
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/HddsUtils.java:
##########
@@ -734,11 +735,22 @@ public static String
processForDebug(ContainerCommandRequestProto msg) {
return null;
}
- if (msg.hasWriteChunk() || msg.hasPutSmallFile()) {
+ if (msg.hasWriteChunk() || msg.hasPutBlock() || msg.hasPutSmallFile()) {
final ContainerCommandRequestProto.Builder builder = msg.toBuilder();
if (msg.hasWriteChunk()) {
- builder.getWriteChunkBuilder().setData(REDACTED);
+ builder.getWriteChunkBuilder()
+ .setData(REDACTED)
+ .getChunkDataBuilder()
+ .clearChecksumData();
Review Comment:
there's a corner case: if the block field is set, it should also remove the
chunk checksum from it.
--
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]