Skip to content

Commit

Permalink
Compatible to DescribeIndex error message update (#214)
Browse files Browse the repository at this point in the history
Signed-off-by: wayblink <[email protected]>
  • Loading branch information
wayblink authored Oct 7, 2023
1 parent 7ae2387 commit 1f8d535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/backup_impl_create_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1f8d535

Please sign in to comment.