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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.11
    • None
    • Replication
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: