rajeshkumarchandolu commented on code in PR #12145:
URL: https://github.com/apache/ozone/pull/12145#discussion_r4694512326


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/protocol/ScmBlockLocationProtocolServerSideTranslatorPB.java:
##########
@@ -192,8 +194,10 @@ private SCMBlockLocationResponse processMessage(
     } catch (IOException e) {
       RatisUtil.checkRatisException(e, scm.getBlockProtocolRpcPort(),
           scm.getScmId(), scm.getHostname(), ROLE_TYPE);
+      TracingUtil.recordExceptionInCurrentSpan(e);

Review Comment:
   Good catch — deleteKeyBlocks catches the exception in SCMBlockProtocolServer 
and returns a per-block result instead of throwing, so nothing reached the 
dispatcher. Fixed in 63ebe6ed52 
(https://github.com/apache/ozone/pull/12145/commits/63ebe6ed529231370a56bbbde1a008b49ffff921):
 the exception is now recorded on the current span, so DeleteScmKeyBlocks is 
marked as an error with the reason (e.g. "SafeModePrecheck failed for 
deleteBlocks").
   
   On "how many": a failure here always applies to the whole batch — every 
block in the request gets the same result code — and the request's blocks are 
already on the span through the KeyBlockToDelete audit attribute. Added 
testDeleteKeyBlocksFailureInResponseIsRecordedOnSpan, which fails deleteBlocks 
with a safe-mode SCMException and checks the span.



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