You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Vyacheslav Koptilin (JIRA)" <ji...@apache.org> on 2018/11/12 18:24:00 UTC

[jira] [Created] (IGNITE-10228) Start multiple caches in parallel may lead to the fact that some of the caches won't be registered.

Vyacheslav Koptilin created IGNITE-10228:
--------------------------------------------

             Summary: Start multiple caches in parallel may lead to the fact that some of the caches won't be registered.
                 Key: IGNITE-10228
                 URL: https://issues.apache.org/jira/browse/IGNITE-10228
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 2.6
            Reporter: Vyacheslav Koptilin


It looks like the root cause of the issue is that {{CacheGroupContext.addCacheContext()}} (which is called in parallel) does not use a lock/semaphore in order to synchronize {{caches}} updates.

 
{code:java}
private void addCacheContext(GridCacheContext cctx) {
    ArrayList<GridCacheContext> caches = new ArrayList<>(this.caches);

    boolean add = caches.add(cctx);

    ...

    this.caches = caches;
}

{code}
 



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