XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0, 3.0.0
    • server
    • None

    Description

      Support ADD mode to setConfiguration: we only add members to the new member list that are temporarily not in the current list, and do not delete existing members.

      Suppose there are now three members A B C in the cluster,

      D called setConfiguration(newPeers=[A, B, C, D])
      E called setConfiguration(newPeers=[A, B, C, E])
      In the current code logic, the cluster members will end up being A, B, C, D or A, B, C, E.

      In ADD mode:
      We assume that E's request is executed successfully first, and the current members of the cluster are A, B, C, E, and then start to execute D's request. At this time, we find that D is not in the list, so we just add D instead of deleting E. The clusters eventually become A, B, C, D, E
      In addition, we can hand over to the user whether to use concurrent mode to execute setConfiguration.

      Attachments

        1. 658_review.patch
          21 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              liuyaolong Yaolong Liu
              liuyaolong Yaolong Liu
              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 - 4h 10m
                  4h 10m