/** * @param cache Cache. * @param startKey Start key. */ private void doTestDeadlocksTxOnPrimary(IgniteCache cache, Object startKey) { try { awaitPartitionMapExchange(); doTestDeadlock(3, false, false, startKey, true); doTestDeadlock(4, false, false, startKey, true); } catch (Throwable e) { U.error(log, "Unexpected exception: ", e); //TODO "if" statement will be removed after fixing https://issues.apache.org/jira/browse/IGNITE-6445 if (!e.getMessage().equals("Failed to detect deadlock")) fail(); } finally { if (cache != null) cache.destroy(); } }
U.error(null, "Unexpected exception", e); fail();
/** * @param cache Cache. * @param startKey Transformer Start key. * @throws Exception If failed. */ private void doTestDeadlocks(IgniteCache cache, Object startKey) throws Exception { try { awaitPartitionMapExchange(); doTestDeadlock(3, true, true, startKey); doTestDeadlock(3, false, false, startKey); doTestDeadlock(3, false, true, startKey); doTestDeadlock(4, true, true, startKey); doTestDeadlock(4, false, false, startKey); doTestDeadlock(4, false, true, startKey); } catch (Throwable e) { U.error(log, "Unexpected exception: ", e); fail(); } finally { if (cache != null) cache.destroy(); } }