[CP] add error info when check_tablet_num for migration

This commit is contained in:
obdev
2023-10-18 08:39:24 +00:00
committed by ob-robot
parent 84235f1234
commit be0ebf3e09

View File

@ -538,7 +538,11 @@ int ObStorageHATabletsBuilder::create_or_update_tablet_(
ret = OB_TABLET_NOT_EXIST;
LOG_WARN("src ls inner tablet is not exist, src ls is maybe deleted", K(ret), K(tablet_info));
} else if (need_check_tablet_limit && OB_FAIL(ObTabletCreateMdsHelper::check_create_new_tablets(1LL))) {
LOG_WARN("failed to check create new tablet", K(ret), K(tablet_info));
if (OB_TOO_MANY_PARTITIONS_ERROR == ret) {
LOG_ERROR("too many partitions, failed to check create new tablet", K(ret), K(tablet_info));
} else {
LOG_WARN("failed to check create new tablet", K(ret), K(tablet_info));
}
} else if (OB_FAIL(hold_local_reuse_sstable_(tablet_info.tablet_id_, local_tablet_hdl, major_tables, storage_schema, medium_info_list, allocator))) {
LOG_WARN("failed to hold local reuse sstable", K(ret), K(tablet_info));
} else if (OB_FAIL(ls->rebuild_create_tablet(tablet_info.param_, keep_old))) {