denis-chudov commented on code in PR #3467:
URL: https://github.com/apache/ignite-3/pull/3467#discussion_r1547905984


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java:
##########
@@ -2231,19 +2233,13 @@ private ReplicaRequest upsertAllInternal(
      * @param e Exception to check.
      * @return True if retrying is possible, false otherwise.
      */
-    private boolean isRestartTransactionPossible(Throwable e) {
-        if (e instanceof LockException) {
-            return true;
-        } else if (e instanceof TransactionException && e.getCause() 
instanceof LockException) {
-            return true;
-        } else if (e instanceof CompletionException && e.getCause() instanceof 
LockException) {
-            return true;
-        } else if (e instanceof CompletionException
-                && e.getCause() instanceof TransactionException
-                && e.getCause().getCause() instanceof LockException) {
-            return true;
+    private static boolean isRestartTransactionPossible(Throwable e) {

Review Comment:
   renamed to `exceptionAllowsTxRetry`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to