ArafatKhan2198 commented on code in PR #5407:
URL: https://github.com/apache/ozone/pull/5407#discussion_r1363258363
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerStateMachine.java:
##########
@@ -123,10 +124,11 @@ public OzoneManagerStateMachine(OzoneManagerRatisServer
ratisServer,
this.handler = new OzoneManagerRequestHandler(ozoneManager,
ozoneManagerDoubleBuffer);
-
+ this.threadPrefix = ozoneManager.getNodeDetails().threadNamePrefix();
ThreadFactory build = new ThreadFactoryBuilder().setDaemon(true)
- .setNameFormat("OM StateMachine ApplyTransaction Thread - %d").build();
+ .setNameFormat(threadPrefix +
+ "OMStateMachineApplyTransactionThread - %d").build();
this.executorService = HadoopExecutors.newSingleThreadExecutor(build);
Review Comment:
Done !
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerDoubleBuffer.java:
##########
@@ -202,11 +210,11 @@ private OzoneManagerDoubleBuffer(OMMetadataManager
omMetadataManager,
OzoneManagerDoubleBufferMetrics.create();
this.indexToTerm = indexToTerm;
this.flushNotifier = flushNotifier;
-
+ this.threadPrefix = threadPrefix;
isRunning.set(true);
// Daemon thread which runs in background and flushes transactions to DB.
daemon = new Daemon(this::flushTransactions);
- daemon.setName("OMDoubleBufferFlushThread");
+ daemon.setName(threadPrefix + "OMDoubleBufferFlushThread");
Review Comment:
Done !
--
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]