Mikhail Efremov created IGNITE-23109:
----------------------------------------
Summary: Add a correct raft-clients shutdown process in Replica
Manager
Key: IGNITE-23109
URL: https://issues.apache.org/jira/browse/IGNITE-23109
Project: Ignite
Issue Type: Improvement
Reporter: Mikhail Efremov
Assignee: Mikhail Efremov
*Description*
For now there is no proper raft-clients (\{{RaftGroupService}}) shutdown
process in \{{ReplicaManager}}. The last is the main place that create and thus
must shutdown raft clients properly.
Also there is an intention to make \{{RaftGroupService}} implements
\{{ManuallyClosable}}. It will able us to use proper closing methods like
\{{IgniteUtils#closeAllManually}} on the one hand and unify interface on the
another hand. The closing process should do both \{{unsubscribeLeader}} and
\{{shutdown}} calls.
*Motivation*
The main reason is to proper closing resources such as raft clients that isn't
doing now at all.
*Definition of done*
# \{{RaftGroupService}} implements \{{ManuallyClosable}}.
# \{{RaftGroupService#close}} consists of \{{unsubscribeLeader}} and
\{{shutdown}} calls.
# Raft clients are closed in \{{ReplicaManager#stopAsync}} through
\{{IgniteUtils#closeAllManually}} method.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)