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

Allow multiple clients to use a single cursor.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: 2.2.3
    • Component/s: Querying
    • Labels:
      None
    • Environment:
      All
    • Backwards Compatibility:
      Fully Compatible

      Description

      Currently the mongod server upon seeing a cursor that is already locked returns a empty result to the client with a cursor id of zero. This will cause the client to consider the cursor exhausted and stop any active iteration.

      There are cases where having multiple threads/processes reading from the same cursor is advantageous. The current processing makes handling those situations more difficult as the client cannot tell if the cursor is really exhausted or was just being actively read by another process.

      Implementing this functionality would be a component of allowing clients to use a cursor as a shared work queue.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: