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

'parallelCollectionScan' should always return a single cursor for capped collections

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.11
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible

      The correctness of opening multiple cursors on a capped collection and reading from them in parallel is potentially problematic and internal support for such an operation is not well defined. Since the 'parallelCollectionScan' command is going to be integrated into the initial sync process, for parallel collection cloning, correctness of this command for capped collections is important. Therefore, its behavior should be simplified to always return a single cursor when run against a capped collection, just like a normal 'find' command would.

      In the future, parallel scan support for capped collections may be officially added, but until its correctness can be guaranteed, it should be suitable to resort to this simpler approach.

            Assignee:
            jason.chan@mongodb.com Jason Chan
            Reporter:
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: