Improve efficiency of shard store delete checks #120284
Labels
:Distributed Indexing/Store
Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label.
>enhancement
Team:Distributed Indexing
Meta label for Distributed Indexing team
>tech debt
The
IndicesStore
class acts as a cluster state listener to monitor changes in the routing table and determine if shard data on the local node can be safely deleted. To achieve this, it broadcasts a message to ensure the shard data is no longer needed. However, this approach has a significant drawback: if the routing table frequently changes and nodes take time to respond, the local node may repeatedly send the sameShardActiveRequest
.This behavior becomes particularly problematic in large clusters, especially during node shutdowns, as it leads to unnecessary work and potential inefficiencies. To address this, we should introduce a deduplication mechanism to avoid redundant ShardActiveRequest messages and reduce wasted effort.
The text was updated successfully, but these errors were encountered: