-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
Not Needed
-
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'}}]
- related to
-
PYTHON-4021 Publish TopologyDescriptionChangedEvent on topology close
- Closed