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

Aggregate cursor failure when read preference not PRIMARY

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.6
    • 2.7
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: