/** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { cleanPersistenceDir(); super.beforeTest(); }
/** * Test IgniteOutOfMemoryException handling with no store. */ @Test public void testIoomErrorNoStoreHandling() throws Exception { testIoomErrorHandling(false, false); }
this.mvcc = mvcc; IgniteEx ignite0 = startGrid(0); IgniteEx ignite1 = startGrid(1); IgniteCache<Integer, Object> cache1 = ignite1.getOrCreateCache(DEFAULT_CACHE_NAME); awaitPartitionMapExchange(); for (Integer i : primaryKeys(cache1, ENTRIES)) cache0.put(i, new byte[PAGE_SIZE / 3 * 2]); assertFalse(dummyFailureHandler(ignite0).failure()); assertTrue(dummyFailureHandler(ignite1).failure()); assertTrue(X.hasCause(dummyFailureHandler(ignite1).failureContext().error(), IgniteOutOfMemoryException.class)); stopGrid(1); stopGrid(0);
/** * Test IgniteOutOfMemoryException handling with PDS. */ @Test public void testIoomErrorPdsHandling() throws Exception { testIoomErrorHandling(true, false); }
/** {@inheritDoc} */ @Override protected void afterTest() throws Exception { super.afterTest(); cleanPersistenceDir(); }
/** * Test IgniteOutOfMemoryException handling with no store. */ @Test public void testIoomErrorMvccNoStoreHandling() throws Exception { testIoomErrorHandling(false, true); }
/** * Test IgniteOutOfMemoryException handling with PDS. */ @Ignore("https://issues.apache.org/jira/browse/IGNITE-10185") @Test public void testIoomErrorMvccPdsHandling() throws Exception { testIoomErrorHandling(true, true); }