This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push: new a8417e6 [fix](restore) fix restore issue when meta version is too low (#8816) a8417e6 is described below commit a8417e6c8b48fa82a6c0a6953cab6d88a4cb2c85 Author: GoGoWen <82132356+gogo...@users.noreply.github.com> AuthorDate: Sun Apr 3 10:56:23 2022 +0800 [fix](restore) fix restore issue when meta version is too low (#8816) When restore snapshot from 0.13 to master, the restore job is pending for long time. However, we get error "Could not set meta version to 93 since it is lower than minimum required version 100" in log. We should cancel restore job once get that error. --- fe/fe-core/src/main/java/org/apache/doris/backup/Repository.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/backup/Repository.java b/fe/fe-core/src/main/java/org/apache/doris/backup/Repository.java index 9078d17..4851917 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/backup/Repository.java +++ b/fe/fe-core/src/main/java/org/apache/doris/backup/Repository.java @@ -423,6 +423,9 @@ public class Repository implements Writable { LOG.warn("failed to read backup meta from file", e); return new Status(ErrCode.COMMON_ERROR, "Failed create backup meta from file: " + localMetaFile.getAbsolutePath() + ", msg: " + e.getMessage()); + } catch (IllegalArgumentException e) { + LOG.warn("failed to set meta version", e); + return new Status(ErrCode.COMMON_ERROR, e.getMessage()); } finally { localMetaFile.delete(); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org