Fix num of partitions is wrong (#23780)

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
pull/23774/head
smellthemoon 2023-04-28 15:20:36 +08:00 committed by GitHub
parent 4c773d25a2
commit 9d35a5f943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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()
}