Repository navigation
Respect max_block_size while generating rows for system.stack_trace (will fix flakiness of the test) - #54946
Merged
robot-ch-test-poll3 merged 4 commits intoSep 24, 2023
Conversation
Contributor
|
This is an automated comment for commit 907d385 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
|
Signed-off-by: Azat Khuzhin <[email protected]>
Signed-off-by: Azat Khuzhin <[email protected]>
Reading from system.stack_trace can be very slow, especially if you read all columns (there are some optimizations to avoid doing some actions), that requires: - reading /proc/self/task - reading /proc/self/task/*/comm - sending signal to each of the thread (to read query_id and trace_id) And even if you have some conditions (for which there are some optimizations, i.e. not sending signal to the thread which is the slowest operation under load) it will still send signals to every thread and wait for result. This patch implements reading from system.stack_trace with respect to max_block_size, that will make queries with lower max_block_size and LIMIT works significantly faster. Signed-off-by: Azat Khuzhin <[email protected]>
…_size) Signed-off-by: Azat Khuzhin <[email protected]>
azat
force-pushed
the
system.stack_trace-max_block_size
branch
from
September 24, 2023 12:02
a4f210c to
907d385
Compare
Member
Author
Rebased on top of #54951 |
alexey-milovidov
approved these changes
Sep 24, 2023
Member
Merged
azat
added a commit
to azat/ClickHouse
that referenced
this pull request
Dec 8, 2023
Before rewriting system.stack_trace to handle max_block_size (in ClickHouse#54946) parallel reading from system.stack_trace was prohibited, because this could lead to hang of system.stack_trace table. But that rewrite broke this guarantee, so let's fix it to avoid possible hung. Signed-off-by: Azat Khuzhin <[email protected]>
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Respect max_block_size while generating rows for system.stack_trace (will fix flakiness of the test)
CI: https://s3.amazonaws.com/clickhouse-test-reports/54873/fbadf604096edfe435da2ac6944b896d745b2412/fast_test.html
Fixes:
01051_system_stack_trace