-
Notifications
You must be signed in to change notification settings - Fork 25.3k
[CCR] Update es monitoring mapping and #33635
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
Conversation
change qa tests to query based on leader index.
Pinging @elastic/es-distributed |
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.
I left one comment.
As we continue to iterate on the stats endpoint (we will) we will need to consider a way to enforce that we keep the mapping up to date with the changes?
"type": "keyword" | ||
}, | ||
"shard_id": { | ||
"type": "keyword" |
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.
I am not sure about this being a keyword, I think probably a numeric field type is preferred here?
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.
Good point. It is serialized as a string now ([index-name][shard-id]
). I think that is not super useful and serializing just the shard id is better? (the leader index is already stored in another field)
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.
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.
whoops. I read shardId
as field name and I assumed ShardId
class.
* master: Fix checkstyle violation in ShardFollowNodeTask [HLRC][ML] Add ML put datafeed API to HLRC (elastic#33603)
Agreed. I'm not sure how though. Add unit test in monitoring that iterates over all static parse fields, parse the mapping and then verify if there is a entry in the mapping? |
Maybe its too heavy handed but Monitoring has integration tests. Maybe one of those to collect stats and then query for them, to ensure that all the fields were indeed indexed as expected? |
@ycombinator Thanks, I did not know that. I think we can add a test here or somewhere else that uses |
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.
LGTM.
* [CCR] Update es monitoring mapping and change qa tests to query based on leader index. Co-authored-by: Jason Tedor <jason@tedor.me>
change qa tests to query based on leader index.