You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "rpuch (via GitHub)" <gi...@apache.org> on 2023/09/26 06:31:29 UTC
[GitHub] [ignite-3] rpuch commented on a diff in pull request #2628: IGNITE-20410 CheckCatalogVersionOnActionRequest breaks RAFT client leaderId refresh protocol
rpuch commented on code in PR #2628:
URL: https://github.com/apache/ignite-3/pull/2628#discussion_r1336686016
##########
modules/raft/src/main/java/org/apache/ignite/raft/jraft/core/NodeImpl.java:
##########
@@ -1645,6 +1640,23 @@ private void executeApplyingTasks(final List<LogEntryAndClosure> tasks) {
}
}
+ /**
+ * Builds a status for 'Cannot apply because this node is not a leader' situation.
+ *
+ * @param nodeState Node state.
+ */
+ public static Status cannotApplyBecauseNotLeaderStatus(State nodeState) {
Review Comment:
Because this method checks for this specific situation. When it finds out that 'it cannot apply because not a leader', it returns this status.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org