*
* read ptr = 5
* write ptr = 6
*/
Transaction tx1 = txManager.startShort();
assertTrue(txManager.canCommit(tx1, EMPTY_CHANGESET));
assertTrue(txManager.commit(tx1));
Transaction tx2 = txManager.startShort();
assertTrue(txManager.canCommit(tx2, EMPTY_CHANGESET));
assertTrue(txManager.commit(tx2));
Transaction tx3 = txManager.startShort();
Transaction tx4 = txManager.startShort();
txManager.invalidate(tx4.getWritePointer());
Transaction tx5 = txManager.startShort();
assertTrue(txManager.canCommit(tx5, EMPTY_CHANGESET));
assertTrue(txManager.commit(tx5));
Transaction tx6 = txManager.startShort();
Map<byte[], Long> ttls = Maps.newTreeMap(Bytes.BYTES_COMPARATOR);
Filter filter = createFilter(tx6, ttls);
assertEquals(Filter.ReturnCode.INCLUDE_AND_NEXT_COL,
filter.filterKeyValue(newKeyValue("row1", "val1", tx6.getWritePointer())));
assertEquals(Filter.ReturnCode.INCLUDE_AND_NEXT_COL,
filter.filterKeyValue(newKeyValue("row1", "val1", tx5.getWritePointer())));
assertEquals(Filter.ReturnCode.SKIP,
filter.filterKeyValue(newKeyValue("row1", "val1", tx4.getWritePointer())));
assertEquals(Filter.ReturnCode.SKIP,