ptlrs opened a new pull request, #9101:
URL: https://github.com/apache/ozone/pull/9101

   ## What changes were proposed in this pull request?
   This PR reduces the verbosity of PutBlock and WriteChunk requests.
   1. Uses the existing `HDDSUtils.processForDebug` method to simplify the 
logged request
   2. Removes checksum information from the logged request
   
   ### Before
   ```java
   2025-10-04 23:27:58,816 [grpc-default-executor-0] ERROR impl.OrderedAsync 
(OrderedAsync.java:lambda$send$4(181)) - Failed to send request, 
message=cmdType: PutBlock
   traceID: ""
   containerID: 1
   datanodeUuid: "1d20dfb4-9645-4c2c-9966-ff839e5501f2"
   putBlock {
     blockData {
       blockID {
         containerID: 1
         localID: 115816896921600001
         blockCommitSequenceId: 0
       }
       chunks {
         chunkName: "115816896921600001.data.0"
         offset: 0
         len: 100
         checksumData {
           type: CRC32
           bytesPerChecksum: 1048576
           checksums: "\311e\n2"
         }
       }
       size: 100
     }
   }
   version: 3
   , data.size=0
   java.util.concurrent.CompletionException: 
org.apache.ratis.protocol.exceptions.StateMachineException: 
org.apache.hadoop.hdds.scm.container.common.helpers.StorageContainerException: 
Block already finalized
   ```
   
   ```java
   2025-10-04 23:48:15,341 [grpc-default-executor-0] ERROR impl.OrderedAsync 
(OrderedAsync.java:lambda$send$4(181)) - Failed to send request, 
message=cmdType: WriteChunk
   traceID: ""
   containerID: 1
   datanodeUuid: "da288b89-e65e-4ca7-89a9-b1ed6f08eb2c"
   writeChunk {
     blockID {
       containerID: 1
       localID: 115816896921600001
       blockCommitSequenceId: 0
     }
     chunkData {
       chunkName: "115816896921600001.data.0"
       offset: 0
       len: 100
       checksumData {
         type: CRC32
         bytesPerChecksum: 1048576
         checksums: "\347^\222\003"
       }
     }
   }
   version: 3
   , data.size=100
   java.util.concurrent.CompletionException: 
org.apache.ratis.protocol.exceptions.StateMachineException: 
org.apache.hadoop.hdds.scm.container.common.helpers.StorageContainerException: 
Block already finalized
   ```
   
   ### After
   
   ```java
   2025-10-04 23:45:09,611 [grpc-default-executor-1] ERROR impl.OrderedAsync 
(OrderedAsync.java:lambda$send$4(181)) - Failed to send request, 
message=cmdType: PutBlock traceID: "" containerID: 1 datanodeUuid: 
"d361bc09-ccc1-476c-a4cc-e3673712b1a0" putBlock { blockData { blockID { 
containerID: 1 localID: 115816896921600001 blockCommitSequenceId: 0 } chunks { 
chunkName: "115816896921600001.data.0" offset: 0 len: 100 } size: 100 } } 
version: 3, data.size=0
   java.util.concurrent.CompletionException: 
org.apache.ratis.protocol.exceptions.StateMachineException: 
org.apache.hadoop.hdds.scm.container.common.helpers.StorageContainerException: 
Block already finalized
   ```
   
   ```java
   2025-10-04 23:45:09,605 [grpc-default-executor-1] ERROR impl.OrderedAsync 
(OrderedAsync.java:lambda$send$4(181)) - Failed to send request, 
message=cmdType: WriteChunk traceID: "" containerID: 1 datanodeUuid: 
"d361bc09-ccc1-476c-a4cc-e3673712b1a0" writeChunk { blockID { containerID: 1 
localID: 115816896921600001 blockCommitSequenceId: 0 } chunkData { chunkName: 
"115816896921600001.data.0" offset: 0 len: 100 } data: "<redacted>" } version: 
3, data.size=100
   java.util.concurrent.CompletionException: 
org.apache.ratis.protocol.exceptions.StateMachineException: 
org.apache.hadoop.hdds.scm.container.common.helpers.StorageContainerException: 
Block already finalized
   ```
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-13739
   
   
   ## How was this patch tested?
   
   https://github.com/ptlrs/ozone/actions/runs/18255367886


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

Reply via email to