Skip to content

Commit d82194d

Browse files
author
liubin04
committed
fix checkstyle
1 parent a452103 commit d82194d

File tree

17 files changed

+18
-16
lines changed

17 files changed

+18
-16
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/AbstractConfigurableFederationPolicy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.apache.hadoop.yarn.exceptions.YarnException;
2626
import org.apache.hadoop.yarn.server.federation.policies.dao.WeightedPolicyInfo;
2727
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyInitializationException;
28-
import org.apache.hadoop.yarn.server.federation.policies.exceptions.NoActiveSubclustersException;
2928
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterId;
3029
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo;
3130

@@ -139,7 +138,8 @@ public void setPolicyContext(
139138
*
140139
* @return the map of ids to info for all active subclusters.
141140
*
142-
* @throws IOException if we can't get the list.
141+
* @throws YarnException if we can't get the list.
142+
* @throws IOException if no active subclusters.
143143
*/
144144
protected Map<SubClusterId, SubClusterInfo> getActiveSubclusters()
145145
throws YarnException, IOException {

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/FederationPolicyUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.apache.hadoop.yarn.conf.YarnConfiguration;
3131
import org.apache.hadoop.yarn.exceptions.YarnException;
3232
import org.apache.hadoop.yarn.server.federation.policies.amrmproxy.FederationAMRMProxyPolicy;
33-
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyException;
3433
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyInitializationException;
3534
import org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager;
3635
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterId;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/RouterPolicyFacade.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public RouterPolicyFacade(Configuration conf,
125125
*
126126
* @throws YarnException if there are issues initializing policies, or no
127127
* valid sub-cluster id could be found for this app.
128+
* @throws IOException if no active subclusters.
128129
*/
129130
public SubClusterId getHomeSubcluster(
130131
ApplicationSubmissionContext appSubmissionContext,
@@ -232,6 +233,7 @@ public synchronized void reset() {
232233
*
233234
* @throws YarnException if there are issues initializing policies, or no
234235
* valid sub-cluster id could be found for this reservation.
236+
* @throws IOException if no active subclusters.
235237
*/
236238
public SubClusterId getReservationHomeSubCluster(
237239
ReservationSubmissionRequest request) throws YarnException, IOException {

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/amrmproxy/FederationAMRMProxyPolicy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public interface FederationAMRMProxyPolicy
4747
* list of {@link ResourceRequest}s that should be forwarded to it
4848
* @throws YarnException in case the request is malformed or no viable
4949
* sub-clusters can be found.
50+
* @throws IOException if no active subclusters.
5051
*/
5152
Map<SubClusterId, List<ResourceRequest>> splitResourceRequests(
5253
List<ResourceRequest> resourceRequests,

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/router/AbstractRouterPolicy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public void validate(ApplicationSubmissionContext appSubmissionContext)
8383
* @return the chosen sub-cluster
8484
*
8585
* @throws YarnException if the policy fails to choose a sub-cluster
86+
* @throws IOException if no active subclusters.
8687
*/
8788
protected abstract SubClusterId chooseSubCluster(String queue,
8889
Map<SubClusterId, SubClusterInfo> preSelectSubClusters)

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/router/FederationRouterPolicy.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public interface FederationRouterPolicy extends ConfigurableFederationPolicy {
4747
* application.
4848
*
4949
* @throws YarnException if the policy cannot determine a viable subcluster.
50+
* @throws IOException if no active subclusters.
5051
*/
5152
SubClusterId getHomeSubcluster(
5253
ApplicationSubmissionContext appSubmissionContext,
@@ -60,6 +61,7 @@ SubClusterId getHomeSubcluster(
6061
* @return a mapping of sub-clusters and the requests
6162
*
6263
* @throws YarnException if the policy fails to choose a sub-cluster
64+
* @throws IOException if no active subclusters.
6365
*/
6466
SubClusterId getReservationHomeSubcluster(
6567
ReservationSubmissionRequest request) throws YarnException, IOException;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/router/LoadBasedRouterPolicy.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.apache.hadoop.yarn.exceptions.YarnException;
2525
import org.apache.hadoop.yarn.server.federation.policies.FederationPolicyInitializationContext;
2626
import org.apache.hadoop.yarn.server.federation.policies.dao.WeightedPolicyInfo;
27-
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyException;
2827
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyInitializationException;
2928
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterId;
3029
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/router/PriorityRouterPolicy.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
import org.apache.hadoop.ipc.RetriableException;
2424
import org.apache.hadoop.yarn.exceptions.YarnException;
25-
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyException;
2625
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterId;
2726
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo;
2827
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/router/UniformRandomRouterPolicy.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.apache.hadoop.yarn.exceptions.YarnException;
2828
import org.apache.hadoop.yarn.server.federation.policies.FederationPolicyInitializationContext;
2929
import org.apache.hadoop.yarn.server.federation.policies.FederationPolicyInitializationContextValidator;
30-
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyException;
3130
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyInitializationException;
3231
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterId;
3332
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo;

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/policies/router/WeightedRandomRouterPolicy.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.apache.hadoop.ipc.RetriableException;
2626
import org.apache.hadoop.yarn.exceptions.YarnException;
2727
import org.apache.hadoop.yarn.server.federation.policies.FederationPolicyUtils;
28-
import org.apache.hadoop.yarn.server.federation.policies.exceptions.FederationPolicyException;
2928
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterId;
3029
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo;
3130
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo;

0 commit comments

Comments
 (0)