Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelogs/head.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ https://github.com/elastic/apm-server/compare/8.1\...main[View commits]
[float]
==== Bug fixes
- Do not overwrite `service version` if no transaction/error/... specific `service.name` is given {pull}7281[7281]
- modelindexer: Fix indexing performance regression due to locking bug {pull}7649[7649]

[float]
==== Intake API Changes
Expand Down
2 changes: 1 addition & 1 deletion model/modelindexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ func (i *Indexer) flushActive(ctx context.Context) error {
}()

i.activeMu.Lock()
defer i.activeMu.Unlock()
bulkIndexer := i.active
i.active = nil
i.activeMu.Unlock()
err := i.flush(ctx, bulkIndexer)
bulkIndexer.Reset()
i.available <- bulkIndexer
Expand Down