[ 
https://issues.apache.org/jira/browse/RATIS-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822695#comment-17822695
 ] 

Tsz-wo Sze commented on RATIS-2036:
-----------------------------------

[~tanxinyu], sure, we may pass a flag to decide if it is should trigger a 
snapshot.  Then, removeGroup can avoid taking a snapshot.

> Avoid trigger snapshot when removing raftGroup
> ----------------------------------------------
>
>                 Key: RATIS-2036
>                 URL: https://issues.apache.org/jira/browse/RATIS-2036
>             Project: Ratis
>          Issue Type: Improvement
>          Components: server
>            Reporter: Xinyu Tan
>            Priority: Minor
>
> Currently, Ratis by default triggers a Snapshot of the state machine upon 
> stopping the service, which essentially increases the shutdown time but 
> speeds up the startup time. I've already raised a PR on this trade-off at 
> https://issues.apache.org/jira/browse/RATIS-1862 to allow configuration.
> However, regardless of this configuration, for IoTDB's Delete Region, we hope 
> it can be deleted as soon as possible without triggering a snapshot, 
> otherwise, there might be some timeout issues. For Ratis, we wonder if it's 
> necessary to differentiate between a normal stop and removeGroup, thereby 
> allowing removeGroup to not trigger a snapshot, which may require an 
> additional parameter.
> What's your opinion? [~szetszwo] 



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

Reply via email to