fix backup hung in shared storage mode when backup ddl sstable

This commit is contained in:
oceanoverflow 2024-12-26 07:15:45 +00:00 committed by ob-robot
parent aae6bf662a
commit da8bd42f5e

View File

@ -2770,7 +2770,10 @@ int ObLSBackupDataTask::do_wait_index_builder_ready_(const common::ObTabletID &t
bool exist = false;
static const int64_t DEFAULT_SLEEP_US = 10_ms;
while (OB_SUCC(ret)) {
if (OB_ISNULL(ls_backup_ctx_)) {
if (GCTX.is_shared_storage_mode() && table_key.is_ddl_dump_sstable()) {
// ddl sstable in shared storage mode has no index builder
break;
} else if (OB_ISNULL(ls_backup_ctx_)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("ls back ctx should not be null", K(ret));
} else if (OB_SUCCESS != ls_backup_ctx_->get_result_code()) {