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

lsid error on getMore when a new session is used for parallelCollectionScan

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      Pymongo uses a different implicit session for each cursor returned from the parallelCollectionScan command. This worked fine in 3.6 but in 4.0 the getMore with a different lsid fails with:
      OperationFailure: Cannot run getMore on cursor 625787356667, which was created in session fa0f13b5-db90-49fa-9d93-f0633db9289a - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=, in session 6b6390df-a5af-4b56-b942-683a2ee9cf02 - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=

      Is Pymongo's approach wrong, should we always use the same session for all the resulting cursors?

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: