关掉分区合并
alter system _enable_adaptive_compaction=false tenant all;
alter system _enable_adaptive_compaction=false tenant all_user;
alter system _enable_adaptive_compaction=false tenant all_meta;
检查是否有除原报错的之外的未完成的分区合并任务
select * from __all_virtual_tablet_compaction_info where max_received_scn > finished_scn;
和已经报错4016的tablet_id做对比,是否有未完成的分区合并任务,如果有的话,需要等待完成
select * from __all_virtual_dag_warning_history;
alter system _enable_adaptive_compaction=true tenant all;
alter system _enable_adaptive_compaction=true tenant all_user;
alter system _enable_adaptive_compaction=true tenant all_meta;
3、重启无效、升级失败
obd cluster restart obtest
[ERROR] Deploy "obtest" is upgrading. You could not restart an upgrading cluster.
obd cluster upgrade obtest -c oceanbase-ce -V 4.3.3.1
Get local repositories and plugins ok
Open ssh connection ok
Get deployment connections ok
Get standbys info ok
cluster scenario: htap
Start observer ok
observer program health check ok
obshell program health check ok
Connect to observer 10.1.1.52:2881 ok
Exec upgrade_checker.py x
[2024-11-01 09:08:00.460] [DEBUG] __main__.MyError: 'upgrade checker failed with 2 reasons: [1 tenant is merging, please check] , [6 tablet is merging, please check] '
[2024-11-01 09:08:00.460] [DEBUG] [16850] Failed to execute script executer27
alter system _enable_adaptive_compaction=true tenant all;
alter system _enable_adaptive_compaction=true tenant all_user;
alter system _enable_adaptive_compaction=true tenant all_meta;
alter system _enable_adaptive_compaction=false tenant all;
alter system _enable_adaptive_compaction=false tenant all_user;
alter system _enable_adaptive_compaction=false tenant all_meta;