diff --git a/deps/oblib/src/lib/restore/ob_storage_oss_base.cpp b/deps/oblib/src/lib/restore/ob_storage_oss_base.cpp index 2723b87d439c7e41de82b765d7b17b882a46ff20..cfeeaf448a0413d0e638770c9e73b3955db48387 100644 --- a/deps/oblib/src/lib/restore/ob_storage_oss_base.cpp +++ b/deps/oblib/src/lib/restore/ob_storage_oss_base.cpp @@ -985,6 +985,9 @@ int ObStorageOssReader::open(const ObString& uri, const common::ObString& storag OB_LOG(WARN, "bucket name of object name is empty", K(ret)); } else if (OB_SUCCESS != (ret = get_oss_file_meta(bucket_, object_, is_file_exist, remote_md5, file_length))) { OB_LOG(WARN, "fail to get file meta", K(bucket_), K(object_), K(ret)); + } else if (!is_file_exist) { + ret = OB_BACKUP_FILE_NOT_EXIST; + OB_LOG(WARN, "backup file not exist", K(bucket_), K(object_), K(ret)); } else if (-1 == file_length) { ret = OB_OSS_ERROR; OB_LOG(WARN, "fail to get file length", K(bucket_), K(object_), K(ret));