Allow disabling cursor block warnings

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • vNext
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • 1
    • Iteration L (Sept 22 - Oct 6)
    • Needed
    • Hide

      We've added a new cursor method, cursor.disableBlockWarnings() that can be used to silence warnings printed by mongosh when using blocking calls on cursors, such as .next() or .hasNext() on change streams and tailable cursors.

      Show
      We've added a new cursor method, cursor.disableBlockWarnings() that can be used to silence warnings printed by mongosh when using blocking calls on cursors, such as .next() or .hasNext() on change streams and tailable cursors.
    • Developer Tools

      Currently, some methods on cursors print warnings about potentially blocking because we weren't able to replicate the legacy shell's non-blocking behavior in mongosh on top of public driver APIs. Users may desire this behavior, so we should give them a way to disable these warnings.

            Assignee:
            Anna Henningsen
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: