Test Failure - mockupdb TestClusterTime

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Fixed
    • Priority: Unknown
    • 4.12
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

       [2025/02/27 08:13:02.830] FAILURE: AssertionError: '$clusterTime' not found in OpMsg({"ismaster": 1, "helloOk": true, "$db": "admin"}, namespace="admin") ()
       [2025/02/27 08:13:02.830] self = <test_cluster_time.TestClusterTime testMethod=test_monitor>
       [2025/02/27 08:13:02.830]     def test_monitor(self):
       [2025/02/27 08:13:02.830]         cluster_time = Timestamp(0, 0)
       [2025/02/27 08:13:02.830]         reply = {
       [2025/02/27 08:13:02.830]             "minWireVersion": 0,
       [2025/02/27 08:13:02.830]             "maxWireVersion": MIN_SUPPORTED_WIRE_VERSION,
       [2025/02/27 08:13:02.830]             "$clusterTime": {"clusterTime": cluster_time},
       [2025/02/27 08:13:02.830]         }
       [2025/02/27 08:13:02.830]     
       [2025/02/27 08:13:02.830]         server = MockupDB()
       [2025/02/27 08:13:02.830]         server.run()
       [2025/02/27 08:13:02.830]         self.addCleanup(server.stop)
       [2025/02/27 08:13:02.830]     
       [2025/02/27 08:13:02.830]         client = self.simple_client(server.uri, heartbeatFrequencyMS=500)
       [2025/02/27 08:13:02.830]     
       [2025/02/27 08:13:02.830]         request = server.receives("ismaster")
       [2025/02/27 08:13:02.830]         # No $clusterTime in first ismaster, only in subsequent ones
       [2025/02/27 08:13:02.830]         self.assertNotIn("$clusterTime", request)
       [2025/02/27 08:13:02.830]         request.ok(reply)
       [2025/02/27 08:13:02.830]     
       [2025/02/27 08:13:02.830]         # Next exchange: client returns first clusterTime, we send the second.
       [2025/02/27 08:13:02.830]         request = server.receives("ismaster")
       [2025/02/27 08:13:02.830] >       self.assertIn("$clusterTime", request)
       [2025/02/27 08:13:02.830] E       AssertionError: '$clusterTime' not found in OpMsg({"ismaster": 1, "helloOk": true, "$db": "admin"}, namespace="admin")
       [2025/02/27 08:13:02.830] test/mockupdb/test_cluster_time.py:133: AssertionError
      

      https://spruce.mongodb.com/task/mongo_python_driver_mockupdb_rhel8_python3.9_mockupdb_c9a85ad321f98caf314fc9da7a367e94d661abac_25_02_27_16_05_23/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Caused by PYTHON-4579.

            Assignee:
            Shane Harvey
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: