if (con != null) { if (!ok) { con.rollback(); aborts.increment(); log.error("Abort #" + aborts + " (with "
conn.rollback(); throw new RuntimeException(t);
con.rollback(); con.close();
con.rollback(); con.close();
if (con != null) { if (!ok) { con.rollback(); aborts.increment(); log.error("Abort #" + aborts + " (with "
conn.rollback(); throw new RuntimeException(t);
/** * Unit test verifies that the history index is not created if the option is * not enabled. */ public void test_historyIndexDisabled() throws SailException { final Properties properties = getProperties(); // disable the history service. properties .setProperty( com.bigdata.rdf.store.AbstractTripleStore.Options.HISTORY_SERVICE, "false"); final BigdataSail sail = getSail(properties); try { sail.initialize(); final BigdataSailConnection conn = sail.getConnection(); try { // Resolve the index that the connection will write on. final IIndex ndx = getHistoryIndex(conn.getTripleStore()); // The index should not exist. assertNull(ndx); conn.rollback(); } finally { conn.close(); } } finally { sail.__tearDownUnitTest(); } }
/** * Unit test verifies that the history index is not created if the option is * not enabled. */ public void test_historyIndexDisabled() throws SailException { final Properties properties = getProperties(); // disable the history service. properties .setProperty( com.bigdata.rdf.store.AbstractTripleStore.Options.HISTORY_SERVICE, "false"); final BigdataSail sail = getSail(properties); try { sail.initialize(); final BigdataSailConnection conn = sail.getConnection(); try { // Resolve the index that the connection will write on. final IIndex ndx = getHistoryIndex(conn.getTripleStore()); // The index should not exist. assertNull(ndx); conn.rollback(); } finally { conn.close(); } } finally { sail.__tearDownUnitTest(); } }