Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10250

VersionUtil returns wrong value when comparing two versions

    XMLWordPrintableJSON

    Details

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

      Description

      VersionUtil.compareVersions("1.0.0-beta-1", "1.0.0") returns 7 instead of negative number, which is wrong, because 1.0.0-beta-1 older than 1.0.0.

        Attachments

        1. HADOOP-10250.004.patch
          24 kB
          Yongjun Zhang
        2. HADOOP-10250.004.patch
          24 kB
          Yongjun Zhang
        3. HADOOP-10250.003.patch
          24 kB
          Yongjun Zhang
        4. HADOOP-10250.002.patch
          24 kB
          Yongjun Zhang
        5. HADOOP-10250.001.patch
          24 kB
          Yongjun Zhang

          Activity

            People

            • Assignee:
              yzhangal Yongjun Zhang
              Reporter:
              yzhangal Yongjun Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: