sanpwc commented on a change in pull request #400:
URL: https://github.com/apache/ignite-3/pull/400#discussion_r737716963
##########
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:
Seems that currently onBeforeApply is used only to acquire locks, could
you please explain why it's not possible to do this within common apply method?
--
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]