do not clear old parts at shutdown#43760
Conversation
docker/test/stress/run.sh
Outdated
There was a problem hiding this comment.
Maybe we should keep increased timeout for BC check (because old versions do not have this improvement)
There was a problem hiding this comment.
Btw. I foresee that bc check will need more time to start. It will delete old parts from previous run at start now.
There was a problem hiding this comment.
The problem is that old version in BC check does not support --max-tries argument:
+ clickhouse stop --max-tries 180 --do-not-kill
std::exception. Code: 1001, type: boost::wrapexcept<boost::program_options::unknown_option>, e.what() = unrecognised option '--max-tries' (version 22.11.2.30 (official build))
There was a problem hiding this comment.
And seems like it triggers gdb in BC check all the time and sometimes gdb hangs and it leads to "stress test without check_status.tsv "
4579746 to
9a2a2dd
Compare
76a5896 to
6dab740
Compare
…ion still drop parts at shutdown
rm commented code
84a18d6 to
949a8e2
Compare
|
Strange fail. It seems to be rare, according to the stats. But after the changes from this PR could be more cases like this. Because clickhouse re-reads old parts after detach/attach.
Error log |
|
Integration tests asan, failed all cases in test_distributed_queries_stress/test.py::test_stress_distributed. |
8c14e22 to
6aa0b2a
Compare
|
stress test without check_status.tsv #41850 |
|
02481_async_insert_dedup new test, seems to be flaky. |
|
test_merge_tree_hdfs/test.py::test_attach_detach_partition |
Shutdown at tests will be much faster.
Thus is allow to decrease back to the default value max-tries at stop. With was increased up to 3 times here #43277
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Shutdown will be much faster if do not call clearOldPartsFromFilesystem. Especially this is right for tests with zero-copy due to single thread deletion parts. clearOldPartsFromFilesystem is unnecessary after #41145