Skip to content

Fix bitset filter cache loading in Stateless#114191

Merged
kingherc merged 3 commits intoelastic:mainfrom
kingherc:non-issue/stateless-bitset-filter-cache
Oct 11, 2024
Merged

Fix bitset filter cache loading in Stateless#114191
kingherc merged 3 commits intoelastic:mainfrom
kingherc:non-issue/stateless-bitset-filter-cache

Conversation

@kingherc
Copy link
Contributor

@kingherc kingherc commented Oct 6, 2024

As recognized in this comment discussion, the bitset filter cache was wrongly eagerly loaded only for fast refresh indices on index nodes in PR #105791 . However, it should be eagerly loaded for any index that can be searched. This PR fixes this. After #113478 , searches can happen only on search nodes (irrespective of whether an index is fast refresh or not), so doing that in this PR.

As recognized in PR elastic#113478 reviewing, the bitset filter cache
was wrongly eagerly loaded only for fast refresh indices on index
nodes. However, it should be eagerly loaded for any index that
can be searched. This PR fixes this.
@kingherc kingherc added >non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team auto-backport Automatically create backport pull requests when merged v8.16.0 v9.0.0 labels Oct 6, 2024
@kingherc kingherc self-assigned this Oct 6, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (but we should have a search team review here).

Ideally we'd merge #113478 first, then this PR simplifies even more.

@kingherc
Copy link
Contributor Author

kingherc commented Oct 8, 2024

Gentle reminder for search team to review this. cc @original-brownbear , @JVerwolf

@kingherc
Copy link
Contributor Author

Gentle reminder for review by @elastic/es-search-foundations , @original-brownbear , @JVerwolf

Copy link
Contributor

@JVerwolf JVerwolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Thanks for fixing this @kingherc !

@kingherc kingherc merged commit a91a9a5 into elastic:main Oct 11, 2024
kingherc added a commit to kingherc/elasticsearch that referenced this pull request Oct 11, 2024
As recognized in PR elastic#113478 reviewing, the bitset filter cache
was wrongly eagerly loaded only for fast refresh indices on index
nodes. However, it should be eagerly loaded for any index that
can be searched. This PR fixes this.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

elasticsearchmachine pushed a commit that referenced this pull request Oct 11, 2024
As recognized in PR #113478 reviewing, the bitset filter cache
was wrongly eagerly loaded only for fast refresh indices on index
nodes. However, it should be eagerly loaded for any index that
can be searched. This PR fixes this.
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Oct 13, 2024
As recognized in PR elastic#113478 reviewing, the bitset filter cache
was wrongly eagerly loaded only for fast refresh indices on index
nodes. However, it should be eagerly loaded for any index that
can be searched. This PR fixes this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants