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

Incorrect version check in RMStateStore

    Details

    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      In RMStateStore#checkVersion: if we modify tCURRENT_VERSION_INFO to 2.0, it'll still store the version as 1.0 which is incorrect; The same thing might happen to NM store, timeline store.

          // if there is no version info, treat it as 1.0;
          if (loadedVersion == null) {
            loadedVersion = Version.newInstance(1, 0);
          }
          if (loadedVersion.isCompatibleTo(getCurrentVersion())) {
            LOG.info("Storing RM state version info " + getCurrentVersion());
            storeVersion();
      

        Attachments

        1. 0001-YARN-2952.patch
          12 kB
          Rohith Sharma K S

          Activity

            People

            • Assignee:
              rohithsharma Rohith Sharma K S
              Reporter:
              jianhe Jian He
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: