ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Pavlov (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (IGNITE-6749) Illegal comparsion in NodeOrderComparator
Date Thu, 22 Mar 2018 20:18:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-6749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitriy Pavlov resolved IGNITE-6749.
------------------------------------
    Resolution: Cannot Reproduce

> Illegal comparsion in NodeOrderComparator
> -----------------------------------------
>
>                 Key: IGNITE-6749
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6749
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.1
>            Reporter: Alexander Belyak
>            Assignee: Dmitriy Pavlov
>            Priority: Major
>
> In org.apache.ignite.internal.cluster.compare method code
> {panel}
>         Object consId1 = n1.consistentId();
>         Object consId2 = n2.consistentId();
>         if (consId1 instanceof Comparable && consId2 instanceof Comparable) {
>             return ((Comparable)consId1).compareTo(consId2);
>         }
> {panel}
> check only that consId1 and consId2 is Comparable, but they may not be Comparable to
each other. For example: String and UUID is comparable, but UUID.compareTo(String) throw ClassCastException.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message