Skip to content

[8.6] Fix timing bug with DFS profiling (#92421)#92636

Merged
elasticsearchmachine merged 1 commit intoelastic:8.6from
benwtrent:backport/8.6/pr-92421
Jan 3, 2023
Merged

[8.6] Fix timing bug with DFS profiling (#92421)#92636
elasticsearchmachine merged 1 commit intoelastic:8.6from
benwtrent:backport/8.6/pr-92421

Conversation

@benwtrent
Copy link
Copy Markdown
Member

Backports the following commits to 8.6:

Introduced in: elastic#90536

Profiling for DFS has had its timing numbers looking weird, additionally, it would trigger some assertion failures because `timer.start()` was called without a `stop()` in between.

The key issue was around query `weight` creation. `Weight` creation could be called recursively, thus calling `start` on the timer more than once before calling stop.
@benwtrent benwtrent added :Search/Search Search-related issues that do not fall into other categories >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Meta label for search team labels Jan 3, 2023
@elasticsearchmachine elasticsearchmachine merged commit 3ed49cd into elastic:8.6 Jan 3, 2023
@benwtrent benwtrent deleted the backport/8.6/pr-92421 branch January 3, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.6.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants