YARN-7565. Addendum to fix an incompatible change. Contributed by Wangda Tan.
This commit is contained in:
parent
17ba74be29
commit
95d4ec7fc0
|
@ -539,7 +539,5 @@ extends AbstractService {
|
|||
* @param e
|
||||
*/
|
||||
void onError(Throwable e);
|
||||
|
||||
void onContainersReceivedFromPreviousAttempts(List<Container> containers);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -360,8 +360,11 @@ extends AMRMClientAsync<T> {
|
|||
}
|
||||
|
||||
if (!response.getContainersFromPreviousAttempts().isEmpty()) {
|
||||
handler.onContainersReceivedFromPreviousAttempts(
|
||||
response.getContainersFromPreviousAttempts());
|
||||
if (handler instanceof AMRMClientAsync.AbstractCallbackHandler) {
|
||||
((AMRMClientAsync.AbstractCallbackHandler) handler)
|
||||
.onContainersReceivedFromPreviousAttempts(
|
||||
response.getContainersFromPreviousAttempts());
|
||||
}
|
||||
}
|
||||
progress = handler.getProgress();
|
||||
} catch (Throwable ex) {
|
||||
|
|
Loading…
Reference in New Issue