the ddl merge task of data tablet need wait lob tablet to create major sstable first

This commit is contained in:
simonjoylet
2024-02-08 12:45:44 +00:00
committed by ob-robot
parent 75ea8c5db6
commit 086a94c07d
2 changed files with 52 additions and 0 deletions

View File

@ -21,6 +21,20 @@ let $report_cnt1 = query_get_value(select count(*) as cnt from oceanbase.__all_v
let $unit_cnt1 = query_get_value(select count(*) as cnt from oceanbase.__all_virtual_unit where tenant_id = $tenant_id1, cnt, 1);
--disable_query_log
let $__i__= 120;
while($__i__ > 0)
{
sleep 1;
dec $__i__;
let $report_cnt1 = query_get_value(select count(*) as cnt from oceanbase.__all_virtual_tablet_meta_table where tenant_id = $tenant_id1 and ls_id = $ls_id1 and tablet_id = $tablet_id1, cnt, 1);
if($report_cnt1 == $unit_cnt1)
{
let $__i__ = -1;
}
}
eval select $report_cnt1 = $unit_cnt1 as result;
--enable_query_log