hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10250) VersionUtil returns wrong value when comparing two versions
Date Mon, 27 Jan 2014 21:59:40 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13883398#comment-13883398
] 

Hudson commented on HADOOP-10250:
---------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #5047 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/5047/])
HADOOP-10250. VersionUtil returns wrong value when comparing two versions. Contributed by
Yongjun Zhang. (atm: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1561860)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ComparableVersion.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionUtil.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestVersionUtil.java


> VersionUtil returns wrong value when comparing two versions
> -----------------------------------------------------------
>
>                 Key: HADOOP-10250
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10250
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Yongjun Zhang
>            Assignee: Yongjun Zhang
>             Fix For: 2.4.0
>
>         Attachments: HADOOP-10250.001.patch, HADOOP-10250.002.patch, HADOOP-10250.003.patch,
HADOOP-10250.004.patch, HADOOP-10250.004.patch
>
>
> 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.
>  



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message