Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-2036

Avoid trigger snapshot when removing raftGroup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.1.0
    • server
    • None

    Description

      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 

      Attachments

        Issue Links

          Activity

            People

              tanxinyu Xinyu Tan
              tanxinyu Xinyu Tan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h