You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestFederationClientInterceptorRetry.java
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestSequentialRouterPolicy.java
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,20 @@
31
31
importjava.util.List;
32
32
importjava.util.Map;
33
33
34
+
/**
35
+
* This is a test strategy,
36
+
* the purpose of this strategy is to return subClusters in descending order of subClusterId.
37
+
*
38
+
* This strategy is to verify the situation of Retry during the use of FederationClientInterceptor.
39
+
* The conditions of use are as follows:
40
+
* 1.We require subClusterId to be an integer.
41
+
* 2.The larger the subCluster, the sooner the representative is selected.
42
+
*
43
+
* We have 4 subClusters, 2 normal subClusters, 2 bad subClusters.
44
+
* We expect to select badSubClusters first and then goodSubClusters during testing.
45
+
* We can set the subCluster like this, good1 = [0], good2 = [1], bad1 = [2], bad2 = [3].
46
+
* This strategy will return [3, 2, 1, 0], The selection order of subCluster is bad2, bad1, good2, good1.
0 commit comments