Skip to content

Commit

Permalink
Fix ticker memory leak in bulk indexer due to internal flush call res…
Browse files Browse the repository at this point in the history
…etting the ticker. (#797) (#798)

Co-authored-by: Tony Blyler <tblyler@users.noreply.github.com>
  • Loading branch information
Anaethelion and tblyler committed Feb 7, 2024
1 parent e5c27bc commit 2b891aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esutil/bulk_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ func (w *worker) run() {
w.bi.config.DebugLogger.Printf("[worker-%03d] Started\n", w.id)
}
defer func() {
w.ticker.Stop()
w.flush(ctx)
w.ticker.Stop()
w.bi.wg.Done()
}()

Expand Down

0 comments on commit 2b891aa

Please sign in to comment.