ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryabov Dmitrii (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-9110) Tx commit hangs after cross-cache operations with LOCAL cache
Date Fri, 27 Jul 2018 15:17:00 GMT
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)

Mime
View raw message