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

Test failure - test.test_database.TestDatabaseAggregation.test_database_aggregation_fake_cursor

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.10
    • Tests
    • None

    Description

      Failing on latest. I think it's a bug in the test. We drop the collection with w=0 which races with the w=0 aggregate write.

      FAIL: test_database_aggregation_fake_cursor (test.test_database.TestDatabaseAggregation)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/shane/git/mongo-python-driver/test/__init__.py", line 432, in wrap
          return f(*args, **kwargs)
        File "/Users/shane/git/mongo-python-driver/test/__init__.py", line 432, in wrap
          return f(*args, **kwargs)
        File "/Users/shane/git/mongo-python-driver/test/test_database.py", line 1050, in test_database_aggregation_fake_cursor
          result = wait_until(
        File "/Users/shane/git/mongo-python-driver/test/utils.py", line 617, in wait_until
          raise AssertionError("Didn't ever %s" % success_description)
      AssertionError: Didn't ever read unacknowledged write
      

      Attachments

        Issue Links

          Activity

            People

              shane.harvey@mongodb.com Shane Harvey
              shane.harvey@mongodb.com Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: