[CP] add 2 test cases

This commit is contained in:
wxhwang 2024-02-08 05:50:37 +00:00 committed by ob-robot
parent 087b3a9f7a
commit 3b7101919f
3 changed files with 3 additions and 3 deletions

View File

@ -670,7 +670,7 @@ int ObRecoverTableJobScheduler::check_aux_tenant_(share::ObRecoverTableJob &job,
schema::ObSchemaGetterGuard recover_tenant_guard;
bool is_compatible = true;
if (OB_FAIL(schema_service_->get_tenant_schema_guard(aux_tenant_id, aux_tenant_guard))) {
if (OB_TENANT_NOT_EXIST) {
if (OB_TENANT_NOT_EXIST == ret) {
ObImportResult::Comment comment;
if (OB_TMP_FAIL(databuff_printf(comment.ptr(), comment.capacity(),
"aux tenant %.*s has been dropped", job.get_aux_tenant_name().length(), job.get_aux_tenant_name().ptr()))) {

View File

@ -169,7 +169,7 @@ int ObArchivePersistHelper::lock_archive_dest(
int ret = OB_SUCCESS;
ObBackupPathString path;
if (OB_FAIL(get_archive_dest(trans, true /* need_lock */, dest_no, path))) {
if (OB_ENTRY_NOT_EXIST) {
if (OB_ENTRY_NOT_EXIST == ret) {
ret = OB_SUCCESS;
is_exist = false;
} else {

View File

@ -1730,7 +1730,7 @@ int ObLSRestoreStartState::check_ls_meta_exist_(bool &is_exist)
} else if (OB_FAIL(store.init(backup_set_array.at(idx).backup_set_path_.ptr()))) {
LOG_WARN("fail to init backup data store", K(ret));
} else if (OB_FAIL(store.read_ls_meta_infos(ls_->get_ls_id(), ls_meta_packge))) {
if (OB_ENTRY_NOT_EXIST) {
if (OB_ENTRY_NOT_EXIST == ret) {
is_exist = false;
ret = OB_SUCCESS;
} else {