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

Explicitly declare serialVersionUID in LogMutation class

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      The LogMutation class doesn't have its serialVersionUID defined as a private final static constant hence the compiler generates one for it. Upon every logMutation call, the existing logMutation objects are collected from the chosen config store and deserialized, but if a new/different RM jar loads these and the serialVersionUIDs don't match (for example a different compiler generated a different ID) an InvalidClassException occurs.

      Attachments

        Issue Links

          Activity

            People

              bteke Benjamin Teke
              bteke Benjamin Teke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h