matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.79k stars 277 forks source link

control of debug logs related to a database|table #20249

Open XuPeng-SH opened 20 hours ago

XuPeng-SH commented 20 hours ago

What type of PR is this?

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