Test Failure - Python 2.7 transactions test creates circular Pool references

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Cannot Reproduce
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Failed in a patch build on v3.12 with Python 2.7:

       [2021/06/24 19:48:19.162]   test_transactions-convenient-api_callback_aborts_withTransaction_still_succeeds_if_callback_aborts_and_runs_extra_op (test_transactions.TestTransactionsConvenientAPI) ... gc: uncollectable <Pool instance at 0x7fa104d65d20>
       [2021/06/24 19:48:19.162] gc: uncollectable <Pool instance at 0x7fa104d65f00>
       [2021/06/24 19:48:19.162] gc: uncollectable <dict 0x7fa104d0b830>
       [2021/06/24 19:48:19.162] gc: uncollectable <dict 0x7fa104d6a950>
       [2021/06/24 19:48:19.162] gc: uncollectable <set 0x7fa104d08140>
       [2021/06/24 19:48:19.162] gc: uncollectable <BoundedSemaphore instance at 0x7fa104d65050>
       [2021/06/24 19:48:19.163] gc: uncollectable <_PoolGeneration 0x7fa104d04710>
       [2021/06/24 19:48:19.163] gc: uncollectable <tuple 0x7fa104d442d0>
       [2021/06/24 19:48:19.163] gc: uncollectable <PoolOptions 0x7fa104d4aad0>
       [2021/06/24 19:48:19.163] gc: uncollectable <set 0x7fa104d63050>
       [2021/06/24 19:48:19.163] gc: uncollectable <BoundedSemaphore instance at 0x7fa104d65910>
       [2021/06/24 19:48:19.163] gc: uncollectable <_PoolGeneration 0x7fa104d04790>
       [2021/06/24 19:48:19.163] gc: uncollectable <collections.deque 0x7fa104db3f30>
       [2021/06/24 19:48:19.163] gc: uncollectable <PoolOptions 0x7fa104d4ab90>
       [2021/06/24 19:48:19.163] gc: uncollectable <PoolOptions 0x7fa104d4a710>
       [2021/06/24 19:48:19.163] gc: uncollectable <dict 0x7fa104cfd050>
       [2021/06/24 19:48:19.163] gc: uncollectable <dict 0x7fa104d0b290>
       [2021/06/24 19:48:19.163] gc: uncollectable <_EventListeners 0x7fa104d04ad0>
       [2021/06/24 19:48:19.163] gc: uncollectable <SON 0x7fa104d4cb00>
       [2021/06/24 19:48:19.163] gc: uncollectable <dict 0x7fa104cfd950>
       [2021/06/24 19:48:19.163] gc: uncollectable <dict 0x7fa104d58290>
       [2021/06/24 19:48:19.164] gc: uncollectable <SON 0x7fa104d4c8a0>
       [2021/06/24 19:48:19.164] gc: uncollectable <CompressionSettings 0x7fa104d04890>
       [2021/06/24 19:48:19.164] gc: uncollectable <SON 0x7fa104d4c9d0>
       [2021/06/24 19:48:19.164] gc: uncollectable <_Condition 0x7fa104d04e10>
       [2021/06/24 19:48:19.164] gc: uncollectable <collections.defaultdict 0x7fa104d79cb0>
       [2021/06/24 19:48:19.164] gc: uncollectable <dict 0x7fa0ff5fb5f0>
       [2021/06/24 19:48:19.164] gc: uncollectable <dict 0x7fa104cfd170>
       [2021/06/24 19:48:19.164] gc: uncollectable <SON 0x7fa104d4c2b0>
       [2021/06/24 19:48:19.164] gc: uncollectable <SON 0x7fa104d4c770>
       [2021/06/24 19:48:19.164] gc: uncollectable <_Condition 0x7fa104d04c50>
       [2021/06/24 19:48:19.164] gc: uncollectable <collections.defaultdict 0x7fa104d79b90>
       [2021/06/24 19:48:19.164] gc: uncollectable <dict 0x7fa104db4ef0>
       [2021/06/24 19:48:19.164] gc: uncollectable <SON 0x7fa104d4c180>
       [2021/06/24 19:48:19.164] gc: uncollectable <SON 0x7fa104d4c640>
       [2021/06/24 19:48:19.164] gc: uncollectable <dict 0x7fa104d02b90>
       [2021/06/24 19:48:19.164] gc: uncollectable <dict 0x7fa104d40830>
       [2021/06/24 19:48:19.164] gc: uncollectable <SON 0x7fa104d4cc30>
       [2021/06/24 19:48:19.164] gc: uncollectable <SON 0x7fa104d4cd60>
       [2021/06/24 19:48:19.164] gc: uncollectable <TopologySettings 0x7fa104d04c10>
       [2021/06/24 19:48:19.164] gc: uncollectable <dict 0x7fa104cfbef0>
       [2021/06/24 19:48:19.164] gc: uncollectable <_CancellationContext 0x7fa0ff5dfc50>
       [2021/06/24 19:48:19.164] gc: uncollectable <list 0x7fa104d593c0>
       [2021/06/24 19:48:19.164] gc: uncollectable <list 0x7fa104d50dc0>
       [2021/06/24 19:48:19.164] gc: uncollectable <list 0x7fa104d59aa0>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d50910>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d50a50>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d5d0a0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104cfd290>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d6a5f0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104cfda70>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d76d70>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104cfd710>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104cfd3b0>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d46d70>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104da6dc0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d42830>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d02dd0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa0ff5b0ef0>
       [2021/06/24 19:48:19.165] gc: uncollectable <builtin_function_or_method 0x7fa104d70550>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d5d190>
       [2021/06/24 19:48:19.165] gc: uncollectable <builtin_function_or_method 0x7fa104d46fa0>
       [2021/06/24 19:48:19.165] gc: uncollectable <OvertCommandListener 0x7fa0ff5b5150>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d76c30>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d46690>
       [2021/06/24 19:48:19.165] gc: uncollectable <builtin_function_or_method 0x7fa104db7fa0>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d65a00>
       [2021/06/24 19:48:19.165] gc: uncollectable <builtin_function_or_method 0x7fa104db7f00>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d76230>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d76e10>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d70b90>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d59730>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104cfb950>
       [2021/06/24 19:48:19.165] gc: uncollectable <ObjectId 0x7fa104d04bd0>
       [2021/06/24 19:48:19.165] gc: uncollectable <set 0x7fa104d08320>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d9e950>
       [2021/06/24 19:48:19.165] gc: uncollectable <Timestamp 0x7fa104d3abd0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104cfbb90>
       [2021/06/24 19:48:19.165] gc: uncollectable <collections.defaultdict 0x7fa0ff5fb3b0>
       [2021/06/24 19:48:19.165] gc: uncollectable <ObjectId 0x7fa104d04fd0>
       [2021/06/24 19:48:19.165] gc: uncollectable <Int64 0x7fa104d599b0>
       [2021/06/24 19:48:19.165] gc: uncollectable <Binary 0x7fa104d5e590>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d59f00>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d59140>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d59cd0>
       [2021/06/24 19:48:19.165] gc: uncollectable <Monitor 0x7fa104d04d90>
       [2021/06/24 19:48:19.165] gc: uncollectable <CommandStartedEvent 0x7fa104d5ebb0>
       [2021/06/24 19:48:19.165] gc: uncollectable <CommandStartedEvent 0x7fa104d5e3d0>
       [2021/06/24 19:48:19.165] gc: uncollectable <CommandStartedEvent 0x7fa104d5e360>
       [2021/06/24 19:48:19.165] gc: uncollectable <CommandFailedEvent 0x7fa104d5eb40>
       [2021/06/24 19:48:19.165] gc: uncollectable <CommandFailedEvent 0x7fa104d5ec20>
       [2021/06/24 19:48:19.165] gc: uncollectable <CommandSucceededEvent 0x7fa104d5e210>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d7a710>
       [2021/06/24 19:48:19.165] gc: uncollectable <SON 0x7fa104d6ce90>
       [2021/06/24 19:48:19.165] gc: uncollectable <SON 0x7fa104d6cd60>
       [2021/06/24 19:48:19.165] gc: uncollectable <SON 0x7fa104d4c3e0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d72ef0>
       [2021/06/24 19:48:19.165] gc: uncollectable <ServerDescription 0x7fa104d08050>
       [2021/06/24 19:48:19.165] gc: uncollectable <_RttMonitor 0x7fa104d04690>
       [2021/06/24 19:48:19.165] gc: uncollectable <weakproxy 0x7fa104d4ee90>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d01170>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d053b0>
       [2021/06/24 19:48:19.165] gc: uncollectable <Int64 0x7fa104d5dd20>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d72b90>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d79170>
       [2021/06/24 19:48:19.165] gc: uncollectable <Int64 0x7fa104d59af0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa0ff6974d0>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d59870>
       [2021/06/24 19:48:19.165] gc: uncollectable <Int64 0x7fa104d70d20>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d725f0>
       [2021/06/24 19:48:19.165] gc: uncollectable <ObjectId 0x7fa0ff5c76d0>
       [2021/06/24 19:48:19.165] gc: uncollectable <Timestamp 0x7fa104d60a90>
       [2021/06/24 19:48:19.165] gc: uncollectable <set 0x7fa104d08500>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa0ff670dd0>
       [2021/06/24 19:48:19.165] gc: uncollectable <tuple 0x7fa104d44960>
       [2021/06/24 19:48:19.165] gc: uncollectable <tuple 0x7fa104d448c0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d74830>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d595f0>
       [2021/06/24 19:48:19.165] gc: uncollectable <Binary 0x7fa104d773b0>
       [2021/06/24 19:48:19.165] gc: uncollectable <Timestamp 0x7fa104d60f50>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104d72050>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa0ff5cbfa0>
       [2021/06/24 19:48:19.165] gc: uncollectable <list 0x7fa104d598c0>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa0ff66ba70>
       [2021/06/24 19:48:19.165] gc: uncollectable <Timestamp 0x7fa0ff5c7690>
       [2021/06/24 19:48:19.165] gc: uncollectable <Int64 0x7fa104d595a0>
       [2021/06/24 19:48:19.165] gc: uncollectable <tuple 0x7fa104d447d0>
       [2021/06/24 19:48:19.165] gc: uncollectable <tuple 0x7fa104d44550>
       [2021/06/24 19:48:19.165] gc: uncollectable <tuple 0x7fa104d44640>
       [2021/06/24 19:48:19.165] gc: uncollectable <Timestamp 0x7fa104d04a10>
       [2021/06/24 19:48:19.165] gc: uncollectable <dict 0x7fa104cfb170>
       [2021/06/24 19:48:19.165] gc: uncollectable <MovingAverage 0x7fa104d040d0>
       [2021/06/24 19:48:19.165] gc: uncollectable <PeriodicExecutor 0x7fa104d04610>
       [2021/06/24 19:48:19.166] gc: uncollectable <weakproxy 0x7fa104d4ed10>
       [2021/06/24 19:48:19.166] gc: uncollectable <Int64 0x7fa104d59a00>
       [2021/06/24 19:48:19.166] gc: uncollectable <Binary 0x7fa104d5e4b0>
       [2021/06/24 19:48:19.166] gc: uncollectable <ObjectId 0x7fa0ff629a50>
       [2021/06/24 19:48:19.166] gc: uncollectable <Int64 0x7fa104d5d780>
       [2021/06/24 19:48:19.166] gc: uncollectable <Binary 0x7fa104db3fa0>
       [2021/06/24 19:48:19.166] gc: uncollectable <dict 0x7fa104d00290>
       [2021/06/24 19:48:19.166] gc: uncollectable <function 0x7fa104d69d50>
       [2021/06/24 19:48:19.166] gc: uncollectable <tuple 0x7fa104cfe9d0>
       [2021/06/24 19:48:19.166] gc: uncollectable <cell 0x7fa104d045d0>
       [2021/06/24 19:48:19.166] gc: uncollectable <weakref 0x7fa104d4e890>
       [2021/06/24 19:48:19.202] gc: uncollectable <instancemethod 0x7fa0ff705780>
       [2021/06/24 19:48:19.202] ok (0.091s)
      ...
       [2021/06/24 19:48:34.126] Traceback (most recent call last):
       [2021/06/24 19:48:34.126]   File "setup.py", line 428, in <module>
       [2021/06/24 19:48:34.126]     **extra_opts
       [2021/06/24 19:48:34.127]   File "/opt/python/2.7/lib/python2.7/site-packages/setuptools/__init__.py", line 162, in setup
       [2021/06/24 19:48:34.127]     return distutils.core.setup(**attrs)
       [2021/06/24 19:48:34.127]   File "/opt/python/2.7/lib/python2.7/distutils/core.py", line 151, in setup
       [2021/06/24 19:48:34.127]     dist.run_commands()
       [2021/06/24 19:48:34.127]   File "/opt/python/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
       [2021/06/24 19:48:34.127]     self.run_command(cmd)
       [2021/06/24 19:48:34.127]   File "/opt/python/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
       [2021/06/24 19:48:34.127]     cmd_obj.run()
       [2021/06/24 19:48:34.127]   File "setup.py", line 134, in run
       [2021/06/24 19:48:34.127]     result = runner.run(suite)
       [2021/06/24 19:48:34.127]   File "/data/mci/17a5e34dea6681b36cfb4197fc11f703/src/test/__init__.py", line 963, in run
       [2021/06/24 19:48:34.127]     teardown()
       [2021/06/24 19:48:34.127]   File "/data/mci/17a5e34dea6681b36cfb4197fc11f703/src/test/__init__.py", line 933, in teardown
       [2021/06/24 19:48:34.127]     assert False, '\n'.join(garbage)
       [2021/06/24 19:48:34.127] AssertionError: GARBAGE: <pymongo.pool.Pool instance at 0x7fa104d65d20>
       [2021/06/24 19:48:34.127]   gc.get_referents: [<class pymongo.pool.Pool at 0x7fa199098360>, {'enabled_for_cmap': False, 'handshake': False, '_Pool__pinned_sockets': set([]), 'lock': <thread.lock object at 0x7fa104d6e5d0>, '_socket_semaphore': <pymongo.thread_util.BoundedSemaphore instance at 0x7fa104d65050>, 'pid': 4553, 'ntxns': 0, 'gen': <pymongo.pool._PoolGeneration object at 0x7fa104d04710>, 'is_writable': None, 'ncursors': 0, 'closed': False, 'address': ('localhost', 27019), 'next_connection_id': 4, '_check_interval_seconds': 1, 'active_sockets': 0, 'sockets': deque([]), 'opts': <pymongo.pool.PoolOptions object at 0x7fa104d4aad0>}]
       [2021/06/24 19:48:34.127]   gc.get_referrers: [<frame object at 0x8d10360>, [<pymongo.pool.Pool instance at 0x7fa104d65d20>, <pymongo.pool.Pool instance at 0x7fa104d65f00>]]
       [2021/06/24 19:48:34.127] GARBAGE: <pymongo.pool.Pool instance at 0x7fa104d65f00>
       [2021/06/24 19:48:34.127]   gc.get_referents: [<class pymongo.pool.Pool at 0x7fa199098360>, {'enabled_for_cmap': False, 'handshake': False, '_Pool__pinned_sockets': set([]), 'lock': <thread.lock object at 0x7fa104d6ea70>, '_socket_semaphore': <pymongo.thread_util.BoundedSemaphore instance at 0x7fa104d65910>, 'pid': 4553, 'ntxns': 0, 'gen': <pymongo.pool._PoolGeneration object at 0x7fa104d04790>, 'is_writable': None, 'ncursors': 0, 'closed': False, 'address': ('localhost', 27019), 'next_connection_id': 1, '_check_interval_seconds': 1, 'active_sockets': 0, 'sockets': deque([]), 'opts': <pymongo.pool.PoolOptions object at 0x7fa104d4ab90>}]
       [2021/06/24 19:48:34.127]   gc.get_referrers: [<frame object at 0x8d10360>, [<pymongo.pool.Pool instance at 0x7fa104d65d20>, <pymongo.pool.Pool instance at 0x7fa104d65f00>]]
       [2021/06/24 19:48:35.014] Command failed: command encountered problem: error waiting on process '37ec370c-264b-455b-b3ac-e5fa60b9f09b': exit status 1
      

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

              Created:
              Updated:
              Resolved: