private void transactionMetaAbort() throws IOException { try { metaTable.coprocessorProxy(TMetaIface.class, startIdBytes) .abortTransaction(startIdBytes); } catch (IOException e) { throw e; } catch (Throwable t) { throw new IOException(t); } }
private void getCommitId() throws IOException { try { long _commitId = metaTable.coprocessorProxy(TMetaIface.class, startIdBytes).commitTransaction(startIdBytes); if (_commitId == DominoConst.ERR_TRX_ABORTED) { throw new IOException("Transaction has been aborted."); } commitId = _commitId; } catch (IOException e) { readyToCommit = false; throw e; } catch (Throwable t) { readyToCommit = false; throw new IOException(t); } }
private static Result getTransactionStatus(HTableInterface metaTable, long transactionId) throws IOException { byte[] row = DominoConst.long2TranscationRowKey(transactionId); return metaTable.coprocessorProxy(TMetaIface.class, row) .getTransactionStatus(transactionId); }