Skip to content

Commit

Permalink
PR improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Oct 22, 2024
1 parent f3502a3 commit 5e09644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
- Closes beat Publisher on beat stop and by the Agent manager. {pull}40572[40572]
- The journald input now restarts if there is an error/crash {issue}32782[32782] {pull}40558[40558]
- Fix Elasticsearch output not recovering from network errors {issue}40705[40705] {pull}40794[40794]
- Ensure Elasticsearch output can always recover from network errors {pull}40794[40794]

*Auditbeat*

Expand Down
5 changes: 1 addition & 4 deletions heartbeat/beater/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,7 @@ func (bt *Heartbeat) RunCentralMgmtMonitors(b *beat.Beat) {
}

// Backoff panics with 0 duration, set to smallest unit
// TODO(Tiago): find out the correct lifecycle for this context/connection
ctx, cancel := context.WithCancel(context.TODO())
defer cancel()
esClient, err := makeESClient(ctx, outCfg.Config(), 1, 1*time.Nanosecond)
esClient, err := makeESClient(context.TODO(), outCfg.Config(), 1, 1*time.Nanosecond)
if err != nil {
logp.L().Warnf("skipping monitor state management during managed reload: %w", err)
} else {
Expand Down

0 comments on commit 5e09644

Please sign in to comment.