Skip to content

Commit e14c380

Browse files
author
slfan1989
committed
YARN-11357. Fix CheckStyle.
1 parent 75a9904 commit e14c380

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestFederationClientInterceptorRetry.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import org.apache.hadoop.yarn.api.records.Priority;
3939
import org.apache.hadoop.yarn.conf.YarnConfiguration;
4040
import org.apache.hadoop.yarn.exceptions.YarnException;
41-
import org.apache.hadoop.yarn.server.federation.policies.manager.UniformBroadcastPolicyManager;
4241
import org.apache.hadoop.yarn.server.federation.store.impl.MemoryFederationStateStore;
4342
import org.apache.hadoop.yarn.server.federation.store.records.ApplicationHomeSubCluster;
4443
import org.apache.hadoop.yarn.server.federation.store.records.GetApplicationHomeSubClusterRequest;
@@ -290,7 +289,7 @@ public void testSubmitApplicationTwoBadOneGood() throws Exception {
290289
LOG.info("Test submitApplication with two bad, one good SC.");
291290
setupCluster(Arrays.asList(bad1, bad2, good));
292291
final ApplicationId appId =
293-
ApplicationId.newInstance(System.currentTimeMillis(), 1);
292+
ApplicationId.newInstance(System.currentTimeMillis(), 1);
294293

295294
// Use the TestSequentialRouterPolicy strategy,
296295
// which will sort the SubClusterId because good=0, bad1=1, bad2=2
@@ -324,7 +323,8 @@ private void checkSubmitSubCluster(ApplicationId appId, SubClusterId expectSubCl
324323
stateStore.getApplicationHomeSubCluster(getAppRequest);
325324
Assert.assertNotNull(getAppResponse);
326325
Assert.assertNotNull(getAppResponse);
327-
ApplicationHomeSubCluster responseHomeSubCluster = getAppResponse.getApplicationHomeSubCluster();
326+
ApplicationHomeSubCluster responseHomeSubCluster =
327+
getAppResponse.getApplicationHomeSubCluster();
328328
Assert.assertNotNull(responseHomeSubCluster);
329329
SubClusterId respSubClusterId = responseHomeSubCluster.getHomeSubCluster();
330330
Assert.assertEquals(expectSubCluster, respSubClusterId);

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestSequentialRouterPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public class TestSequentialRouterPolicy extends AbstractRouterPolicy {
3535

3636
@Override
3737
public void reinitialize(FederationPolicyInitializationContext policyContext)
38-
throws FederationPolicyInitializationException {
38+
throws FederationPolicyInitializationException {
3939
FederationPolicyInitializationContextValidator.validate(policyContext,
4040
this.getClass().getCanonicalName());
4141
setPolicyContext(policyContext);
4242
}
4343

4444
@Override
4545
protected SubClusterId chooseSubCluster(String queue,
46-
Map<SubClusterId, SubClusterInfo> preSelectSubClusters) throws YarnException {
46+
Map<SubClusterId, SubClusterInfo> preSelectSubClusters) throws YarnException {
4747
/**
4848
* This strategy is only suitable for testing. We need to obtain subClusters sequentially.
4949
* We have 3 subClusters, 1 goodSubCluster and 2 badSubClusters.

0 commit comments

Comments
 (0)