Skip to content

Commit 2b891aa

Browse files
Anaetheliontblyler
andauthored
Fix ticker memory leak in bulk indexer due to internal flush call resetting the ticker. (#797) (#798)
Co-authored-by: Tony Blyler <[email protected]>
1 parent e5c27bc commit 2b891aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esutil/bulk_indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ func (w *worker) run() {
402402
w.bi.config.DebugLogger.Printf("[worker-%03d] Started\n", w.id)
403403
}
404404
defer func() {
405-
w.ticker.Stop()
406405
w.flush(ctx)
406+
w.ticker.Stop()
407407
w.bi.wg.Done()
408408
}()
409409

0 commit comments

Comments
 (0)