Skip to content

Conversation

@cbuescher
Copy link
Member

Work to support PIT context relocation when nodes gracefully shut down and shards are relocated.

@cbuescher cbuescher requested a review from fcofdez November 6, 2025 12:48
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Nov 6, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @cbuescher, I've created a changelog YAML for you.

@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Nov 6, 2025
Copy link
Contributor

@fcofdez fcofdez left a comment

Choose a reason for hiding this comment

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

LGTM

import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailuresAndResponse;
import static org.hamcrest.Matchers.equalTo;

@TestIssueLogging(
Copy link
Contributor

Choose a reason for hiding this comment

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

is this change related?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only here for improved visibility during testing, will remove before merge

cbuescher and others added 6 commits November 24, 2025 12:05
This adds a kind of "dirty" flag to a ReaderContext that can be used to
make it immediately elgible for cleanup when the reaper process runs. We
cannot really achieve this using the current keepalive setting since keepalive
will be restarted every time a context is used. In some PIT relocation
scenarios we need to make a context "unusable" for new searches without
immediately removing it for running searches (i.e. when we remove a
context after a search has started, some phases like DFSQueryPhase don't
retry on missing contexts, so those searches would fail if we
immediately close the context).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :Search Foundations/Search Catch all for Search Foundations serverless-linked Added by automation, don't add manually Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants