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

Test failure - test_to_list_tailable

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Name of Failure:

      test_to_list_tailable

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_rhel8_test_ssl__platform~rhel8_auth_ssl~auth_ssl_python_version~3.10_coverage~coverage_test_3.6_replica_set_patch_b14420a9df321714a06ddae1a907a04846ebca20_66b538ac47c9db0007a185ff_24_08_08_21_29_19?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      Fails consistently on 3.6 for an unknown reason, which is an old enough server version for us to skip the test.

      Stack trace:

       [2024/08/08 14:46:37.338] FAILURE: AssertionError: 0 not greater than or equal to 1 ()
       [2024/08/08 14:46:37.338] self = <test.test_cursor.TestCursor testMethod=test_to_list_tailable>
       [2024/08/08 14:46:37.338]     @client_context.require_replica_set
       [2024/08/08 14:46:37.338]     def test_to_list_tailable(self):
       [2024/08/08 14:46:37.338]         oplog = self.client.local.oplog.rs
       [2024/08/08 14:46:37.338]         last = oplog.find().sort("$natural", pymongo.DESCENDING).limit(-1).next()
       [2024/08/08 14:46:37.338]         ts = last["ts"]
       [2024/08/08 14:46:37.338]     
       [2024/08/08 14:46:37.338]         c = oplog.find(
       [2024/08/08 14:46:37.338]             {"ts": {"$gte": ts}}, cursor_type=pymongo.CursorType.TAILABLE_AWAIT, oplog_replay=True
       [2024/08/08 14:46:37.338]         )
       [2024/08/08 14:46:37.338]     
       [2024/08/08 14:46:37.338]         docs = c.to_list()
       [2024/08/08 14:46:37.338]     
       [2024/08/08 14:46:37.338] >       self.assertGreaterEqual(len(docs), 1)
       [2024/08/08 14:46:37.338] E       AssertionError: 0 not greater than or equal to 1
       [2024/08/08 14:46:37.338] test/test_cursor.py:1386: AssertionError
      
          
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            noah.stapp@mongodb.com Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: