hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "huaxiang sun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-16272) Overflow in ServerName's compareTo method
Date Fri, 22 Jul 2016 02:26:20 GMT
huaxiang sun created HBASE-16272:

             Summary: Overflow in ServerName's compareTo method
                 Key: HBASE-16272
                 URL: https://issues.apache.org/jira/browse/HBASE-16272
             Project: HBase
          Issue Type: Bug
          Components: hbase
            Reporter: huaxiang sun
            Assignee: huaxiang sun

Looking at the ServerName's compareTo(), 


It converts the return int value by converting long to int like (int)(longValue), which could
be incorrect when it overflows, need to replace it with Long.compareTo(a,b).

[~mbertozzi] found some others as well, such as

This message was sent by Atlassian JIRA

View raw message