Skip to content

[Enhancement] Support print stack API #62497

Closed

Description

@zclllyybb

Search before asking

  • I had searched in the issues and found no similar issues.

Description

In production environments, we often need to print the stack of doris_be, but using methods like pstack is not acceptable because:

  1. It is slow
  2. It might cause the BE to crash
    Therefore, we need a better way to print the stack, limiting the impact on the process to the second/sub-second level, accurate and without crash risk.

Solution

Conduct thorough research on mainstream C++ server stack tracing methods, including but not limited to https://github.com/oceanbase/obstack for OceanBase, https://clickhouse.com/docs/operations/system-tables/stack_trace for ClickHouse, and brpc's /threads API. Verify their performance and stability in practice. Output research and design documentations.
Complete the code development and detailed stability verification according to the decided plan.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added a commit that references this issue on Jul 6, 2026
    dc70115
  2. added a commit that references this issue on Jul 14, 2026
    5a2ef85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions