Skip to content

Commit ded9f55

Browse files
committed
YARN-9013. Fix CheckStyle.
1 parent 27ace98 commit ded9f55

File tree

2 files changed

+7
-4
lines changed
  • hadoop-yarn-project/hadoop-yarn

2 files changed

+7
-4
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4267,7 +4267,7 @@ public static boolean isAclEnabled(Configuration conf) {
42674267
*/
42684268
public static final String ROUTER_CLIENTRM_SUBMIT_RETRY =
42694269
ROUTER_PREFIX + "submit.retry";
4270-
public static final int DEFAULT_ROUTER_CLIENTRM_SUBMIT_RETRY = 1;
4270+
public static final int DEFAULT_ROUTER_CLIENTRM_SUBMIT_RETRY = 3;
42714271

42724272
/**
42734273
* GetNewApplication and SubmitApplication request retry interval time.
@@ -4367,7 +4367,7 @@ public static boolean isAclEnabled(Configuration conf) {
43674367
* the default value is 0s.
43684368
*/
43694369
public static final long DEFAULT_ROUTER_USER_CLIENT_THREAD_POOL_KEEP_ALIVE_TIME =
4370-
TimeUnit.SECONDS.toMillis(30); // 0s
4370+
TimeUnit.SECONDS.toMillis(0); // 0s
43714371

43724372
/** The address of the Router web application. */
43734373
public static final String ROUTER_WEBAPP_ADDRESS =

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/test/java/org/apache/hadoop/yarn/server/globalpolicygenerator/applicationcleaner/TestDefaultApplicationCleaner.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,11 @@ public void testConcurrentNewApp() throws YarnException {
192192
GetApplicationsHomeSubClusterRequest.newInstance();
193193
GetApplicationsHomeSubClusterResponse applicationsHomeSubCluster =
194194
stateStore.getApplicationsHomeSubCluster(appHomeSubClusterRequest);
195-
int size = applicationsHomeSubCluster.getAppsHomeSubClusters().size();
196-
Assert.assertEquals(1, size);
195+
Assert.assertNotNull(applicationsHomeSubCluster);
196+
List<ApplicationHomeSubCluster> appsHomeSubClusters =
197+
applicationsHomeSubCluster.getAppsHomeSubClusters();
198+
Assert.assertNotNull(appsHomeSubClusters);
199+
Assert.assertEquals(1, appsHomeSubClusters.size());
197200

198201
// The concurrently added app should be still there
199202
Assert.assertEquals(1, registryClient.getAllApplications().size());

0 commit comments

Comments
 (0)