Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3745

SerializedException should also try to instantiate internal exception with the default constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      While deserialising a SerializedException it tries to create internal exception in instantiateException() with cn = cls.getConstructor(String.class).
      if cls does not has a constructor with String parameter it throws Nosuchmethodexception
      for example ClosedChannelException class.
      We should also try to instantiate exception with default constructor so that inner exception can to propagated.

      Attachments

        1. YARN-3745.patch
          2 kB
          Lavkesh Lahngir
        2. YARN-3745.1.patch
          4 kB
          Lavkesh Lahngir
        3. YARN-3745.2.patch
          4 kB
          Lavkesh Lahngir
        4. YARN-3745.3.patch
          3 kB
          Lavkesh Lahngir

        Activity

          People

            lavkesh Lavkesh Lahngir
            lavkesh Lavkesh Lahngir
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: