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

[v6.0 only] Re-enable autosplitting on the sessions collection when downgrading to FCV 5.0

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.17
    • Component/s: None
    • Catalog and Routing
    • ALL
    • CAR Team 2024-09-30, CAR Team 2024-10-14, CAR Team 2024-10-28, CAR Team 2024-11-11, CAR Team 2024-11-25
    • 2

      SERVER-67346 disabled autosplitting on the sessions collection because the new data-size balancing policy (landed in v6.0.3) is not chunk-based and splitting is not required anymore.

      The ticket was aimed at landing only in v6.1 (as per the commit's title) hence we didn't make the effort to unset the noAutoSplit option on downgrade based on the assumption that there was low chance for users to perform a double downgrade getting back to v6.0 and then set the FCV down to v5.0.

      However, the commit was then backported to v6.0 and at that point we should have introduced the logic to clear the flag up upon downgrading the FCV to v5.0. Purpose of this ticket is to implement that logic in the next v6.0 sub-version.

      We should: clear out CollectionType::kMaxChunkSizeBytesFieldName and CollectionType::kNoAutoSplitFieldName from the document referring config.system.sessions in config.collections and avoid the periodic logical sessions refresher from setting those options again.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: