Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62698

Do not clear filtering metadata on secondaries upon minor version updates

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.2.0, 4.2.17, 4.4.10, 5.0.5, 5.1.1
    • Component/s: Sharding
    • Labels:
      None
    • Sharding EMEA
    • ALL

      As minor version updates are not implying a change of ownership, it should not be needed to clear the filtering metadata as long as a major version doesn't change.

      The current logic is the following: while refreshing, the refreshing flag is set to true and - after updating collection/chunks entries - the field is set to false. An observer is reacting to the "set to false" event by registering a change that on commit causes the filtering metadata to be cleared up.

      Objective of this ticket is to avoid clearing the filtering metadata on minor versions updates. The following could be a way to implement the solution:

      • "Play" with the refreshing field in a different way:
        • Set it to true and then false on major version updates
        • Set it to true and then unset on minor version updates

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: