mirror of https://github.com/milvus-io/milvus.git
Fix an issue where flushed segments can turn into sealed (#21566)
/kind improvement Signed-off-by: Yuchen Gao <yuchen.gao@zilliz.com>pull/21654/head
parent
9f8095996b
commit
8c2c04517e
|
@ -1310,6 +1310,7 @@ func isFlushState(state commonpb.SegmentState) bool {
|
|||
// updateSegStateAndPrepareMetrics updates a segment's in-memory state and prepare for the corresponding metric update.
|
||||
func updateSegStateAndPrepareMetrics(segToUpdate *SegmentInfo, targetState commonpb.SegmentState, metricMutation *segMetricMutation) {
|
||||
log.Debug("updating segment state and updating metrics",
|
||||
zap.Int64("segment ID", segToUpdate.GetID()),
|
||||
zap.String("old state", segToUpdate.GetState().String()),
|
||||
zap.String("new state", targetState.String()),
|
||||
zap.Int64("# of rows", segToUpdate.GetNumOfRows()))
|
||||
|
|
Loading…
Reference in New Issue