You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Nikolay Izhikov (Jira)" <ji...@apache.org> on 2020/04/17 09:26:00 UTC

[jira] [Updated] (IGNITE-12651) Non-comparable keys for eviction policy cause failure handle and node shutdown

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

Nikolay Izhikov updated IGNITE-12651:
-------------------------------------
    Fix Version/s: 2.8.1

> Non-comparable keys for eviction policy cause failure handle and node shutdown
> ------------------------------------------------------------------------------
>
>                 Key: IGNITE-12651
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12651
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.8
>            Reporter: Vyacheslav Koptilin
>            Assignee: Vyacheslav Koptilin
>            Priority: Major
>             Fix For: 2.9, 2.8.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Non-comparable keys in the same cache (for instance, Integer and Double) and eviction policy enabled results in node failure with the following exception:
> {code:java}
> java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Doublejava.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double at java.lang.Double.compareTo(Double.java:49) at org.apache.ignite.cache.eviction.sorted.SortedEvictionPolicy$DefaultHolderComparator.compare(SortedEvictionPolicy.java:360) at org.apache.ignite.cache.eviction.sorted.SortedEvictionPolicy$DefaultHolderComparator.compare(SortedEvictionPolicy.java:348) at java.util.concurrent.ConcurrentSkipListMap.cpr(ConcurrentSkipListMap.java:655) at java.util.concurrent.ConcurrentSkipListMap.doPut(ConcurrentSkipListMap.java:835) at java.util.concurrent.ConcurrentSkipListMap.putIfAbsent(ConcurrentSkipListMap.java:1962) at org.apache.ignite.internal.util.GridConcurrentSkipListSet.add(GridConcurrentSkipListSet.java:143) at org.apache.ignite.cache.eviction.sorted.SortedEvictionPolicy$GridConcurrentSkipListSetEx.add(SortedEvictionPolicy.java:398) at org.apache.ignite.cache.eviction.sorted.SortedEvictionPolicy.touch(SortedEvictionPolicy.java:176) at org.apache.ignite.cache.eviction.AbstractEvictionPolicy.onEntryAccessed(AbstractEvictionPolicy.java:88) at org.apache.ignite.internal.processors.cache.GridCacheEvictionManager.notifyPolicy(GridCacheEvictionManager.java:321) at org.apache.ignite.internal.processors.cache.GridCacheEvictionManager.touch(GridCacheEvictionManager.java:199)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)