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

Allow multiple clients to use a single cursor.

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • Affects Version/s: 2.2.3
    • Component/s: Querying
    • Labels:
      None
    • Environment:
      All
    • Query Execution
    • Fully Compatible

      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.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            robert.j.moore@allanbank.com Robert Moore
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: