eubnara commented on code in PR #8691:
URL: https://github.com/apache/hadoop/pull/8691#discussion_r4663275403
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/ResourceLocalizationService.java:
##########
@@ -1294,8 +1294,17 @@ public void run() {
// On error, report failure to Container and signal ABORT
// Notify resource of failed localization
ContainerId cId = context.getContainerId();
- dispatcher.getEventHandler().handle(new ContainerResourceFailedEvent(
- cId, null, exception.getMessage()));
+ try {
+ dispatcher.getEventHandler().handle(new
ContainerResourceFailedEvent(
+ cId, null, exception.getMessage()));
+ } catch (Exception e) {
+ LOG.warn("Failed to send container resource failed event for {}",
+ cId, e);
+ if (e instanceof InterruptedException
+ || e.getCause() instanceof InterruptedException) {
+ Thread.currentThread().interrupt();
+ }
+ }
Review Comment:
Done, applied the suggestion including the comment on why the event is
not delivered.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]