@Override public boolean canCommit(final Transaction tx, final Collection<byte[]> changeIds) throws TransactionNotInProgressException { try { canCommitOrThrow(tx, changeIds); return true; } catch (TransactionFailureException e) { return false; } }
client.canCommitOrThrow(tx, Collections.<byte[]>emptyList()); LOG.info("canCommit: success"); LOG.info("Committing tx...");