Skip to content

Commit

Permalink
[enhancement](bakcup) throw detailed msg for backup or restore (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Oct 23, 2024
1 parent 2defa90 commit 28cf747
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,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) {
Expand Down

0 comments on commit 28cf747

Please sign in to comment.