getTransactionService().abort(tx);
getTransactionService().abort(tx);
protected void newTx() throws DatasetNotFoundException, IOException { boolean ok = false; // Open a new read/write transaction. final long txId = txService.newTx(ITx.UNISOLATED); try { newTx(txId); ok = true; } finally { if(!ok) { try { txService.abort(txId); } catch (IOException ex) { log.error(ex, ex); } } } }
protected void newTx() throws DatasetNotFoundException, IOException { boolean ok = false; // Open a new read/write transaction. final long txId = txService.newTx(ITx.UNISOLATED); try { newTx(txId); ok = true; } finally { if(!ok) { try { txService.abort(txId); } catch (IOException ex) { log.error(ex, ex); } } } }
/** * Marks the iterator as {@link #exhausted} and aborts the {@link #ts} iff * it was identified to the ctor as being created specifically to provide * read-consistent semantics for this iterator and hence our responsibility * to clean up. */ synchronized private void close() { if (exhausted) return; exhausted = true; if (isReadConsistentTx) { try { ndx.getFederation().getTransactionService().abort(ts); } catch (IOException e) { // log and ignore since the caller was not directly affected. log.error(ClientIndexView.ERR_ABORT_TX + ts, e); } } }
/** * Marks the iterator as {@link #exhausted} and aborts the {@link #ts} iff * it was identified to the ctor as being created specifically to provide * read-consistent semantics for this iterator and hence our responsibility * to clean up. */ synchronized private void close() { if (exhausted) return; exhausted = true; if (isReadConsistentTx) { try { ndx.getFederation().getTransactionService().abort(ts); } catch (IOException e) { // log and ignore since the caller was not directly affected. log.error(ClientIndexView.ERR_ABORT_TX + ts, e); } } }
/** * A specialized close that will also abort the current read/write * transaction. */ @Override public synchronized void close() throws SailException { if (!openConn) { return; } super.close(); try { txService.abort(tx); } catch(IOException ex) { throw new SailException(ex); } }
/** * A specialized close that will also abort the current read/write * transaction. */ @Override public synchronized void close() throws SailException { if (!openConn) { return; } super.close(); try { txService.abort(tx); } catch(IOException ex) { throw new SailException(ex); } }
txService.abort(tx);
/** * A specialized close that will also abort the current read-only * transaction. */ @Override public synchronized void close() throws SailException { if (!openConn) { return; } super.close(); if(!clusterCacheBugFix) { try { txService.abort(tx); } catch (IOException ex) { throw new SailException(ex); } } }
txService.abort(tx);
/** * A specialized close that will also abort the current read-only * transaction. */ @Override public synchronized void close() throws SailException { if (!openConn) { return; } super.close(); if(!clusterCacheBugFix) { try { txService.abort(tx); } catch (IOException ex) { throw new SailException(ex); } } }
/** * Abort a transaction obtained by {@link #newTx(long)}. This decements the * native active transaction counter for the RWStore. Once that counter * reaches zero, recycling will occur the next time an unisolated mutation * goes through a commit on the journal. * * @param tx * The transaction identifier. */ public void abortTx(final long tx) { if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService(); try { txs.abort(tx); } catch (IOException e) { // Note: Local operation. Will not throw IOException. throw new RuntimeException(e); } } }
/** * Abort a transaction obtained by {@link #newTx(long)}. This decements the * native active transaction counter for the RWStore. Once that counter * reaches zero, recycling will occur the next time an unisolated mutation * goes through a commit on the journal. * * @param tx * The transaction identifier. */ public void abortTx(final long tx) { if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService(); try { txs.abort(tx); } catch (IOException e) { // Note: Local operation. Will not throw IOException. throw new RuntimeException(e); } } }
public void tearDown() throws Exception { // clear reference. separatorKey = null; if (queryEngineStore != null) { queryEngineStore.destroy(); queryEngineStore = null; } if (queryEngine != null) { queryEngine.shutdownNow(); queryEngine = null; } if (tx != ITx.READ_COMMITTED && tx != ITx.UNISOLATED) { // Some kind of transaction. fed.getTransactionService().abort(tx); } super.tearDown(); }
public void tearDown() throws Exception { // clear reference. separatorKey = null; if (queryEngineStore != null) { queryEngineStore.destroy(); queryEngineStore = null; } if (queryEngine != null) { queryEngine.shutdownNow(); queryEngine = null; } if (tx != ITx.READ_COMMITTED && tx != ITx.UNISOLATED) { // Some kind of transaction. fed.getTransactionService().abort(tx); } super.tearDown(); }
if(!ok) { try { txService.abort(txId); } catch (IOException ex) { log.error(ex, ex);
fed.getTransactionService().abort(tx);
fed.getTransactionService().abort(tx);
fed.getTransactionService().abort(tx);