Skip to content

Commit 39a6954

Browse files
authored
Do not drop item after flush() failed (#623)
1 parent 1d604f9 commit 39a6954

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esutil/bulk_indexer.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ func (w *worker) run() {
441441
if w.bi.config.OnError != nil {
442442
w.bi.config.OnError(ctx, err)
443443
}
444-
continue
444+
w.mu.Lock()
445+
// continue with 'item' even when flush failed
445446
}
446447
}
447448

0 commit comments

Comments
 (0)