Fix possible loss of "Query was cancelled" message in client (fixes 03023_zeros_generate_random_with_limit_progress_bar flakiness)#64888
Merged
antaljanosbenjamin merged 1 commit intoClickHouse:masterfrom Jun 13, 2024
Conversation
Contributor
|
This is an automated comment for commit 15317b5 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
|
Member
Author
|
antaljanosbenjamin
approved these changes
Jun 6, 2024
9be6307 to
2c5a2df
Compare
Previously "Query was cancelled" had been printed only on new blocks, so
if no new blocks will be arrived, then it will not print this message,
and this is indeed why 03023_zeros_generate_random_with_limit_progress_bar
was flaky [1]:
2024-06-05 16:21:22 expect: does "\u258e\u001b[0m \u001b[2m(0.9 CPU)\u001b[0m 4%\u001b[K^C\r\u001b[1;31m\u2198\u001b[0m Progress: 404.74 thousand rows, 404.74 KB (806.77 thousand rows/s., 806.77 KB/s.) \u001b[0;32m\u2588\u258e\u001b[0m \u001b[2m(2.0 CPU)\u001b[0m 4%\u001b[K\r\u001b[KCancelling query.\r\n \r\u001b[1;32m\u2193\u001b[0m Progress: 404.74 thousand rows, 404.74 KB (806.15 thousand rows/s., 806.15 KB/s.) \u001b[0;32m\u2588\u258e\u001b[0m \u001b[2m(2.0 CPU)\u001b[0m 4%\u001b[K" (spawn_id exp4) match glob pattern "Query was cancelled."? no
2024-06-05 16:21:22
2024-06-05 16:21:22 [KOk.
2024-06-05 16:21:22 , result:
As you can see it printed "Cancelling query" and "Ok" but not
"Query was cancelled" due to this.
[1]: https://s3.amazonaws.com/clickhouse-test-reports/61973/6cfd5b2165970a65a551117fe58e4b9d22237b8c/stateless_tests__tsan__s3_storage__[1_5].html
A bit hackish with all this bool flags, but I guess it is OK.
Signed-off-by: Azat Khuzhin <[email protected]>
2c5a2df to
15317b5
Compare
Member
|
Fuzzer failed because of unrelated query. Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously "Query was cancelled" had been printed only on new blocks, so if no new blocks will be arrived, then it will not print this message, and this is indeed why 03023_zeros_generate_random_with_limit_progress_bar was flaky 1:
As you can see it printed "Cancelling query" and "Ok" but not "Query was cancelled" due to this.
A bit hackish with all this bool flags, but I guess it is OK.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix possible loss of "Query was cancelled" message in client
Cc: @alexey-milovidov (
03023_zeros_generate_random_with_limit_progress_bartest)