[Build Failure] test_transaction_pool_cleared_error_labelled_transient

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Fixed
    • Priority: Unknown
    • 3.7.1
    • Affects Version/s: None
    • Component/s: None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      FAILED test/test_transactions.py::TestTransactions::test_transaction_pool_cleared_error_labelled_transient

      https://spruce.mongodb.com/task/motor_main__ssl~nossl_tox_env~synchro_py312_os~rhel8_test_8.0_sharded_cluster_68325a00a2cb890007f0666b_25_05_24_23_45_04/logs?execution=0&sortBy=STATUS&sortDir=ASC

      Test was added in PYTHON-4924

       [2025/05/24 19:00:57.536] =================================== FAILURES ===================================
       [2025/05/24 19:00:57.536] ___ TestTransactions.test_transaction_pool_cleared_error_labelled_transient ____
       [2025/05/24 19:00:57.536] self = <test.test_transactions.TestTransactions testMethod=test_transaction_pool_cleared_error_labelled_transient>
       [2025/05/24 19:00:57.536]     @client_context.require_transactions
       [2025/05/24 19:00:57.536]     def test_transaction_pool_cleared_error_labelled_transient(self):
       [2025/05/24 19:00:57.536]         c = self.single_client()
       [2025/05/24 19:00:57.536]         with self.assertRaises(AutoReconnect) as context:
       [2025/05/24 19:00:57.536]             with c.start_session() as session:
       [2025/05/24 19:00:57.536]                 with session.start_transaction():
       [2025/05/24 19:00:57.536] >                   server = c._select_server(writable_server_selector, session, "test")
       [2025/05/24 19:00:57.536] test/test_transactions.py:399:
       [2025/05/24 19:00:57.536] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2025/05/24 19:00:57.536] ../../../../synchro/__init__.py:390: in __getattr__
       [2025/05/24 19:00:57.536]     return Database(self, name, delegate=getattr(self.delegate, name))
       [2025/05/24 19:00:57.536] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2025/05/24 19:00:57.536]     def __getattr__(self, name):
       [2025/05/24 19:00:57.536]         if name.startswith("_"):
       [2025/05/24 19:00:57.536] >           raise AttributeError(
       [2025/05/24 19:00:57.536]                 f"{self.__class__.__name__} has no attribute {name!r}. To access the {name}"
       [2025/05/24 19:00:57.536]                 f" database, use client['{name}']."
       [2025/05/24 19:00:57.536]             )
       [2025/05/24 19:00:57.536] E           AttributeError: MotorClient has no attribute '_select_server'. To access the _select_server database, use client['_select_server'].
       [2025/05/24 19:00:57.536] ../../../../motor/core.py:286: AttributeError
       [2025/05/24 19:00:57.536] - generated xml file: /data/mci/85bb2c8a4cc68d65fdb818d071c782da/src/.tox/synchro/tmp/mongo-python-driver/xunit-results/TEST-results.xml -
       [2025/05/24 19:00:57.536] =========================== short test summary info ============================
      

              Assignee:
              Steve Silvester
              Reporter:
              Steve Silvester
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: