From eb9bdec53b45f2a948936c29a92274b6fdedd814 Mon Sep 17 00:00:00 2001 From: wayblink Date: Sat, 7 Oct 2023 18:34:46 +0800 Subject: [PATCH] Compatible to DescribeIndex error message update (#214) Signed-off-by: wayblink --- core/backup_impl_create_backup.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/backup_impl_create_backup.go b/core/backup_impl_create_backup.go index 33040056..1d727a66 100644 --- a/core/backup_impl_create_backup.go +++ b/core/backup_impl_create_backup.go @@ -288,7 +288,8 @@ func (b *BackupContext) executeCreateBackup(ctx context.Context, request *backup //} fieldIndex, err := b.getMilvusClient().DescribeIndex(b.ctx, completeCollection.Name, field.Name) if err != nil { - if strings.HasPrefix(err.Error(), "index doesn't exist") { + if strings.Contains(err.Error(), "index not found") || + strings.HasPrefix(err.Error(), "index doesn't exist") { // todo log.Warn("field has no index", zap.String("collection_name", completeCollection.Name),