From 72de7a46bf44c5bc069b14c572725d1f6b0f07a8 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 25 Jan 2022 10:44:12 +0800 Subject: [PATCH] Fix restore without topic failure (#18387) Co-authored-by: zeripath --- modules/migrations/restore.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/migrations/restore.go b/modules/migrations/restore.go index 6177f80cbbca4..ce1433bef3b72 100644 --- a/modules/migrations/restore.go +++ b/modules/migrations/restore.go @@ -98,6 +98,9 @@ func (r *RepositoryRestorer) GetTopics() ([]string, error) { bs, err := ioutil.ReadFile(p) if err != nil { + if os.IsNotExist(err) { + return nil, nil + } return nil, err }