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


##########
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:
   Changes look good! just one question, since we are using BatchSpanProcessor, 
is calling span.end() enough to make sure the span gets exporeyd before SCM 
shuts down? The test uses an in-memory collector so cant we still loose the 
span when SCM actualy exits?



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