Log serviceId as hex string

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 4.7
    • 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

      Name of Failure:

      test.test_command_logging.TestCommandLoggingServiceId.test_command_log_messages_include_serviceId_when_in_LB_mode

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_serverless__platform~rhel8_auth_ssl~auth_ssl_python_version~pypy3.10_serverless~original_test_serverless_5b5a7e640bb93a17fb19e404252960502567bb10_24_02_16_22_14_06/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      Started failing when PYTHON-3457 was merged.

      Stack trace:

       [2024/02/22 06:22:53.346] FAILURE: AssertionError: ObjectId('65d36bf2ef8abe88bb30bc28') is not an instance of (<class 'str'>,) ()
       [2024/02/22 06:22:53.346] self = <test.test_command_logging.TestCommandLoggingServiceId testMethod=test_command_log_messages_include_serviceId_when_in_LB_mode>
       [2024/02/22 06:22:53.346]     def test_case(self):
       [2024/02/22 06:22:53.346] >       self.run_scenario(spec)
       [2024/02/22 06:22:53.346] test/unified_format.py:1851: 
       [2024/02/22 06:22:53.346] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2024/02/22 06:22:53.346] test/unified_format.py:1798: in run_scenario
       [2024/02/22 06:22:53.346]     self._run_scenario(spec, uri)
       [2024/02/22 06:22:53.346] test/unified_format.py:1825: in _run_scenario
       [2024/02/22 06:22:53.346]     self.check_log_messages(spec["operations"], expect_log_messages)
       [2024/02/22 06:22:53.346] test/unified_format.py:1759: in check_log_messages
       [2024/02/22 06:22:53.346]     self.match_evaluator.match_result(expected_data, actual_data)
       [2024/02/22 06:22:53.346] test/unified_format.py:791: in match_result
       [2024/02/22 06:22:53.346]     return self._match_document(expectation, actual, is_root=not in_recursive_call)
       [2024/02/22 06:22:53.346] test/unified_format.py:776: in _match_document
       [2024/02/22 06:22:53.346]     if self._evaluate_if_special_operation(expectation, actual, key):
       [2024/02/22 06:22:53.346] test/unified_format.py:763: in _evaluate_if_special_operation
       [2024/02/22 06:22:53.346]     self._evaluate_special_operation(
       [2024/02/22 06:22:53.346] test/unified_format.py:728: in _evaluate_special_operation
       [2024/02/22 06:22:53.346]     method(spec, actual, key_to_compare)
       [2024/02/22 06:22:53.346] test/unified_format.py:684: in _operation_type
       [2024/02/22 06:22:53.346]     self.test.assertIsInstance(value, permissible_types)
       [2024/02/22 06:22:53.346] E   AssertionError: ObjectId('65d36bf2ef8abe88bb30bc28') is not an instance of (<class 'str'>,)
      

            Assignee:
            Shane Harvey
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: