[
https://issues.apache.org/jira/browse/IGNITE-21805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Efremov updated IGNITE-21805:
-------------------------------------
Epic Link: IGNITE-22313 (was: IGNITE-19170)
> Refactor TableManager and move all RAFT related pieces to Replica
> -----------------------------------------------------------------
>
> Key: IGNITE-21805
> URL: https://issues.apache.org/jira/browse/IGNITE-21805
> Project: Ignite
> Issue Type: Improvement
> Reporter: Kirill Gusakov
> Assignee: Mikhail Efremov
> Priority: Major
> Labels: ignite-3
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> *Motivation*
> At the moment we have some places inside the TableManager, which:
> * Use RaftManager to start/stop RAFT nodes
> (handleChangePendingAssignmentEvent/handleChangeStableAssignmentEvent)
> * Use RaftGroupService through
> table.internalTable().tableRaftService().partitionRaftGroupService calls
> This fact prevents us on the track of zone-based collocation. The further
> collocation steps will be easier, if we will move the whole RAFT connected
> operation to the Replica class. Moreover, it should be there semantically
> *Definition of done*
> * All code inside the handleChangePendingAssignmentEvent connected with the
> start of raft groups (PartitionListener/RebalanceRaftGroupEventsListener) and
> raft clients must be moved to the start of the Replica itself
> * The same about handleChangeStableAssignmentEvent - the stop of Replica
> must stop appropriate raft node
> * All calls for
> table.internalTable().tableRaftService().partitionRaftGroupService must be
> replaced by the replicaMgr.replica(replicaGrpdId).raftClient()
> *Implementation notes*
> * The new temporary methods must be implemented and remove after IGNITE-22036
> ** ReplicaManager.replica(ReplicationGroupId replicaGrpId) - which returns
> the appropriate Replica by group id
> ** Replica.raftClient() - which return replica's RaftGroupService (raft
> client)
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)