String path = PathUtil.getRunningTxnInfoPath("/rm_base", tableName, colFamiliy);
byte[] data = zkutil.getRawData(path, null);
StoreFamilyRevisionList list = new StoreFamilyRevisionList();
ZKUtil.deserialize(list, data);
assertEquals(list.getRevisionListSize(), 1);
StoreFamilyRevision lightTxn = list.getRevisionList().get(0);
assertEquals(lightTxn.timestamp, txn.getTransactionExpireTimeStamp());
assertEquals(lightTxn.revision, txn.getRevisionNumber());
}
manager.abortWriteTransaction(txn);
for (String colFamiliy : columnFamilies) {
String path = PathUtil.getRunningTxnInfoPath("/rm_base", tableName, colFamiliy);
byte[] data = zkutil.getRawData(path, null);
StoreFamilyRevisionList list = new StoreFamilyRevisionList();
ZKUtil.deserialize(list, data);
assertEquals(list.getRevisionListSize(), 0);
}
for (String colFamiliy : columnFamilies) {
String path = PathUtil.getAbortInformationPath("/rm_base", tableName, colFamiliy);
byte[] data = zkutil.getRawData(path, null);
StoreFamilyRevisionList list = new StoreFamilyRevisionList();
ZKUtil.deserialize(list, data);
assertEquals(list.getRevisionListSize(), 1);
StoreFamilyRevision abortedTxn = list.getRevisionList().get(0);
assertEquals(abortedTxn.getRevision(), txn.getRevisionNumber());
}
manager.close();
}