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 @@ public interface CallbackHandler {
|
|||||||
* @param e
|
* @param e
|
||||||
*/
|
*/
|
||||||
void onError(Throwable e);
|
void onError(Throwable e);
|
||||||
|
|
||||||
void onContainersReceivedFromPreviousAttempts(List<Container> containers);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -360,8 +360,11 @@ public void run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!response.getContainersFromPreviousAttempts().isEmpty()) {
|
if (!response.getContainersFromPreviousAttempts().isEmpty()) {
|
||||||
handler.onContainersReceivedFromPreviousAttempts(
|
if (handler instanceof AMRMClientAsync.AbstractCallbackHandler) {
|
||||||
response.getContainersFromPreviousAttempts());
|
((AMRMClientAsync.AbstractCallbackHandler) handler)
|
||||||
|
.onContainersReceivedFromPreviousAttempts(
|
||||||
|
response.getContainersFromPreviousAttempts());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
progress = handler.getProgress();
|
progress = handler.getProgress();
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user