Repository navigation
Avoid hangs of system.stack_trace by correctly prohibit parallel read from it - #57641
Conversation
|
This is an automated comment for commit b1043b7 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
|
|
Ok. Did you mean it was already prohibited, but then we made the |
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]>
215cd90 to
16cbcf7
Compare
Yes, it had been broken during adding support of max_block_size. Actually the code looks complex, I think it could be simplified, I will submit another PR after this one (not to mix bug fixes with other changes). UPD: due to signal limitations I guess it does not worth it, so let's leave as-is. |
|
This can help to debug 01051_system_stack_trace test failures. Signed-off-by: Azat Khuzhin <[email protected]>
2a85004 to
b1043b7
Compare
|
Test failures are not related:
|
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Prohibit parallel read from system.stack_trace (otherwise this will lead to hang of system.stack_trace table up to
storage_system_stack_trace_pipe_read_timeout_ms)Before rewriting system.stack_trace to handle max_block_size (in #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.
Fixes: #54946 (cc @alexey-milovidov )