You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Luke Lu (JIRA)" <ji...@apache.org> on 2012/05/20 06:50:46 UTC

[jira] [Created] (MAPREDUCE-4272) SortedRange.Range#compareTo is not spec compliant

Luke Lu created MAPREDUCE-4272:
----------------------------------

             Summary: SortedRange.Range#compareTo is not spec compliant
                 Key: MAPREDUCE-4272
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: task
    Affects Versions: 1.0.3
            Reporter: Luke Lu
            Assignee: Luke Lu


SortedRange.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y."

This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4272) SortedRange.Range#compareTo is not spec compliant

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu updated MAPREDUCE-4272:
-------------------------------

    Description: 
SortedRange.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."

This is manifested as TestStreamingBadRecords failures in alternative JDKs.

  was:
SortedRange.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y."

This is manifested as TestStreamingBadRecords failures in alternative JDKs.

    
> SortedRange.Range#compareTo is not spec compliant
> -------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Luke Lu
>              Labels: alt-jdk
>
> SortedRange.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4272) SortedRange.Range#compareTo is not spec compliant

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu updated MAPREDUCE-4272:
-------------------------------

    Attachment: mapreduce-4272-branch-1.0.patch
    
> SortedRange.Range#compareTo is not spec compliant
> -------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Luke Lu
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch
>
>
> SortedRange.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAPREDUCE-4272) SortedRanges.Range#compareTo is not spec compliant

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu updated MAPREDUCE-4272:
-------------------------------

    Target Version/s: 2.0.0-alpha, 1.2.0  (was: 1.2.0, 2.0.0-alpha)
        Hadoop Flags: Reviewed
              Status: Patch Available  (was: Open)

The patch lgtm. Submitting for jenkins test patch.
                
> SortedRanges.Range#compareTo is not spec compliant
> --------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Yu Gao
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch, mapreduce-4272-branch-2.patch, mapreduce-4272.patch
>
>
> SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4272) SortedRanges.Range#compareTo is not spec compliant

Posted by "Yu Gao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yu Gao updated MAPREDUCE-4272:
------------------------------

    Attachment: mapreduce-4272-branch-2.patch
    
> SortedRanges.Range#compareTo is not spec compliant
> --------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Luke Lu
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch, mapreduce-4272-branch-2.patch, mapreduce-4272.patch
>
>
> SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4272) SortedRanges.Range#compareTo is not spec compliant

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu updated MAPREDUCE-4272:
-------------------------------

    Description: 
SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."

This is manifested as TestStreamingBadRecords failures in alternative JDKs.

  was:
SortedRange.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."

This is manifested as TestStreamingBadRecords failures in alternative JDKs.

        Summary: SortedRanges.Range#compareTo is not spec compliant  (was: SortedRange.Range#compareTo is not spec compliant)
    
> SortedRanges.Range#compareTo is not spec compliant
> --------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Luke Lu
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch
>
>
> SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAPREDUCE-4272) SortedRanges.Range#compareTo is not spec compliant

Posted by "Yu Gao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489249#comment-13489249 ] 

Yu Gao commented on MAPREDUCE-4272:
-----------------------------------

Thanks Luke for the review. This patch fixes TestStreamingBadRecords failure in alternative JDKs, like IBM JDK.
                
> SortedRanges.Range#compareTo is not spec compliant
> --------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Yu Gao
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch, mapreduce-4272-branch-2.patch, mapreduce-4272.patch
>
>
> SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4272) SortedRanges.Range#compareTo is not spec compliant

Posted by "Matt Foley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Foley updated MAPREDUCE-4272:
----------------------------------

    Target Version/s: 2.0.0-alpha, 1.2.0  (was: 1.1.0, 2.0.0-alpha)
    
> SortedRanges.Range#compareTo is not spec compliant
> --------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Luke Lu
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch
>
>
> SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (MAPREDUCE-4272) SortedRanges.Range#compareTo is not spec compliant

Posted by "Luke Lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Lu reassigned MAPREDUCE-4272:
----------------------------------

    Assignee: Yu Gao  (was: Luke Lu)
    
> SortedRanges.Range#compareTo is not spec compliant
> --------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Yu Gao
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch, mapreduce-4272-branch-2.patch, mapreduce-4272.patch
>
>
> SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MAPREDUCE-4272) SortedRanges.Range#compareTo is not spec compliant

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489085#comment-13489085 ] 

Hadoop QA commented on MAPREDUCE-4272:
--------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12551775/mapreduce-4272.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 javadoc{color}.  The javadoc tool did not generate any warning messages.

    {color:green}+1 eclipse:eclipse{color}.  The patch built with eclipse:eclipse.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core.

    {color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2981//testReport/
Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2981//console

This message is automatically generated.
                
> SortedRanges.Range#compareTo is not spec compliant
> --------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Yu Gao
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch, mapreduce-4272-branch-2.patch, mapreduce-4272.patch
>
>
> SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MAPREDUCE-4272) SortedRanges.Range#compareTo is not spec compliant

Posted by "Yu Gao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yu Gao updated MAPREDUCE-4272:
------------------------------

    Attachment: mapreduce-4272.patch
    
> SortedRanges.Range#compareTo is not spec compliant
> --------------------------------------------------
>
>                 Key: MAPREDUCE-4272
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4272
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: task
>    Affects Versions: 1.0.3
>            Reporter: Luke Lu
>            Assignee: Luke Lu
>              Labels: alt-jdk
>         Attachments: mapreduce-4272-branch-1.0.patch, mapreduce-4272-branch-2.patch, mapreduce-4272.patch
>
>
> SortedRanges.Range#compareTo does not satisfy the requirement of Comparable#compareTo, where "the implementor must ensure {noformat}sgn(x.compareTo(y)) == -sgn(y.compareTo(x)){noformat} for all x and y."
> This is manifested as TestStreamingBadRecords failures in alternative JDKs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira