Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added system.stack_trace table. #8344

Merged
merged 17 commits into from Dec 24, 2019
Merged

Added system.stack_trace table. #8344

merged 17 commits into from Dec 24, 2019

Conversation

alexey-milovidov
Copy link
Member

@alexey-milovidov alexey-milovidov commented Dec 22, 2019

Changelog category (leave one):

  • New Feature

Changelog entry (up to few sentences, required except for Non-significant/Documentation categories):
Added system.stack_trace table that allows to look at stack traces of all server threads. This is useful for developers to introspect server state. This fixes #7576

Detailed description (optional):
Usage example:

SET allow_introspection_functions = 1;

WITH arrayMap(x -> demangle(addressToSymbol(x)), trace) AS all SELECT query_id, thread_number, arrayStringConcat(all, '\n') AS res FROM system.stack_trace \G

WITH arrayMap(x -> addressToLine(x), trace) AS all, arrayFilter(x -> x LIKE '%/dbms/%', all) AS dbms SELECT query_id, thread_number, arrayStringConcat(notEmpty(dbms) ? dbms : all, '\n') AS res FROM system.stack_trace \G

@alexey-milovidov
Copy link
Member Author

It looks like RT-signals are not delivered inside Sandbox (Yandex internal job running system that is used in our CI).

@alexey-milovidov alexey-milovidov merged commit 28c7e78 into master Dec 24, 2019
@vitlibar vitlibar added the pr-feature Pull request with new product feature label Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature Pull request with new product feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add system.stack_trace table.
2 participants