mirror of https://github.com/milvus-io/milvus.git
Add flowgraph insert buffer node error check (#9310)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>pull/9353/head
parent
f2e716d360
commit
83228c35ad
|
@ -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 ..")
|
||||
|
|
Loading…
Reference in New Issue