JAkutenshi commented on code in PR #7107:
URL: https://github.com/apache/ignite-3/pull/7107#discussion_r2577932948


##########
modules/partition-replicator/src/main/java/org/apache/ignite/internal/partition/replicator/ZonePartitionReplicaListener.java:
##########
@@ -207,7 +212,15 @@ private static PendingTxPartitionEnlistment 
createAbandonedTxRecoveryEnlistment(
     public CompletableFuture<ReplicaResult> invoke(ReplicaRequest request, 
UUID senderId) {
         return replicaPrimacyEngine.validatePrimacy(request)
                 .thenCompose(replicaPrimacy -> processRequest(request, 
replicaPrimacy, senderId))
-                .thenApply(res -> {
+                .handle((res, ex) -> {
+                    if (ex != null) {
+                        if (hasCause(ex, LockException.class)) {
+                            sneakyThrow(new 
OperationLockException(request.getClass(), (LockException) unwrapCause(ex)));

Review Comment:
   Moved catching to table processor's 
`processOperationRequestWithTxOperationManagementLogic` handling with requests 
types' checking and assertions in `getRequestOperationType`



-- 
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