adoroszlai commented on code in PR #5407:
URL: https://github.com/apache/ozone/pull/5407#discussion_r1361597731
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/TrashPolicyOzone.java:
##########
@@ -286,6 +287,10 @@ protected class Emptier implements Runnable {
trashEmptierCorePoolSize, 1,
TimeUnit.SECONDS, new ArrayBlockingQueue<>(1024),
new ThreadPoolExecutor.CallerRunsPolicy());
+
+ // Set a custom thread name with the provided prefix
+ Thread.currentThread()
+ .setName(threadNamePrefix + "-" + Thread.currentThread().getName());
Review Comment:
> what Test did we run to get the generate logs you showed above?
I ran `TestOzoneFileSystem` (but you can run any other that has trash
enabled). Note I added the "updating thread name" log message temporarily, so
you won't see it. But you would see other log messages from the renamed thread.
--
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]