You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladislav Pyatkov (Jira)" <ji...@apache.org> on 2022/08/16 14:27:00 UTC
[jira] [Commented] (IGNITE-17378) Check the replica is a primary before processing request at Replica
[ https://issues.apache.org/jira/browse/IGNITE-17378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17580344#comment-17580344 ]
Vladislav Pyatkov commented on IGNITE-17378:
--------------------------------------------
LGTM
> Check the replica is a primary before processing request at Replica
> -------------------------------------------------------------------
>
> Key: IGNITE-17378
> URL: https://issues.apache.org/jira/browse/IGNITE-17378
> Project: Ignite
> Issue Type: Bug
> Reporter: Vladislav Pyatkov
> Assignee: Sergey Uttsel
> Priority: Major
> Labels: ignite-3, transaction3_rw
>
> Need to check that a current leader and a leader from request are equals on Replica#processRequest. For this purpose we need to useĀ RaftGroupService#refreshAndGetLeaderWithTerm in InternalTableImpl#enlist, send Leader and Term with request and compare it in Replica#processRequest. If they not equals then need to throw PrimaryReplicaMissException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)