From be56e40596f36a858925c295c89b520e86445582 Mon Sep 17 00:00:00 2001 From: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com> Date: Thu, 24 Oct 2024 23:28:29 +0800 Subject: [PATCH] [enhancement](bakcup) throw detailed msg for backup or restore (#42288) (#42311) #42288 --- .../src/main/java/org/apache/doris/backup/BackupHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java index 136a13e00059c8..496727c1e00086 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java +++ b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java @@ -274,7 +274,9 @@ public void process(AbstractBackupStmt stmt) throws DdlException { AbstractJob currentJob = getCurrentJob(db.getId()); if (currentJob != null && !currentJob.isDone()) { ErrorReport.reportDdlException(ErrorCode.ERR_COMMON_ERROR, - "Can only run one backup or restore job of a database at same time"); + "Can only run one backup or restore job of a database at same time " + + ", current running: label = " + currentJob.getLabel() + " jobId = " + + currentJob.getJobId() + ", to run label = " + stmt.getLabel()); } if (stmt instanceof BackupStmt) {