ClickHouse/tests
Azat Khuzhin 985e8ee061 clickhouse-test: fix shared list object (by fixing manager lifetime)
Right now it is possible to get the following error:

    Having 20 errors! 0 tests passed. 0 tests skipped. 57.37 s elapsed (MainProcess).
    Won't run stateful tests because test data wasn't loaded.
    Traceback (most recent call last):
      File "/usr/lib/python3.9/multiprocessing/managers.py", line 802, in _callmethod
        conn = self._tls.connection
    AttributeError: 'ForkAwareLocal' object has no attribute 'connection'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/src/ch/clickhouse/.cmake/../tests/clickhouse-test", line 1462, in <module>
        main(args)
      File "/src/ch/clickhouse/.cmake/../tests/clickhouse-test", line 1261, in main
        if len(restarted_tests) > 0:
      File "<string>", line 2, in __len__
      File "/usr/lib/python3.9/multiprocessing/managers.py", line 806, in _callmethod
        self._connect()
      File "/usr/lib/python3.9/multiprocessing/managers.py", line 793, in _connect
        conn = self._Client(self._token.address, authkey=self._authkey)
      File "/usr/lib/python3.9/multiprocessing/connection.py", line 507, in Client
        c = SocketClient(address)
      File "/usr/lib/python3.9/multiprocessing/connection.py", line 635, in SocketClient
        s.connect(address)
    ConnectionRefusedError: [Errno 111] Connection refused

The reason behind this is that manager's thread got terminated:

    ipdb> p restarted_tests._manager._process
    <ForkProcess name='SyncManager-1' pid=25125 parent=24939 stopped exitcode=-SIGTERM>

Refs: #29259 (cc: @vdimir)
Follow-up for: #29197 (cc: @tavplubix)
2021-09-27 21:10:59 +03:00
..
ci Add missed keeper jepsen config 2021-09-22 19:27:11 +03:00
config Fixed tests 2021-09-17 18:43:00 +03:00
fuzz
instructions
integration Merge pull request #29393 from azat/rocksdb-fix-data-race 2021-09-27 11:32:59 +03:00
jepsen.clickhouse-keeper
perf_drafts
performance Adjust performance test 2021-09-21 22:19:13 +03:00
queries Merge pull request #29323 from ClickHouse/fix_assertion_ddl_dependency 2021-09-27 18:06:32 +03:00
testflows Merge pull request #28659 from myrrc/improvement/tostring_to_magic_enum 2021-09-12 15:26:29 +03:00
.gitignore
clickhouse-test clickhouse-test: fix shared list object (by fixing manager lifetime) 2021-09-27 21:10:59 +03:00
CMakeLists.txt
msan_suppressions.txt
stress
tsan_suppressions.txt
ubsan_suppressions.txt