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

Inconsistency between viaProto flag and initial value of SerializedExceptionProto.Builder

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Bug 1:

        SerializedExceptionProto proto = SerializedExceptionProto
            .getDefaultInstance();
        SerializedExceptionProto.Builder builder = null;
        boolean viaProto = false;
      

      Since viaProto is false, we should initiate build rather than proto

      Bug 2:
      the class does not provide hashcode() and equals() like other PBImpl records, this class is used in other records, it may affect other records' behavior.

        Attachments

        1. YARN-2103.v1.patch
          2 kB
          Binglin Chang
        2. YARN-2103.v2.patch
          4 kB
          Binglin Chang
        3. YARN-2103.v3.patch
          5 kB
          Binglin Chang

          Issue Links

            Activity

              People

              • Assignee:
                decster Binglin Chang
                Reporter:
                decster Binglin Chang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: