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 authored Oct 23, 2024
1 parent 788c3de commit b3b0cb4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,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 b3b0cb4

Please sign in to comment.