private void storeCommit(TransactionId txid, boolean wasPrepared, Runnable preCommit,Runnable postCommit) throws XAException, IOException { try { transactionStore.commit(getTransactionId(), wasPrepared, preCommitTask, postCommitTask); waitPostCommitDone(postCommitTask); } catch (XAException xae) { throw xae; } catch (Throwable t) { LOG.warn("Store COMMIT FAILED: " + txid, t); XAException xae = null; if (wasPrepared) { // report and await outcome xae = newXAException("STORE COMMIT FAILED: " + t.getMessage(), XAException.XA_RETRY); // fire rollback syncs to revert doPostRollback(); } else { try { rollback(); xae = newXAException("STORE COMMIT FAILED: Transaction rolled back", XAException.XA_RBCOMMFAIL); } catch (Throwable e) { xae = newXAException("STORE COMMIT FAILED: " + t.getMessage() +". Rolled failed:" + e.getMessage(), XAException.XA_RBINTEGRITY); } } xae.initCause(t); throw xae; } }
context.getTransactions().remove(xid); try { transactionStore.commit(getTransactionId(), false, preCommitTask, postCommitTask); this.waitPostCommitDone(postCommitTask); } catch (Throwable t) {
private void storeCommit(TransactionId txid, boolean wasPrepared, Runnable preCommit,Runnable postCommit) throws XAException, IOException { try { transactionStore.commit(getTransactionId(), wasPrepared, preCommitTask, postCommitTask); waitPostCommitDone(postCommitTask); } catch (XAException xae) { throw xae; } catch (Throwable t) { LOG.warn("Store COMMIT FAILED: ", t); rollback(); XAException xae = newXAException("STORE COMMIT FAILED: Transaction rolled back", XAException.XA_RBOTHER); xae.initCause(t); throw xae; } }
private void storeCommit(TransactionId txid, boolean wasPrepared, Runnable preCommit,Runnable postCommit) throws XAException, IOException { try { transactionStore.commit(getTransactionId(), wasPrepared, preCommitTask, postCommitTask); waitPostCommitDone(postCommitTask); } catch (XAException xae) { throw xae; } catch (Throwable t) { LOG.warn("Store COMMIT FAILED: ", t); rollback(); XAException xae = newXAException("STORE COMMIT FAILED: Transaction rolled back", XAException.XA_RBOTHER); xae.initCause(t); throw xae; } }
private void storeCommit(TransactionId txid, boolean wasPrepared, Runnable preCommit,Runnable postCommit) throws XAException, IOException { try { transactionStore.commit(getTransactionId(), wasPrepared, preCommitTask, postCommitTask); waitPostCommitDone(postCommitTask); } catch (XAException xae) { throw xae; } catch (Throwable t) { LOG.warn("Store COMMIT FAILED: ", t); rollback(); XAException xae = newXAException("STORE COMMIT FAILED: Transaction rolled back", XAException.XA_RBOTHER); xae.initCause(t); throw xae; } }
private void storeCommit(TransactionId txid, boolean wasPrepared, Runnable preCommit,Runnable postCommit) throws XAException, IOException { try { transactionStore.commit(getTransactionId(), wasPrepared, preCommitTask, postCommitTask); waitPostCommitDone(postCommitTask); } catch (XAException xae) { throw xae; } catch (Throwable t) { LOG.warn("Store COMMIT FAILED: ", t); rollback(); XAException xae = new XAException("STORE COMMIT FAILED: Transaction rolled back."); xae.errorCode = XAException.XA_RBOTHER; xae.initCause(t); throw xae; } }
context.getTransactions().remove(xid); try { transactionStore.commit(getTransactionId(), false, preCommitTask, postCommitTask); this.waitPostCommitDone(postCommitTask); } catch (Throwable t) {
context.getTransactions().remove(xid); try { transactionStore.commit(getTransactionId(), false, preCommitTask, postCommitTask); this.waitPostCommitDone(postCommitTask); } catch (Throwable t) {
context.getTransactions().remove(xid); try { transactionStore.commit(getTransactionId(), false, preCommitTask, postCommitTask); this.waitPostCommitDone(postCommitTask); } catch (Throwable t) {
transactionStore.commit(getTransactionId(), false,preCommitTask, postCommitTask); this.waitPostCommitDone(postCommitTask); } catch (Throwable t) {