Fix leftover processes/hangs in tests#58200
Fix leftover processes/hangs in tests#58200alexey-milovidov merged 1 commit intoClickHouse:masterfrom
Conversation
One of such cases is 02479_race_condition_between_insert_and_droppin_mv [1], yes it can be fixed (by using fixed number of iterations, or with some bash trickery), but it is better to fix them completelly, eventually such tests will be submitted and pass review anyway. By allocating process group for each test we can kill all the processes in this process group, and this what this patch does. This will also fix some test hangs (like in [1]) as well as some possible issues in stress tests. [1]: https://s3.amazonaws.com/clickhouse-test-reports/0/e2c1230b00386c4d0096a245396ab3be7ce60950/stateless_tests__release__analyzer_/run.log Signed-off-by: Azat Khuzhin <[email protected]>
|
This is an automated comment for commit 72fa58e with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
|
Thank you! This is a tremendous improvement! |
|
It's just unhide the problems, this two could be fixed, but likely there are more, and if patch will be reverted each time it could take lot's of time to fix everything. |
|
@azat let's fix these and re-apply. |
|
Actually I'm not sure that this PR is relevant, there should not be any |
|
But I guess |
|
There are 200+ tests with I've already made an attempt to address it - https://github.com/ClickHouse/ClickHouse/pull/34924/files Maybe I will get back once I will have inspiration for this... P.S. I was thinking about fixing it in a different way - by killing all processes starting from the children in |
|
OK, let's try this one - #58213 |
One of such cases is 02479_race_condition_between_insert_and_droppin_mv 1, yes it can be fixed (by using fixed number of iterations, or with some bash trickery), but it is better to fix them completelly, eventually such tests will be submitted and pass review anyway.
By allocating process group for each test we can kill all the processes in this process group, and this what this patch does.
This will also fix some test hangs (like in 1) as well as some possible issues in stress tests.
Changelog category (leave one):