[
https://issues.apache.org/jira/browse/IGNITE-28806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18107972#comment-18107972
]
Ignite TC Bot commented on IGNITE-28806:
----------------------------------------
Fixed cluster restart failures when thin clients create dynamic caches during
the first local node join.
The Release Note field has been filled with the wording above. Please review it
and edit it if needed.
> CacheAffinitySharedManager may fail with "Invalid exchange futures state"
> when thin clients create dynamic caches during cluster restart
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-28806
> URL: https://issues.apache.org/jira/browse/IGNITE-28806
> Project: Ignite
> Issue Type: Task
> Reporter: Oleg Valuyskiy
> Assignee: Oleg Valuyskiy
> Priority: Minor
> Labels: ise
> Fix For: 2.19
>
> Attachments: ThinClientDynamicCachePressureOnRestartTest.patch
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> A server node may fail during the first local join exchange if thin clients
> concurrently issue *getOrCreateCache()* requests when cluster is starting.
> Dynamic cache group descriptors can become visible in *cachesRegistry* before
> the corresponding local *CacheGroupContext* is created.
> In this state, *CacheAffinitySharedManager#initCoordinatorCaches* is called
> with {*}newAff=false{*}, enters the *grp == null* branch, and tries to fetch
> affinity from a previous completed exchange. For the first local join
> exchange there is no previous exchange, which may lead to:
> {code:java}
> AssertionError: Invalid exchange futures state [cur=..., total=...]{code}
> Reproducer:
> [^ThinClientDynamicCachePressureOnRestartTest.patch]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)