Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1162

Register shutdown hooks with Hadoop's ShutdownHookManager, instead of directly with Java Runtime

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7-incubating
    • Component/s: None
    • Labels:
      None

      Description

      Atlas hooks and server currently register a shutdown hook directly with java Runtime object. Hadoop provides an utility class, ShutdownHookManager, which helps to ensure that the hooks are called in a well defined order. Atlas hook registration should be updated to register its shutdown hook with Hadoop's ShutdownHookManager:
      https://github.com/apache/hadoop/blob/master/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ShutdownHookManager.java.

      Ref: RANGER-891

        Attachments

        1. ATLAS-1162.patch
          7 kB
          Madhan Neethiraj

          Activity

            People

            • Assignee:
              madhan Madhan Neethiraj
              Reporter:
              madhan Madhan Neethiraj
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: