[chore](backup) Log create restore job failed (#38341)

Cherry-pick #38267
This commit is contained in:
walter
2024-07-25 20:45:13 +08:00
committed by GitHub
parent 0152a4e86f
commit a8da7fcdc6

View File

@ -511,7 +511,8 @@ public class BackupHandler extends MasterDaemon implements Writable {
stmt.reserveDynamicPartitionEnable(), stmt.isBeingSynced(),
env, Repository.KEEP_ON_LOCAL_REPO_ID, backupMeta);
} catch (IOException e) {
throw new DdlException(e.getMessage());
LOG.warn("create restore job failed, current meta version {}", Env.getCurrentEnvJournalVersion(), e);
throw new DdlException("create restore job failed", e);
}
} else {
restoreJob = new RestoreJob(stmt.getLabel(), stmt.getBackupTimestamp(),