From 9d35a5f94330799f0eb72551a546320362c6111a Mon Sep 17 00:00:00 2001 From: smellthemoon <64083300+smellthemoon@users.noreply.github.com> Date: Fri, 28 Apr 2023 15:20:36 +0800 Subject: [PATCH] Fix num of partitions is wrong (#23780) Signed-off-by: lixinguo Co-authored-by: lixinguo --- internal/rootcoord/meta_table.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/rootcoord/meta_table.go b/internal/rootcoord/meta_table.go index 0dfef4189..a19180419 100644 --- a/internal/rootcoord/meta_table.go +++ b/internal/rootcoord/meta_table.go @@ -547,9 +547,8 @@ func (mt *MetaTable) ChangePartitionState(ctx context.Context, collectionID Uniq switch state { case pb.PartitionState_PartitionCreated: - log.Ctx(ctx).Warn("[should not happen] change partition to created", - zap.String("collection", coll.Name), zap.Int64("collection id", coll.CollectionID), - zap.String("partition", clone.PartitionName), zap.Int64("partition id", clone.PartitionID)) + // support Dynamic load/release partitions + metrics.RootCoordNumOfPartitions.WithLabelValues().Inc() default: metrics.RootCoordNumOfPartitions.WithLabelValues().Dec() } -- GitLab