Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2237

KeyDeletingService throws NPE if it's started too early

    XMLWordPrintableJSON

Details

    Description

      1. OzoneManager starts KeyManager

      2. KeyManager starts KeyDeletingService

      3. KeyDeletingService uses OzoneManager.isLeader()

      4. OzoneManager.isLeader() uses omRatisServer

      5. omRatisServer can be null (bumm)

       

      Now the initialization order in OzoneManager:

       

      new KeymanagerServer() Includes start()!!!!

      omRatisServer initialization

      start() (includes KeyManager.start())

       

      The solution seems to be easy: start the key manager only from the OzoneManager.start() and not from the OzoneManager.instantiateServices()

      Attachments

        Issue Links

          Activity

            People

              elek Marton Elek
              elek Marton Elek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m