ascherbakoff commented on a change in pull request #400:
URL: https://github.com/apache/ignite-3/pull/400#discussion_r749049913



##########
File path: 
modules/raft-client/src/main/java/org/apache/ignite/raft/client/service/RaftGroupListener.java
##########
@@ -71,4 +74,11 @@
      * Invoked once after a raft node has been shut down.
      */
     void onShutdown();
+
+    /**
+     * Invoked before submitting a command to a raft group.
+     * @param cmd The command.
+     * @return The future or null if no-op.
+     */
+    @Nullable CompletableFuture<Void> onBeforeApply(Command command);

Review comment:
       Because doing so will make all txs enlisting the same partition (even 
with different keys) to execute sequentially.




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