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

Handle failure of registering shutdownhook by ShutdownHookManager in static block

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: fs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      If JVM is under shutdown, static method in ShutdownHookManager will throw an IllegalStateException. This exception should be caught and ignored while registering the hooks.

      Stack trace:

      java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.util.ShutdownHookManager
             at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2639) ~[stormjar.jar:1.4.0-SNAPSHOT]
             at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2612) ~[stormjar.jar:1.4.0-SNAPSHOT]
             at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:370) ~[stormjar.jar:1.4.0-SNAPSHOT]
             ...
             ...
             at backtype.storm.daemon.executor$fn__6647$fn__6659.invoke(executor.clj:692) ~[storm-core-0.9.5.jar:0.9.5]
             at backtype.storm.util$async_loop$fn__459.invoke(util.clj:461) ~[storm-core-0.9.5.jar:0.9.5]
             at clojure.lang.AFn.run(AFn.java:24) [clojure-1.5.1.jar:na]
             at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
      

        Attachments

        1. HADOOP-12423.patch
          2 kB
          Abhishek Agarwal

          Activity

            People

            • Assignee:
              abhishek.agarwal Abhishek Agarwal
              Reporter:
              abhishek.agarwal Abhishek Agarwal
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: