mirror of https://github.com/milvus-io/milvus.git
fix: Check partition nil before observe load progress (#32659)
See also #32441 #32615 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/32673/head
parent
a239e9110e
commit
4cdf6c3c41
|
@ -256,7 +256,7 @@ func (ob *CollectionObserver) observeLoadStatus(ctx context.Context) {
|
|||
ob.observePartitionLoadStatus(ctx, partition, replicaNum)
|
||||
}
|
||||
partition = ob.meta.GetPartition(partition.PartitionID)
|
||||
if partition.LoadPercentage != 100 {
|
||||
if partition != nil && partition.LoadPercentage != 100 {
|
||||
loaded = false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue