[Restore] Fix error message not match of restore job when job is time out (#3798)
For the current code if a restore job is time out it will be reported as user canceled. This error message is very misleading
This commit is contained in:
@ -292,8 +292,8 @@ public class RestoreJob extends AbstractJob {
|
||||
}
|
||||
|
||||
if (System.currentTimeMillis() - createTime > timeoutMs) {
|
||||
status = new Status(ErrCode.TIMEOUT, "");
|
||||
cancel();
|
||||
status = new Status(ErrCode.TIMEOUT, "restore job with label: " + label + " timeout.");
|
||||
cancelInternal(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user