[ 
https://issues.apache.org/jira/browse/IGNITE-23900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksandr Polovtsev updated IGNITE-23900:
-----------------------------------------
    Description: 
{{Replica}} class contains a method that returns a {{RaftGroupService}} for 
interactions with the Raft layer, namely creating Raft snapshots. However, 
since this method is deprecated and will be removed in IGNITE-22036, it is 
proposed to make a separate method for making Raft snapshots inside the 
{{Replica}} class itself:

{code:java}
/**
 * Creates a snapshot on a given node.
 *
 * @param targetConsistentId Name of the node that will create a snapshot.
 * @return Future that gets completed when the target node creates a snapshot.
 */
CompletableFuture<Void> createSnapshotOn(String targetConsistentId);

/**
 * Transfers leadership from the current group leader to the target node.
 *
 * @param targetConsistentId Name of the node that will become a new leader.
 * @return Future that gets completed when the current leader executes the 
request and steps down.
 */
CompletableFuture<Void> transferLeadershipTo(String targetConsistentId);
{code}


  was:
{{Replica}} class contains a method that returns a {{RaftGroupService}} for 
interactions with the Raft layer, namely creating Raft snapshots. However, 
since this method is deprecated and will be removed in IGNITE-22036, it is 
proposed to make a separate method for making Raft snapshots inside the 
{{Replica}} class itself:

{code:java}
/**
 * Creates a Raft snapshot on a given node.
 *
 * @param targetConsistentId Name of the node that will create a snapshot.
 * @return Future that gets completed when the target node creates a snapshot.
 */
CompletableFuture<Void> createSnapshotOn(String targetConsistentId);

/**
 * Transfers leadership from the current group leader to the target node.
 *
 * @param targetConsistentId Name of the node that will become a new leader.
 * @return Future that gets completed when the current leader executes the 
request and steps down.
 */
CompletableFuture<Void> transferLeadershipTo(String targetConsistentId);
{code}



> Add a method to Replica for creating Raft snapshots
> ---------------------------------------------------
>
>                 Key: IGNITE-23900
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23900
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Aleksandr Polovtsev
>            Assignee: Aleksandr Polovtsev
>            Priority: Major
>              Labels: ignite-3
>
> {{Replica}} class contains a method that returns a {{RaftGroupService}} for 
> interactions with the Raft layer, namely creating Raft snapshots. However, 
> since this method is deprecated and will be removed in IGNITE-22036, it is 
> proposed to make a separate method for making Raft snapshots inside the 
> {{Replica}} class itself:
> {code:java}
> /**
>  * Creates a snapshot on a given node.
>  *
>  * @param targetConsistentId Name of the node that will create a snapshot.
>  * @return Future that gets completed when the target node creates a snapshot.
>  */
> CompletableFuture<Void> createSnapshotOn(String targetConsistentId);
> /**
>  * Transfers leadership from the current group leader to the target node.
>  *
>  * @param targetConsistentId Name of the node that will become a new leader.
>  * @return Future that gets completed when the current leader executes the 
> request and steps down.
>  */
> CompletableFuture<Void> transferLeadershipTo(String targetConsistentId);
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to