Skip to content

Conversation

@arteam
Copy link
Contributor

@arteam arteam commented Mar 17, 2025

Support reading shard field stats outside of IndexShard in read-only engines.

See ES-11062

@arteam arteam added the :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. label Mar 17, 2025
@arteam arteam changed the title Add a generic method for reading shard stats from an Engine Add a generic method for reading shard field stats from an Engine Mar 17, 2025
@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Mar 17, 2025
@arteam arteam marked this pull request as ready for review March 20, 2025 08:40
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Indexing Meta label for Distributed Indexing team label Mar 20, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing)

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.

Only a minor comment about the method.

}
}

protected ShardFieldStats shardFieldStats(List<LeafReaderContext> leaves) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that we should make this method static.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! I've changed it to be static cb2b70b

@arteam arteam requested a review from fcofdez March 24, 2025 15:16
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

@arteam arteam merged commit 3d89e22 into elastic:main Mar 25, 2025
17 checks passed
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
…astic#125055)

Support reading shard field stats outside of `IndexShard` in read-only engines.

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

Labels

:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >non-issue serverless-linked Added by automation, don't add manually Team:Distributed Indexing Meta label for Distributed Indexing team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants