You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vyacheslav Daradur (JIRA)" <ji...@apache.org> on 2018/09/26 15:30:00 UTC

[jira] [Created] (IGNITE-9709) IgniteCache : Put/Get operations hang on deactivated cluster

Vyacheslav Daradur created IGNITE-9709:
------------------------------------------

             Summary: IgniteCache : Put/Get operations hang on deactivated cluster
                 Key: IGNITE-9709
                 URL: https://issues.apache.org/jira/browse/IGNITE-9709
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.6
            Reporter: Vyacheslav Daradur


{{IgniteCache#put/get}} operations hang on inactive cluster.
Scenario:
 # Get instance of {{IgniteCache}} on active cluster;
 # Deactivate cluster;
 # Perform put/get operation using instance from step 1;
{code}
        IgniteEx ignite = startGrid(0);

        assertTrue(ignite.cluster().active());

        IgniteCache cache = ignite.getOrCreateCache("testCache");

        cache.put("key", "val");

        ignite.cluster().active(false);

        assertFalse(ignite.cluster().active());

        IgniteInternalFuture<Object> fut = GridTestUtils.runAsync(() -> cache.get("key"));

        ignite.cluster().active(true);

        assertTrue(ignite.cluster().active());

        assertNotNull(fut.get(10_000)); // Timeout was reached here
{code}



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