sravani-revuri commented on code in PR #12145:
URL: https://github.com/apache/ozone/pull/12145#discussion_r4705916747


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java:
##########
@@ -214,6 +220,8 @@ public CompletableFuture<Message> applyTransaction(
         // Otherwise, it's considered as a logical rejection and is returned to
         // Ratis client, leaving SCM intact.
         applyTransactionFuture.completeExceptionally(ex);
+      } finally {
+        span.end();

Review Comment:
   > Flushing the tracer from the shutdown hook is the natural fix, and it 
applies to every service rather than just SCM, so I'd handle it separately 
instead of in this PR.
   
   i believe hitting this scenario on long living processes like om scm and dn 
is very rare. flush tracing currently exists for shorter client process and 
does a blocking call. And most scenarios sampling will be on where the user 
will voluntarily be dropping data. This was discussed previously and I think 
this tradeoff is reasonable. It is okay to lose a few spans in case of process 
shut-down. No need for this change.
   
   similar reasoning used before: 
https://github.com/apache/ozone/pull/10569#discussion_r3465386669



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