You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Ryabov Dmitrii (JIRA)" <ji...@apache.org> on 2018/07/27 15:17:00 UTC

[jira] [Created] (IGNITE-9110) Tx commit hangs after cross-cache operations with LOCAL cache

Ryabov Dmitrii created IGNITE-9110:
--------------------------------------

             Summary: Tx commit hangs after cross-cache operations with LOCAL cache
                 Key: IGNITE-9110
                 URL: https://issues.apache.org/jira/browse/IGNITE-9110
             Project: Ignite
          Issue Type: Task
          Components: cache
            Reporter: Ryabov Dmitrii


Commit hangs when tx contains operations on LOCAL and PARTITIONED or REPLICATED caches in some cases. Example:

{code:java}
public class LocalCacheFails extends GridCommonAbstractTest {
    /** */
    public void testLocalCache() throws Exception {
        IgniteEx ignite = startGrid(0);

        IgniteCache<Integer, Integer> locCache = ignite.createCache(getConfig(LOCAL));
        IgniteCache<Integer, Integer> partCache = ignite.createCache(getConfig(PARTITIONED));

        try (Transaction tx = ignite.transactions().txStart(OPTIMISTIC, SERIALIZABLE)) {
            locCache.put(1, 1);
            partCache.put(1, 1);

            tx.commit(); // Fails here.
        }
    }

    /** */
    private CacheConfiguration<Integer, Integer> getConfig(CacheMode cacheMode) {
        CacheConfiguration<Integer, Integer> cfg = new CacheConfiguration<>();

        cfg.setCacheMode(cacheMode);
        cfg.setName(cacheMode.name());
        cfg.setAtomicityMode(TRANSACTIONAL);

        return cfg;
    }
}
{code}



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