Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3489

NPE in SafeModeMonitor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.18.0
    • 0.18.0
    • None
    • None
    • Reviewed

    Description

      If dfsadmin issues -safemode leave command when name-node is in the extended period of safe mode the SafeModeMonitor throws the following exception:

      Exception in thread "org.apache.hadoop.dfs.FSNamesystem$SafeModeMonitor@dc86eb" java.lang.NullPointerException
      	at org.apache.hadoop.dfs.FSNamesystem$SafeModeMonitor.run(FSNamesystem.java:3914)
      	at java.lang.Thread.run(Thread.java:619)
      

      The problem is that when SafeModeMonitor.run() wakes up it tries to check whether it canLeave() the safe mode, but the safe mode is off already,
      and therefore the "safemode" field is null.

      Attachments

        1. HADOOP-3489-1.patch
          0.5 kB
          Lohit Vijaya Renu

        Activity

          People

            lohit Lohit Vijaya Renu
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: