[jira] [Created] (IGNITE-5763) Race in concurrent client cache start

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

[jira] [Created] (IGNITE-5763) Race in concurrent client cache start

JIRA jira@apache.org
Semen Boikov created IGNITE-5763:

             Summary: Race in concurrent client cache start
                 Key: IGNITE-5763
                 URL: https://issues.apache.org/jira/browse/IGNITE-5763
             Project: Ignite
          Issue Type: Bug
          Components: cache
            Reporter: Semen Boikov
            Assignee: Semen Boikov
            Priority: Critical
             Fix For: 2.2

Issue was introduced as part of IGNITE-5272, this race is possible:
- two threads on client call getOrCreateCache(s)
- one of threads initiates cache start and sends custom event, this event is processed in discovery thread but is not passed yet to DiscoveryWorker
- second thread sees that cache descriptor already exists and adds 'client cache start' event in DiscoveryWorker before cache start event is added in DiscoveryWorker
- when 'client cache start' event processed, cache does not exists and getOrCreateCache(s) fails

Added test IgniteDynamicCacheMultinodeTest.

This message was sent by Atlassian JIRA