You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Valentin Kulichenko (JIRA)" <ji...@apache.org> on 2017/06/09 22:42:18 UTC

[jira] [Commented] (IGNITE-1403) forOldest() cluster group returns predicate that is not updated when topology changes

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

Valentin Kulichenko commented on IGNITE-1403:
---------------------------------------------

Predicate, unlike cluster group can be invoked from Ignite internals where it's not safe to do any kind of locking. Therefore it's not easy to make predicate dynamic, mostly because {{ClusterGroupAdapter#nodes()}} method acquires gateway lock. Since issue doesn't seem to be critical, I will close it now. It's always possible to use {{ClusterGroupAdapter#predicate()}} method to get predicate based on latest topology version.

> forOldest() cluster group returns predicate that is not updated when topology changes
> -------------------------------------------------------------------------------------
>
>                 Key: IGNITE-1403
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1403
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>            Reporter: Valentin Kulichenko
>            Assignee: Valentin Kulichenko
>
> {{AgeClusterGroup}} that implements {{forOldest()}} and {{forYoungest}} cluster groups is dynamically updated when topology changes. But the predicate that can be acquired from this group via {{predicate()}} method is static, which is incorrect.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)