[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:
yangzhg
2020-06-10 23:12:04 +08:00
committed by GitHub
parent ef94c25773
commit cd402a6827

View File

@ -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;
}