[jira] [Created] (IGNITE-9111) Do not wait for deactivation in GridClusterStateProcessor#publicApiActiveState

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-9111) Do not wait for deactivation in GridClusterStateProcessor#publicApiActiveState

Anton Vinogradov (Jira)
Pavel Kovalenko created IGNITE-9111:
---------------------------------------

             Summary: Do not wait for deactivation in GridClusterStateProcessor#publicApiActiveState
                 Key: IGNITE-9111
                 URL: https://issues.apache.org/jira/browse/IGNITE-9111
             Project: Ignite
          Issue Type: Improvement
          Components: cache
    Affects Versions: 2.5, 2.4
            Reporter: Pavel Kovalenko
            Assignee: Pavel Kovalenko
             Fix For: 2.7


Currently, we wait for activation/deactivation future when check state of the cluster. But when deactivation is in progress it doesn't make sense to wait for it, because after the successful wait we will throw an exception that cluster is not active. Synchronous waiting for deactivation future may lead to deadlocks if operation obtains some locks before checking cluster state.

As the solution, we should check and wait only for activation futures. In case of in-progress deactivation, we should fail fast and return "false" from publicApiActiveState method.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)