hi:
this is my test code , why it can't roalback , thanks
Configuration hbaseConf = null;
TransactionManager tm = null;
Transaction t = null;
try {
hbaseConf = HBaseConfiguration.create();
hbaseConf.set("hbase.coprocessor.region.classes",
"com.yahoo.omid.regionserver.Compacter");
hbaseConf.set("tso.host", "localhost");
hbaseConf.setInt("tso.port", 1234);
tm = new TransactionManager(hbaseConf);
TTable table = new TTable(hbaseConf, "t1");
t = tm.begin();
Put p1 = new Put("1".getBytes());
p1.add("f1".getBytes(), "f1_1".getBytes(), "1".getBytes());
table.put(t, p1);
Integer.valueOf("a");
Put p2 = new Put("2".getBytes());
p2.add("f1".getBytes(), "f1_1".getBytes(), "2".getBytes());
table.put(t, p2);
tm.commit(t);
table.close();
} catch (Exception e) {
e.printStackTrace();
//tm.rollback(t);
}