Skip to content

Commit

Permalink
SAMZA-2795: Set thread to daemon thread for operator executor service
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameborat committed Nov 8, 2023
1 parent 24e530d commit 0e137de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ public ExecutorService getOperatorExecutor(TaskName taskName, Config config) {
} else {
LOG.info("Using single threaded thread pool as operator thread pool for task {}", key.getTaskName());
operatorExecutor = Executors.newSingleThreadExecutor(
new ThreadFactoryBuilder().setNameFormat("Samza " + key.getTaskName() + " Thread-%d").build());
new ThreadFactoryBuilder().setNameFormat("Samza " + key.getTaskName() + " Thread-%d")
.setDaemon(true)
.build());
}

return operatorExecutor;
Expand Down

0 comments on commit 0e137de

Please sign in to comment.