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

fixed: display function [observer.leader] #707

Merged
merged 20 commits into from
Jan 21, 2025
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
366dccd
Rename Dockerfile to DockerFile
Teingi Dec 5, 2024
c566128
Merge branch 'oceanbase:master' into master
Teingi Dec 5, 2024
43409c0
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 9, 2024
1fefa30
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 12, 2024
e358d62
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 16, 2024
8e92f28
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 17, 2024
1c49acc
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 18, 2024
3dbe732
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 19, 2024
bd2afe9
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 19, 2024
891ac16
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 23, 2024
9820ed4
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 25, 2024
8b18baa
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Dec 31, 2024
b2bca80
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Jan 14, 2025
3080686
Merge branch 'master' of github.com:Teingi/obdiag
Teingi Jan 20, 2025
37a1610
Handling Multi-Version Compatibility Scenarios
Teingi Jan 20, 2025
eaa3660
Handling Multi-Version Compatibility Scenarios
Teingi Jan 20, 2025
d321eea
Merge remote-tracking branch 'origin/master' into 3.1.0_0120
Teingi Jan 20, 2025
93808c6
Handling Multi-Version Compatibility Gather Scenarios
Teingi Jan 20, 2025
66bc9f1
Merge remote-tracking branch 'origin/master' into 3.1.0_0120
Teingi Jan 21, 2025
3623394
fixed: display function
Teingi Jan 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/display/tasks/observer/leader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ task:
steps:
- type: sql
sql: "select a.tenant_id, b.tenant_name, a.svr_ip, a.role, count(1) part_count from oceanbase.CDB_OB_TABLE_LOCATIONS a, oceanbase.__all_tenant b
where a.role='LEADER' and a.tenant_id = b.tenant_id and (('all'='#{level}') or (a.tenant_id = '#{level}') or (a.table_name ='#{level}')) group by a.tenant_id, b.tenant_name, a.svr_ip, a.role order by 4,1;"
where a.role='LEADER' and a.tenant_id = b.tenant_id and b.tenant_name not like 'META$%' and (('all'='#{level}') or (a.tenant_id = '#{level}') or (a.table_name ='#{level}')) group by a.tenant_id, b.tenant_name, a.svr_ip, a.role order by 4,1;"
global: true
- version: "[*,3.9.9.9]"
steps:
- type: sql
sql: "select a.tenant_id, b.tenant_name, a.svr_ip, a.role, count(1) part_count from oceanbase.__all_virtual_meta_table a, oceanbase.__all_tenant b
where a.role='LEADER' and a.tenant_id = b.tenant_id and (('all'='#{level}') or (a.tenant_id = '#{level}') or (a.table_id in (select table_id from oceanbase.__all_virtual_table where table_name ='#{level}'))) group by a.tenant_id, b.tenant_name, a.svr_ip, a.role order by 4,1;"
where a.role='LEADER' and a.tenant_id = b.tenant_id and b.tenant_name not like 'META$%' and (('all'='#{level}') or (a.tenant_id = '#{level}') or (a.table_id in (select table_id from oceanbase.__all_virtual_table where table_name ='#{level}'))) group by a.tenant_id, b.tenant_name, a.svr_ip, a.role order by 4,1;"
global: true
Loading