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

XMLWordPrintableJSON

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

      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
            Reporter:
            Will Schultz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: