5455565758596061626364
assert lockManager(0).isLocked("k"); assert !lockManager(1).isLocked("k"); assert !lockManager(2).isLocked("k"); dtm.runCommitTx(); tm(0).suspend(); assertNotLocked("k"); assertValue("k", removed);
7980818283848586878889
assert !lockManager(1).isLocked(k1); assert !lockManager(1).isLocked(k2); assert !lockManager(1).isLocked(k2); assert !lockManager(2).isLocked(k2); dtm.runCommitTx(); tm(0).suspend(); assertNotLocked(k1); assertNotLocked(k2); assertValue(k1, false);
100101102103104105106107108109110
assert lockManager(0).isLocked("k0"); assert !lockManager(1).isLocked("k0"); assert !lockManager(2).isLocked("k0"); dtm.runCommitTx(); tm(0).suspend(); assertNotLocked("k0"); assertValue("k0", false); }
154155156157158159160161162163164
} }); tm(0).resume(dtm); dtm.runCommitTx(); tm(0).suspend(); assertValue("k0", false); eventually(new Condition() {
115116117118119120121122123124125
assertEquals(tt0.getMinTopologyId(), viewId); assertEquals(tt1.getMinTopologyId(), viewId); tm(1).resume(t); t.runCommitTx(); eventually(new Condition() { @Override public boolean isSatisfied() throws Exception {
118119120121122123124125126127128
assert lockManager(0).isLocked(k); assert !lockManager(1).isLocked(k); assert !lockManager(2).isLocked(k); dtm.runCommitTx(); assertNotLocked(k); assertValue(k, false); }
145146147148149150151152153154155
log.trace("about to commit transaction."); tm(0).resume(dtm); dtm.runPrepare(); dtm.runCommitTx(); tm(0).suspend(); assertValue(k, false); eventually(new AbstractInfinispanTest.Condition() {
5960616263646566676869
assert !lockManager(0).isLocked(k); assert lockManager(1).isLocked(k); assert !lockManager(2).isLocked(k); dtm.runCommitTx(); tm(0).suspend(); assertNotLocked(k); assertValue(k, removed);
8788899091929394959697
assert !lockManager(2).isLocked(k1); assert !lockManager(0).isLocked(k2); assert !lockManager(1).isLocked(k2); assert lockManager(2).isLocked(k2); dtm.runCommitTx(); tm(0).suspend(); assertNotLocked(k1); assertNotLocked(k2); assertValue(k1, false);
} }); tm(0).resume(dtm); dtm.runCommitTx(); dtm.notifyAfterCompletion(Status.STATUS_COMMITTED); tm(0).suspend(); assertValue(k, false);