Skip to content

Commit

Permalink
YARN-11588. [Federation] Fix uncleaned threads in yarn router thread …
Browse files Browse the repository at this point in the history
…pool executor (#6159) Contributed by Jeffrey Chang.

Reviewed-by: Inigo Goiri <[email protected]>
Signed-off-by: Shilun Fan <[email protected]>
  • Loading branch information
jchanggg authored Oct 12, 2023
1 parent 732d4e7 commit bd28ba3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ public void init(String userName) {
this.executorService = new ThreadPoolExecutor(numMinThreads, numMaxThreads,
keepAliveTime, TimeUnit.MILLISECONDS, workQueue, threadFactory);

// Adding this line so that unused user threads will exit and be cleaned up if idle for too long
this.executorService.allowCoreThreadTimeOut(true);

final Configuration conf = this.getConf();

try {
Expand Down

0 comments on commit bd28ba3

Please sign in to comment.