YARN-6132. SliderClient bondToCluster should call findInstance with live states filter. Contributed by Gour Saha
This commit is contained in:
parent
7edc154e0e
commit
d943eb4c15
@ -3519,7 +3519,8 @@ private SliderClusterProtocol bondToCluster(String clustername) throws
|
||||
if (clustername == null) {
|
||||
throw unknownClusterException("(undefined)");
|
||||
}
|
||||
ApplicationReport instance = findInstance(clustername);
|
||||
ApplicationReport instance = findInstance(clustername,
|
||||
SliderUtils.getAllLiveAppStates());
|
||||
if (null == instance) {
|
||||
throw unknownClusterException(clustername);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user