ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-1403) forOldest() cluster group returns predicate that is not updated when topology changes
Date Fri, 09 Jun 2017 22:42:18 GMT

    [ 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)

Mime
View raw message