// Disable auto full abort for testing every commit query request case
clientHandler.setAutoFullAbort(false);
clientHandler.sendMessage(new TimestampRequest());
clientHandler.receiveBootstrap();
TimestampResponse tr1 = clientHandler.receiveMessage(TimestampResponse.class);
clientHandler.sendMessage(new TimestampRequest());
TimestampResponse tr2 = clientHandler.receiveMessage(TimestampResponse.class);
assertTrue(tr2.timestamp > tr1.timestamp);
//
// Test Commit query of uncommitted transaction
//
clientHandler.sendMessage(new CommitQueryRequest(tr2.timestamp, tr1.timestamp));
CommitQueryResponse cqr1 = clientHandler.receiveMessage(CommitQueryResponse.class);
assertFalse(cqr1.committed);
assertFalse(cqr1.retry);
clientHandler.sendMessage(new CommitRequest(tr1.timestamp, new RowKey[] { r1 }));
CommitResponse cr1 = clientHandler.receiveMessage(CommitResponse.class);
assertTrue(cr1.committed);
assertTrue(cr1.commitTimestamp > tr1.timestamp);
assertEquals(tr1.timestamp, cr1.startTimestamp);
//
// Test Commit query of concurrent committed transaction
//
clientHandler.sendMessage(new CommitQueryRequest(tr2.timestamp, tr1.timestamp));
CommitQueryResponse cqr2 = clientHandler.receiveMessage(CommitQueryResponse.class);
assertFalse(cqr2.committed);
assertFalse(cqr2.retry);
clientHandler.sendMessage(new CommitRequest(tr2.timestamp, new RowKey[] { r1, r2 }));
CommitResponse cr2 = clientHandler.receiveMessage(CommitResponse.class);
assertFalse(cr2.committed);
// Queued reports
clientHandler.sendMessage(new TimestampRequest());
clientHandler.receiveMessage(CommittedTransactionReport.class);
clientHandler.receiveMessage(AbortedTransactionReport.class);
TimestampResponse tr3 = clientHandler.receiveMessage(TimestampResponse.class);
assertTrue(tr3.timestamp > tr2.timestamp);
state.largestDeletedTimestamp = 1000000;
//