Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-17983

Fix work with the last applied index in RAFT

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 3.0
    • None

    Description

      At the moment, MvPartitionStorage and TxStateStorage are used for a partition raft group, while only MvPartitionStorage#persistedIndex of MvPartitionStorage#lastAppliedIndex is used, which is not correct.

      On recovery, we need to use a minimum of MvPartitionStorage#lastAppliedIndex and TxStateStorage#lastAppliedIndex so as not to lose data for one of the storage.

      When taking a snapshot for a full rebalance, we should use the maximum of MvPartitionStorage#lastAppliedIndex and TxStateStorage#lastAppliedIndex so that we can load up-to-date data from the leader.

      Etc.

      Attachments

        Issue Links

          Activity

            People

              ktkalenko@gridgain.com Kirill Tkalenko
              ktkalenko@gridgain.com Kirill Tkalenko
              Ivan Bessonov Ivan Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 0.5h
                  0.5h