未验证 提交 83228c35 编写于 作者: G godchen 提交者: GitHub

Add flowgraph insert buffer node error check (#9310)

Signed-off-by: Ngodchen <qingxiang.chen@zilliz.com>
上级 f2e716d3
......@@ -274,13 +274,17 @@ func (ibNode *insertBufferNode) Operate(in []Msg) []Msg {
if !ok || bd.(*BufferData).size <= 0 { // Buffer empty
log.Debug(".. Buffer empty ...")
ibNode.dsSaveBinlog(&segmentFlushUnit{
err = ibNode.dsSaveBinlog(&segmentFlushUnit{
collID: fmsg.collectionID,
segID: currentSegID,
field2Path: map[UniqueID]string{},
checkPoint: ibNode.replica.listSegmentsCheckPoints(),
flushed: true,
})
if err != nil {
log.Debug("insert buffer node save binlog failed", zap.Error(err))
break
}
ibNode.replica.segmentFlushed(currentSegID)
} else { // Buffer not empty
log.Debug(".. Buffer not empty, flushing ..")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册