@Override
public boolean isSatisfied() throws Exception {
return (tt.getRemoteTxCount() == 0) && (tt.getLocalTxCount() == 0);
}
});
final RecoveryManager rm = TestingUtil.extractComponent(cache(managerIndex, "test"), RecoveryManager.class);
eventually(new Condition() {
@Override
public boolean isSatisfied() throws Exception {
return rm.getInDoubtTransactions().size() == 0;
}
});
eventually(new Condition() {
@Override
public boolean isSatisfied() throws Exception {
return rm.getPreparedTransactionsFromCluster().all().length == 0;
}
});
}