Skip to content

Commit

Permalink
YARN-11011. Fix CheckStyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Oct 24, 2023
1 parent 75e63b0 commit 0599f31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,7 @@ public void init(String userName) {
keepAliveTime, TimeUnit.MILLISECONDS, workQueue, threadFactory);

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

final Configuration conf = this.getConf();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ public void testSubmitApplicationTwoBadNodeWithRealError() throws Exception {

final SubmitApplicationRequest request = mockSubmitApplicationRequest(appId);


LambdaTestUtils.intercept(YarnException.class, "RM is stopped",
() -> interceptor.submitApplication(request));
}
Expand Down

0 comments on commit 0599f31

Please sign in to comment.