ignite-5510 Remove assert from removeTxReturn
removeTxReturn can be called concurrently from processDhtTxOnePhaseCommitAckRequest and node fail handler
it is possible client acks tx but it did not start on backup since partition was evicted (0 backups cache)
@@ -1092,15 +1092,8 @@ public class IgniteTxManager extends GridCacheSharedManagerAdapter {
public void removeTxReturn(GridCacheVersion xidVer) {
Object prev = completedVersHashMap.get(xidVer);
- if (Boolean.FALSE.equals(prev)) // Tx can be rolled back.
- return;
-
- assert prev instanceof GridCacheReturnCompletableWrapper:
- prev + " instead of GridCacheReturnCompletableWrapper";
-
- boolean res = completedVersHashMap.replace(xidVer, prev, true);
-
- assert res;
+ if (prev instanceof GridCacheReturnCompletableWrapper)
+ completedVersHashMap.replace(xidVer, prev, true);
}
/**
