Skip to content

Commit

Permalink
Fix ScrollID used for retrieval of APM Agents configuration
Browse files Browse the repository at this point in the history
- incorrect variable has used

Signed-off-by: Up Neck <[email protected]>
  • Loading branch information
up2neck committed Aug 30, 2024
1 parent a5aaf07 commit d9adabc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/head.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ https://github.com/elastic/apm-server/compare/8.15\...main[View commits]
==== Bug fixes

- Track all bulk request response status codes {pull}13574[13574]
- Fix APM Agents configuration cache renewal {pull}13958[13958]

[float]
==== Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion internal/agentcfg/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (f *ElasticsearchFetcher) singlePageRefresh(ctx context.Context, scrollID s
}

resp, err := esapi.ScrollRequest{
ScrollID: result.ScrollID,
ScrollID: scrollID,
Scroll: f.cacheDuration,
}.Do(ctx, f.client)
if err != nil {
Expand Down

0 comments on commit d9adabc

Please sign in to comment.