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

ReshardingChangeStreamsMonitor shouldn't use a single opCtx for the entire time

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • Cluster Scalability 2025-03-03

      The ReshardingChangeStreamsMonitor currently creates a DBClientCursor once and use it to consume change stream events until the final event ("reshardBlockingWrites" or "reshardDoneCatchUp"). According to the Service Arch team, it is safer to drop it and reschedule it on every iteration. There have been some scenarios where holding decorations on an OperationContext for a long time and reusing them causes unexpected resource consumption.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: