From a2bf5022cb283ed599f38a0e0941dbc991a4dc1a Mon Sep 17 00:00:00 2001 From: Jiquan Long Date: Tue, 8 Nov 2022 22:51:03 +0800 Subject: [PATCH] Fix log of alter collection (#20413) Signed-off-by: longjiquan Signed-off-by: longjiquan --- internal/rootcoord/broker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/rootcoord/broker.go b/internal/rootcoord/broker.go index eef1266c31..cd60ac531b 100644 --- a/internal/rootcoord/broker.go +++ b/internal/rootcoord/broker.go @@ -233,7 +233,7 @@ func (b *ServerBroker) GetSegmentIndexState(ctx context.Context, collID UniqueID } func (b *ServerBroker) BroadcastAlteredCollection(ctx context.Context, req *milvuspb.AlterCollectionRequest) error { - log.Info("") + log.Info("broadcasting request to alter collection", zap.String("collection name", req.GetCollectionName()), zap.Int64("collection id", req.GetCollectionID())) resp, err := b.s.dataCoord.BroadcastAlteredCollection(ctx, req) if err != nil { return err @@ -242,6 +242,7 @@ func (b *ServerBroker) BroadcastAlteredCollection(ctx context.Context, req *milv if resp.ErrorCode != commonpb.ErrorCode_Success { return errors.New(resp.Reason) } + log.Info("done to broadcast request to alter collection", zap.String("collection name", req.GetCollectionName()), zap.Int64("collection id", req.GetCollectionID())) return nil }