diff --git a/pkg/etcd/etcd.go b/pkg/etcd/etcd.go index 5338ee8d4c..9e0ca1645e 100644 --- a/pkg/etcd/etcd.go +++ b/pkg/etcd/etcd.go @@ -910,6 +910,9 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho if obj.Err != nil { return nil, obj.Err } + if obj.Size == 0 { + continue + } ca, err := time.Parse(time.RFC3339, obj.LastModified.Format(time.RFC3339)) if err != nil { return nil, err