Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-636

Aggregate cursor failure when read preference not PRIMARY

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7
    • Affects Version/s: 2.6
    • Component/s: None
    • None

      If the aggregate command is run against a secondary with the cursor option any getMore calls on the resulting cursor will raise OperationFailure. The problem is caused by the cursor not knowing which server it was created on. The attached patch to test_collection demonstrates the issue.

        1. agg_cursor_test.diff
          2 kB
          Bernie Hackett

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: