Nikolay, Inactive state deallocates all possible resources by design, including the data regions. If data region is not backed by a persistent storage, the data is lost, this is an expected behavior.
ср, 29 янв. 2020 г. в 19:18, Nikolay Izhikov <nizhi...@apache.org>: > 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! > } > } > ```