Skip to content

Commit 5281573

Browse files
author
slfan1989
committed
YARN-11357. Fix CheckStyle.
1 parent fa8d7ca commit 5281573

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public void testSubmitApplicationTwoBadOneGood() throws Exception {
330330
// We will get bad1
331331
checkSubmitSubCluster(appId, bad1);
332332

333-
// Set the retryNum to 1
333+
// Set the retryNum to 2
334334
// 1st time will use bad2, 2nd time will use bad1, 3rd good
335335
interceptor.setNumSubmitRetries(2);
336336
SubmitApplicationResponse submitAppResponse = interceptor.submitApplication(request);

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
import org.apache.hadoop.yarn.server.federation.policies.amrmproxy.BroadcastAMRMProxyPolicy;
2222
import org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager;
2323

24+
/**
25+
* This PolicyManager is used for testing and will contain the
26+
* {@link TestSequentialRouterPolicy} policy.
27+
*
28+
* When we test FederationClientInterceptor Retry,
29+
* we hope that SubCluster can return in a certain order, not randomly.
30+
* We can view the policy description by linking to TestSequentialRouterPolicy.
31+
*/
2432
public class TestSequentialBroadcastPolicyManager extends AbstractPolicyManager {
2533
public TestSequentialBroadcastPolicyManager() {
2634
// this structurally hard-codes two compatible policies for Router and

0 commit comments

Comments
 (0)