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

Improve error logging in OMStateMachine

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • OM
    • None

    Description

      If some exception occurs in a StateMachine implemented method, the exception is propagated back to Ratis and then through Ratis back again to StateMachine. In this back and forth, the exception could be lost. 
      While working on OM Bootstrap, I encountered a NullPointer exception in OMStateMachine which cause Ratis (and eventually StateMachine) to shutdown with a "client cancelled" exception. It would have helped in debugging if the OMStateMachine had logged the initial exception. 

      Attachments

        Activity

          People

            hanishakoneru Hanisha Koneru
            hanishakoneru Hanisha Koneru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: