Skip to content

Conversation

@mark-vieira
Copy link
Contributor

@mark-vieira mark-vieira commented Nov 21, 2025

Async search results are intended to be short lived. Currently, we don't enforce any maximum on keep_alive. Very long TTLs can be problematic because async search results are not indefinitely supported. Eventually, due to transport versioning support changes, old results will no longer be readable. Since it doesn't make sense to keep this stuff for very long timeframes, we should restrict this to a reasonable duration.

@mark-vieira mark-vieira added >non-issue :Core/Infra/Core Core issues without another label :Search Foundations/Search Catch all for Search Foundations labels Nov 21, 2025
@mark-vieira mark-vieira changed the title Enforce maximum ttl of 30 days on async search requests Enforce maximum ttl on async search requests Nov 21, 2025
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.3.0 labels Nov 21, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine
Copy link
Collaborator

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

@mark-vieira
Copy link
Contributor Author

I chose 30 days here pretty arbitrarily. I'm open to suggestions. Additionally, this could be considered a breaking change. Should we make this a soft limit by introducing a cluster setting here so folks can override? Perhaps immediately deprecating the setting so it can be removed in the next version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label >non-issue :Search Foundations/Search Catch all for Search Foundations Team:Core/Infra Meta label for core/infra team 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.

2 participants