kfaraz commented on code in PR #18170:
URL: https://github.com/apache/druid/pull/18170#discussion_r2184226572


##########
server/src/main/java/org/apache/druid/segment/realtime/appenderator/BatchAppenderator.java:
##########
@@ -634,6 +634,7 @@ public ListenableFuture<Object> persistAll(@Nullable final 
Committer committer)
                      numPersistedRows, bytesPersisted, persistMillis
             );
             log.info("Persist is done.");
+            clearTaskThreadContext();

Review Comment:
   Updated the javadoc for `setTaskThreadContext()`. Let me know what you think 
about the try-finally.



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