未验证 提交 27a7875a 编写于 作者: 朱亚光 提交者: GitHub

add array hashKeys empty check (#15796)

fix #15791 https://github.com/milvus-io/milvus/issues/15791Signed-off-by: Nzhuyaguang <zhuyaguang1368@163.com>
上级 9f4c59e6
......@@ -788,6 +788,9 @@ func (it *insertTask) _assignSegmentID(stream msgstream.MsgStream, pack *msgstre
}
tsMsgs := pack.Msgs
hashKeys := stream.ComputeProduceChannelIndexes(tsMsgs)
if len(hashKeys) == 0 {
return nil, fmt.Errorf("the length of hashKeys is 0")
}
reqID := it.Base.MsgID
channelCountMap := make(map[int32]uint32) // channelID to count
channelMaxTSMap := make(map[int32]Timestamp) // channelID to max Timestamp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册