Handle secondaries when re-creating sessions collection in background hook

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-09-01
    • 200
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The DropSessionsCollection hook is recreating the sessions collection via the refreshLogicalSessionCacheNow command and handling errors such as NotPrimary. However, this command can be run on secondaries and thus will not throw if accidentally run against a secondary but will instead return NamespaceNotFound. We should handle this case in the hook to identify this error as indicating a secondary was contacted and retrying the getPrimary + command.

              Assignee:
              Allison Easton
              Reporter:
              Allison Easton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: