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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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.3.patch
          3 kB
          Lavkesh Lahngir
        2. YARN-3745.2.patch
          4 kB
          Lavkesh Lahngir
        3. YARN-3745.1.patch
          4 kB
          Lavkesh Lahngir
        4. YARN-3745.patch
          2 kB
          Lavkesh Lahngir

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: