You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey N. Gura (Jira)" <ji...@apache.org> on 2020/08/04 18:46:00 UTC
[jira] [Commented] (IGNITE-13322) Make
GridDhtPartitionsExchangeFuture#srvNodes thread-safe
[ https://issues.apache.org/jira/browse/IGNITE-13322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17171044#comment-17171044 ]
Andrey N. Gura commented on IGNITE-13322:
-----------------------------------------
{{GridDhtPartitionsExchangeFuture#srvNodes}} is always accessed under mutex except of {{init()}} method. So read/write oprrations are already thread-safe. Issue closed as not a bug.
> Make GridDhtPartitionsExchangeFuture#srvNodes thread-safe
> ---------------------------------------------------------
>
> Key: IGNITE-13322
> URL: https://issues.apache.org/jira/browse/IGNITE-13322
> Project: Ignite
> Issue Type: Improvement
> Affects Versions: 2.8.1
> Reporter: Yaroslav Molochkov
> Assignee: Yaroslav Molochkov
> Priority: Major
>
> Currently org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture#srvNodes reference is initialised to the ArrayList, which is not a thread-safe implementation.
> Solution to this ticket must guarantee thread-safety of the srvNodes collection.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)