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

IPC client can raise UndeclaredThrowableException during failure handling if maxwait==0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.7.1
    • None
    • ipc
    • None

    Description

      When an IPC falls, it may goes into a retry process, which sleeps via Thread.sleep() .

      If this happens, and the max wait interval is set to 0, then an InterruptedException can trigger in a Thread.sleep() operation. This isn't in the method signatures, so gets wrapped in an UndeclaredThrowable. This isn't an IOE, so all code catching IOEs get confused.

      The original exception is also completely lost.

      Proposed: InterruptedExceptions in the sleep are caught, trigger throwing of the original exception instead

      Attachments

        Activity

          People

            Unassigned Unassigned
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: