- Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Distributed Indexing/EngineAnything around managing Lucene and the Translog in an open shard.Anything around managing Lucene and the Translog in an open shard.:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories:StorageEngine/TSDBYou know, for MetricsYou know, for Metricsenhancement"" muted="" aria-describedby="MDU6TGFiZWwyMzE3NA==-tooltip :R9b96b:">>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)Team:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Team:SearchMeta label for search teamMeta label for search team
Description
When a shard becomes search active then trigger a refresh instead of waiting for the next scheduled refresh.
The IndexShard#awaitShardSearchActive(...) method registers a refresh listener and then often waits for the refresh scheduler to trigger a refresh. By default this is one second. In order to avoid increasing the query time of the Search API, the mentioned method should trigger a refresh instead for waiting it to happen.
As part of this change we also need to disable the refresh scheduler completely. Otherwise we run at risk of running two refreshes next after each other. One triggered from making shard search active and one from the refresh scheduler.
Metadata
Metadata
Assignees
Labels
:Distributed Indexing/EngineAnything around managing Lucene and the Translog in an open shard.Anything around managing Lucene and the Translog in an open shard.:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories:StorageEngine/TSDBYou know, for MetricsYou know, for Metricsenhancement"" muted="" aria-describedby="MDU6TGFiZWwyMzE3NA==-tooltip :Ri5pmb:">>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)Team:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Team:SearchMeta label for search teamMeta label for search team