Browse Source

YARN-1616. RMFatalEventDispatcher should log the cause of the event (kasha)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1559902 13f79535-47bb-0310-9956-ffa450edef68
Karthik Kambatla 11 years ago
parent
commit
e0ce554b86

+ 2 - 0
hadoop-yarn-project/CHANGES.txt

@@ -229,6 +229,8 @@ Release 2.4.0 - UNRELEASED
     YARN-1567. In Fair Scheduler, allow empty queues to change between leaf and
     YARN-1567. In Fair Scheduler, allow empty queues to change between leaf and
     parent on allocation file reload (Sandy Ryza)
     parent on allocation file reload (Sandy Ryza)
 
 
+    YARN-1616. RMFatalEventDispatcher should log the cause of the event (kasha)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
   BUG FIXES
   BUG FIXES

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java

@@ -607,7 +607,7 @@ public class ResourceManager extends CompositeService implements Recoverable {
     @Override
     @Override
     public void handle(RMFatalEvent event) {
     public void handle(RMFatalEvent event) {
       LOG.fatal("Received a " + RMFatalEvent.class.getName() + " of type " +
       LOG.fatal("Received a " + RMFatalEvent.class.getName() + " of type " +
-          event.getType().name());
+          event.getType().name() + ". Cause:\n" + event.getCause());
 
 
       if (event.getType() == RMFatalEventType.STATE_STORE_FENCED) {
       if (event.getType() == RMFatalEventType.STATE_STORE_FENCED) {
         LOG.info("RMStateStore has been fenced");
         LOG.info("RMStateStore has been fenced");