@Test
public void testServiceInvokeOomError() throws Exception {
IgniteEx ignite0 = startGrid(0);
IgniteEx ignite1 = startGrid(1);
IgniteCache<Integer, Integer> cache1 = ignite1.getOrCreateCache(DEFAULT_CACHE_NAME);
awaitPartitionMapExchange();
Integer key = primaryKey(cache1);
ignite0.services().deployKeyAffinitySingleton("fail-invoke-service", new FailServiceImpl(false),
DEFAULT_CACHE_NAME, key);
FailService svc = ignite0.services().serviceProxy("fail-invoke-service", FailService.class, false);
try {
svc.fail();
}
catch (Throwable ignore) {
}
assertFailureState(ignite0, ignite1);
}