Hello, Igniters.

I found really confusing results of the simple test.
Data from the in-memory cache are vanished after change cluster state to 
INACTIVE/ACTIVE.

Is this a bug or expected behavior?


```
public class ClusterDeactivateTest extends GridCommonAbstractTest {
    String name = "my-cache";

    /** */
    @Test
    public void testDataPresent() throws Exception {
        IgniteEx i = startGrid(0);

        i.createCache(name).put(1L, 1L);

        assertEquals(1L, i.cache(name).get(1L));

        i.cluster().state(ClusterState.INACTIVE);
        i.cluster().state(ClusterState.ACTIVE);

        assertEquals(1L, i.cache(name).get(1L)); //Assertion error here!
    }
}
```

Reply via email to