YARN-6132. SliderClient bondToCluster should call findInstance with live states filter. Contributed by Gour Saha

This commit is contained in:
Billie Rinaldi 2017-01-30 09:20:57 -08:00 committed by Jian He
parent 7edc154e0e
commit d943eb4c15

View File

@ -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);
}