@Test public void runTestDeleteCol() throws Exception {
try {
TransactionManager tm = new TransactionManager(conf);
TransactionalTable tt = new TransactionalTable(conf, TEST_TABLE);
TransactionState t1 = tm.beginTransaction();
LOG.info("Transaction created " + t1);
int rowcount = 10;
int colAcount = 0;
int colBcount = 0;
byte[] fam = Bytes.toBytes(TEST_FAMILY);
byte[] colA = Bytes.toBytes("testdataA");
byte[] colB = Bytes.toBytes("testdataB");
byte[] data1 = Bytes.toBytes("testWrite-1");
byte[] data2 = Bytes.toBytes("testWrite-2");
byte[] modrow = Bytes.toBytes("test-del" + 3);
for (int i = 0; i < rowcount; i++) {
byte[] row = Bytes.toBytes("test-del" + i);
Put p = new Put(row);
p.add(fam, colA, data1);
p.add(fam, colB, data2);
tt.put(t1, p);
}
tm.tryCommit(t1);
TransactionState t2 = tm.beginTransaction();
Delete d = new Delete(modrow);
d.deleteColumn(fam, colA);
tt.delete(t2, d);
TransactionState tscan = tm.beginTransaction();
ResultScanner rs = tt.getScanner(tscan, new Scan());
Result r = rs.next();
colAcount = 0;
colBcount = 0;
while (r != null) {