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

Incorrect version check in RMStateStore

    XMLWordPrintableJSON

Details

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: