Fix 01246_buffer_flush flakiness (by tuning timeouts)#65310
Fix 01246_buffer_flush flakiness (by tuning timeouts)#65310Avogar merged 1 commit intoClickHouse:masterfrom
Conversation
Signed-off-by: Azat Khuzhin <[email protected]>
|
This is an automated comment for commit a346909 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
|
| select count() from data_01256; | ||
| -- sleep 2 (min time) + 1 (round up) + bias (1) = 4 | ||
| select sleepEachRow(2) from numbers(2) FORMAT Null; | ||
| -- It is enough to ensure that the buffer will be flushed earlier then 2*min_time (10 sec) |
There was a problem hiding this comment.
But it is not guaranteed whatsoever. The thread with buffer flush can be delayed for arbitrary time.
There was a problem hiding this comment.
It is time related test, there is no way to guarantee that the flush will happen, the only thing that came to my mind is to add no-parallel test, to reduce influence of other tests
Something interesting
|
|
If the test has no guarantee to pass, delete it. |
I don't think it is a good idea to remove all such tests, otherwise how can you cover functionality like background flush of Buffer tables (and this not the only one) Make them non-flaky in 99.9% of the cases should be enough from my perspective (note that 0.01% chance flakiness is not equal to 0.01% of failures) |
|
Ok. Waiting for |
|
It has been fixed in #65341 |
- reduce min_time for Buffer's min test - rewrite the test to .sh to avoid extra sleeping time (with .sql we have to wait the max time) - change the assertion for min test, the time there should not exceed max time (100 seconds), this should fix with test flakiness [1] even after [2]. [1]: https://s3.amazonaws.com/clickhouse-test-reports/0/76119a4567ce2ac9c0aff715c1a9ba2607e806e0/stateless_tests__tsan__[3_5].html [2]: ClickHouse#65310 Signed-off-by: Azat Khuzhin <[email protected]>
CI: https://s3.amazonaws.com/clickhouse-test-reports/0/efb31c1d3f79e04a94087e883bc19553c5604268/stateless_tests__tsan__[3_5].html (cc @alexey-milovidov )
Changelog category (leave one):