[CP] Add defensive check code for inner table and weak read

This commit is contained in:
Naynahs
2024-06-18 04:33:02 +00:00
committed by ob-robot
parent e2661c1548
commit d2841956bc
4 changed files with 36 additions and 1 deletions

View File

@ -12,6 +12,17 @@ Variable_name Value
ob_max_read_stale_time -1
alter system set weak_read_version_refresh_interval="6s";
alter system set weak_read_version_refresh_interval="3s";
use oceanbase;
set ob_read_consistency = 'weak';
show variables like 'ob_read_consistency';
Variable_name Value
ob_read_consistency WEAK
select count(1) > 0 from __all_server;
count(1) > 0
1
select count(1) from gv$ob_sql_audit where consistency_level=3 and query_sql = 'select count(1) > 0 from __all_server' and query_sql not like '%sql_audit%';
count(1)
1
set global ob_max_read_stale_time = -1;
show global variables like '%stale_time%';
Variable_name Value