Strengthen hasOpenCursor helper and ReshardingChangeStreamsMonitor unit test stability

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following improvements should be made:

      • Wrap this call in assert.soon(), as it can cause failures when the recipient cursor is active but not detected by the hasOpenCursors code. 
      • Update hasOpenCursor() to check the command object for the targeted namespace.
      • Consider adding the teardown executor logic to a scope guard to ensure it is properly cleaned up in case of early errors.

            Assignee:
            Kruti Shah
            Reporter:
            Kruti Shah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: