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

Test Failure - TestUnifiedLoggingLoadbalanced

    • 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?

      TestUnifiedLoggingLoadbalanced is failing:

       [2024/09/05 14:32:46.741] FAILURE: AssertionError: 6 != 7 : expected [{'level': 'debug', 'component': 'topology', 'data': {'message': 'Starting topology monitoring', 'topologyId': {'$$exists': True}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Topology description changed', 'topologyId': {'$$exists': True}, 'previousDescription': {'$$exists': True}, 'newDescription': {'$$exists': True}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Starting server monitoring', 'topologyId': {'$$exists': True}, 'serverHost': {'$$type': 'string'}, 'serverPort': {'$$type': ['int', 'long']}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Topology description changed', 'topologyId': {'$$exists': True}, 'previousDescription': {'$$exists': True}, 'newDescription': {'$$exists': True}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Stopped server monitoring', 'topologyId': {'$$exists': True}, 'serverHost': {'$$type': 'string'}, 'serverPort': {'$$type': ['int', 'long']}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Stopped topology monitoring', 'topologyId': {'$$exists': True}}}] but got [{'level': 'debug', 'component': 'topology', 'data': {'message': 'Starting topology monitoring'}}, {'level': 'debug', 'component': 'topology', 'data': {'previousDescription': '<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: Unknown, servers: []>', 'newDescription': "<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: LoadBalanced, servers: [<ServerDescription ('19000-drivertest-lb.3x79d.mongodb-dev.net', 27017) server_type: Unknown, rtt: None>]>", 'message': 'Topology description changed'}}, {'level': 'debug', 'component': 'topology', 'data': {'serverHost': '19000-drivertest-lb.3x79d.mongodb-dev.net', 'serverPort': 27017, 'message': 'Starting server monitoring'}}, {'level': 'debug', 'component': 'topology', 'data': {'previousDescription': "<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: LoadBalanced, servers: [<ServerDescription ('19000-drivertest-lb.3x79d.mongodb-dev.net', 27017) server_type: Unknown, rtt: None>]>", 'newDescription': "<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: LoadBalanced, servers: [<ServerDescription ('19000-drivertest-lb.3x79d.mongodb-dev.net', 27017) server_type: LoadBalancer, rtt: None>]>", 'message': 'Topology description changed'}}, {'level': 'debug', 'component': 'topology', 'data': {'serverHost': '19000-drivertest-lb.3x79d.mongodb-dev.net', 'serverPort': 27017, 'message': 'Stopped server monitoring'}}, {'level': 'debug', 'component': 'topology', 'data': {'previousDescription': "<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: LoadBalanced, servers: [<ServerDescription ('19000-drivertest-lb.3x79d.mongodb-dev.net', 27017) server_type: LoadBalancer, rtt: None>]>", 'newDescription': '<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: Unknown, servers: []>', 'message': 'Topology description changed'}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Stopped topology monitoring'}}] ()
       [2024/09/05 14:32:46.741] self = <test.test_discovery_and_monitoring.TestUnifiedLoggingLoadbalanced testMethod=test_Topology_lifecycle>
       [2024/09/05 14:32:46.741]     def test_case(self):
       [2024/09/05 14:32:46.741] >       self.run_scenario(spec)
       [2024/09/05 14:32:46.741] test/unified_format.py:2078: 
       [2024/09/05 14:32:46.741] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2024/09/05 14:32:46.741] test/unified_format.py:2022: in run_scenario
       [2024/09/05 14:32:46.741]     self._run_scenario(spec, uri)
       [2024/09/05 14:32:46.741] test/unified_format.py:2052: in _run_scenario
       [2024/09/05 14:32:46.741]     self.check_log_messages(spec["operations"], expect_log_messages)
       [2024/09/05 14:32:46.741] test/unified_format.py:1957: in check_log_messages
       [2024/09/05 14:32:46.741]     self.assertEqual(
       [2024/09/05 14:32:46.741] E   AssertionError: 6 != 7 : expected [{'level': 'debug', 'component': 'topology', 'data': {'message': 'Starting topology monitoring', 'topologyId': {'$$exists': True}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Topology description changed', 'topologyId': {'$$exists': True}, 'previousDescription': {'$$exists': True}, 'newDescription': {'$$exists': True}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Starting server monitoring', 'topologyId': {'$$exists': True}, 'serverHost': {'$$type': 'string'}, 'serverPort': {'$$type': ['int', 'long']}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Topology description changed', 'topologyId': {'$$exists': True}, 'previousDescription': {'$$exists': True}, 'newDescription': {'$$exists': True}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Stopped server monitoring', 'topologyId': {'$$exists': True}, 'serverHost': {'$$type': 'string'}, 'serverPort': {'$$type': ['int', 'long']}}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Stopped topology monitoring', 'topologyId': {'$$exists': True}}}] but got [{'level': 'debug', 'component': 'topology', 'data': {'message': 'Starting topology monitoring'}}, {'level': 'debug', 'component': 'topology', 'data': {'previousDescription': '<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: Unknown, servers: []>', 'newDescription': "<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: LoadBalanced, servers: [<ServerDescription ('19000-drivertest-lb.3x79d.mongodb-dev.net', 27017) server_type: Unknown, rtt: None>]>", 'message': 'Topology description changed'}}, {'level': 'debug', 'component': 'topology', 'data': {'serverHost': '19000-drivertest-lb.3x79d.mongodb-dev.net', 'serverPort': 27017, 'message': 'Starting server monitoring'}}, {'level': 'debug', 'component': 'topology', 'data': {'previousDescription': "<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: LoadBalanced, servers: [<ServerDescription ('19000-drivertest-lb.3x79d.mongodb-dev.net', 27017) server_type: Unknown, rtt: None>]>", 'newDescription': "<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: LoadBalanced, servers: [<ServerDescription ('19000-drivertest-lb.3x79d.mongodb-dev.net', 27017) server_type: LoadBalancer, rtt: None>]>", 'message': 'Topology description changed'}}, {'level': 'debug', 'component': 'topology', 'data': {'serverHost': '19000-drivertest-lb.3x79d.mongodb-dev.net', 'serverPort': 27017, 'message': 'Stopped server monitoring'}}, {'level': 'debug', 'component': 'topology', 'data': {'previousDescription': "<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: LoadBalanced, servers: [<ServerDescription ('19000-drivertest-lb.3x79d.mongodb-dev.net', 27017) server_type: LoadBalancer, rtt: None>]>", 'newDescription': '<TopologyDescription id: 66da2245bb8ba6ae66c87c4e, topology_type: Unknown, servers: []>', 'message': 'Topology description changed'}}, {'level': 'debug', 'component': 'topology', 'data': {'message': 'Stopped topology monitoring'}}]
      

      https://spruce.mongodb.com/task/mongo_python_driver_serverless__platform~rhel8_auth_ssl~auth_ssl_python_version~3.10_serverless~enabled_test_serverless_29bbf77dad0867ca19bf9769ca3fddc19cadec23_24_09_05_21_18_48?execution=0&sortBy=STATUS&sortDir=ASC

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

              Created:
              Updated:
              Resolved: