Skip to content

Commit

Permalink
Align thread name when helix task executor are recreated.(#2999)
Browse files Browse the repository at this point in the history
Align thread name when helix task executor are recreated.
  • Loading branch information
xyuanlu authored Jan 21, 2025
1 parent e6adf5b commit 886bc24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ void init() {
MsgHandlerFactoryRegistryItem item = _hdlrFtyRegistry.get(msgType);
ExecutorService pool = _executorMap.computeIfAbsent(msgType, type -> {
ExecutorService newPool = Executors.newFixedThreadPool(item.threadPoolSize(),
r -> new Thread(r, "HelixTaskExecutor-message_handle_" + type));
r -> new Thread(r, "HelixTaskExecutor-message_handle_" + thread_uid.getAndIncrement()));
_monitor.createExecutorMonitor(type, newPool);
return newPool;
});
Expand Down

0 comments on commit 886bc24

Please sign in to comment.