[ https://issues.apache.org/jira/browse/IGNITE-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16134856#comment-16134856 ]
ASF GitHub Bot commented on IGNITE-1094: ---------------------------------------- GitHub user sk0x50 opened a pull request: https://github.com/apache/ignite/pull/2490 IGNITE-1094 Ignite.createCache(CacheConfiguration) hangs if some exception occurs during cache initialization The following algorithm was implemented in order to fix hangs during dynamic start of cache(s): > 1. all nodes try to init cache locally > 2. if error occurs on any node then exchange coordinator should be notified. > 3. coordinator should send org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsFullMessage message containing error flag to all cache nodes > 4. all cache nodes should revert the changes > 5. exception should be thrown on initiator node (who called create cache) You can merge this pull request into a Git repository by running: $ git pull https://github.com/sk0x50/ignite ignite-1094-1 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/2490.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2490 ---- ---- > Ignite.createCache(CacheConfiguration) hangs if some exception occurs during > cache initialization > ------------------------------------------------------------------------------------------------- > > Key: IGNITE-1094 > URL: https://issues.apache.org/jira/browse/IGNITE-1094 > Project: Ignite > Issue Type: Bug > Components: cache > Reporter: Sergey Evdokimov > Labels: Muted_test > Fix For: 2.2 > > > User can pass broken configuration, for example, store factory that throws > exception from create() method. I created test to demonstrate the problem. > See IgniteDynamicCacheStartSelfTest#testBrokenStoreFactory in 'ignite-1094' > branch -- This message was sent by Atlassian JIRA (v6.4.14#64029)