-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Shard level search stats - DfsPhase #126380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Shard level search stats - DfsPhase #126380
Conversation
….com:drempapis/elasticsearch into ShardSearchStats_usage_search_load_per_index
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
…ub.com:drempapis/elasticsearch into ShardSearchStats_usage_search_load_per_index
@@ -113,6 +134,13 @@ private Stats(StreamInput in) throws IOException { | |||
|
|||
@Override | |||
public void writeTo(StreamOutput out) throws IOException { | |||
if (out.getTransportVersion().onOrAfter(TransportVersions.DFS_STATS)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity - do we ever clean up these checks once we're far enough into the future to safely assume all nodes are upgraded past this version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, Ben, for the review. Yes, there is a cleanup process; please check the following pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Enhances metrics collection by tracking time metrics and failures executions of
DFS
(Distributed Frequency Search). These metrics are exposed through the Stats API.The
SearchOperationListener
has been extended to support DFS tracking, withShardSearchStats
providing the underlying implementation.