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

enhance debug log for 2.0 #20313

Merged
merged 5 commits into from
Nov 25, 2024

Conversation

XuPeng-SH
Copy link
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #20247

What this PR does / why we need it:

Runtime control of debug logs related to a database|table. It helps to debug some hard-to-repro bugs.

Example

select add_fault_point('fj/trace/partitionstate', ':::', 'echo', 20, 'mo_tables');
'fj/trace/partitionstate': enable partition state trace log
iargs=20,sargs=mo_tables:
    log_level=iargs%10 = 0 // level 0
    func_id=iargs/10 = 2 // table name equal function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement size/M Denotes a PR that changes [100,499] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants