Repository navigation
Delete bad test 02805_distributed_queries_timeouts - #66563
Conversation
|
This is an automated comment for commit 9861346 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
|
| @@ -1,3 +0,0 @@ | |||
| select * from remote('127.2', view(select sleep(3) from system.one)) settings receive_timeout=1, async_socket_for_remote=0, use_hedged_requests=1 format Null; | |||
There was a problem hiding this comment.
This test is a real test for a real problem - #51582
Why it has been considered as "bad" and had been queued for removal instead of fixing it?
There was a problem hiding this comment.
Linux is not a real-time system, and you cannot expect that something finishes in a second (even a single CPU instruction).
It is not, and even if it was, it cannot be guaranteed, but this is a bit off-topic.
So how do you suggest to test such things like timeouts and timers (to really test them and not some kind of mock)?
There was a problem hiding this comment.
You cannot count on anything to succeed in one second in tests.
You can rewrite it, so it will test that anything succeeds in one second at least once in 100 tries. Or to rewrite it with a higher timeout, like 60 seconds (but not make it waste 60 seconds all the time).
Our tests use various shit such as: EBS volumes, AWS S3, and even Microsoft Azure, we add randomization and random slowdowns, it also runs everything in parallel and makes the system overloaded.
|
I don't know, but our rule is that the tests should reliably show success or failure. If a test has failed it should indicate a real problem, not be random. |
…d-test" This reverts commit d0753c8, reversing changes made to b8202e1. Signed-off-by: Azat Khuzhin <[email protected]>
Changelog category (leave one):
This test obviously cannot work. See https://s3.amazonaws.com/clickhouse-test-reports/66507/170c538034464b6dede951663caeaf9acb2ef3bf/stateless_tests__msan__[2_3].html
Linux is not a real-time system, and you cannot expect that something finishes in a second (even a single CPU instruction).
CI Settings (Only check the boxes if you know what you are doing):