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

[Build Failure] test_validate_collection_background

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      In PYTHON-4072 we skipped this test for standalones due to a change in behavior in latest, but the issue is also occurring with replica sets.

      test.test_database.TestDatabase.test_validate_collection_background

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_rhel8_test_ssl__platform~rhel8_auth_ssl~noauth_nossl_python_version~3.12_coverage~coverage_test_latest_replica_set_8422edf3abced2b9492123bf72ac91ab3586a69d_23_12_07_21_46_46/tests?execution=0&sortBy=STATUS&sortDir=ASC

       [2023/12/07 16:15:15.773] FAILURE: pymongo.errors.OperationFailure: Collection 'pymongo_test.test' does not exist to validate., full error: {'ok': 0.0, 'errmsg': "Collection 'pymongo_test.test' does not exist to validate.", 'code': 26, 'codeName': 'NamespaceNotFound', '$clusterTime': {'clusterTime': Timestamp(1701987016, 7), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}, 'operationTime': Timestamp(1701987016, 7)} ()
       [2023/12/07 16:15:15.773] self = <test.test_database.TestDatabase testMethod=test_validate_collection_background>
       [2023/12/07 16:15:15.773]     @client_context.require_version_min(4, 3, 3)
       [2023/12/07 16:15:15.773]     @client_context.require_no_standalone
       [2023/12/07 16:15:15.773]     def test_validate_collection_background(self):
       [2023/12/07 16:15:15.773]         db = self.client.pymongo_test
       [2023/12/07 16:15:15.773]         db.test.insert_one({"dummy": "object"})
       [2023/12/07 16:15:15.773]         coll = db.test
       [2023/12/07 16:15:15.773]         self.assertTrue(db.validate_collection(coll, background=False))
       [2023/12/07 16:15:15.773]         # The inMemory storage engine does not support background=True.
       [2023/12/07 16:15:15.773]         if client_context.storage_engine != "inMemory":
       [2023/12/07 16:15:15.773] >           self.assertTrue(db.validate_collection(coll, background=True))
       [2023/12/07 16:15:15.773] test/test_database.py:386:
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: