-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Metrics for indexing failures due to version conflicts #119067
Metrics for indexing failures due to version conflicts #119067
Conversation
4055880
to
b38a937
Compare
@albertzaharovits please tell me when this is ready for review again, thanks! |
Hi @albertzaharovits, I've created a changelog YAML for you. |
@kingherc this is now ready for another round. |
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.
Better add auto-backport
label to PR.
LGTM, much cleaner!
{ | ||
var e = expectThrows( | ||
VersionConflictEngineException.class, | ||
() -> client(dataNode).index(new IndexRequest("test").id(docId).source(Map.of()).setIfSeqNo(1).setIfPrimaryTerm(1)) |
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.
Is this because the seqno is 0 for the document?
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.
Yes.
💔 Backport failed
You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
This exposes new OTel node and index based metrics for indexing failures due to version conflicts. In addition, the /_cat/shards, /_cat/indices and /_cat/nodes APIs also expose the same metric, under the newly added column iifvc. Relates: elastic#107601 (cherry picked from commit 12eb1cf) # Conflicts: # server/src/main/java/org/elasticsearch/TransportVersions.java
#119761) * Metrics for indexing failures due to version conflicts (#119067) This exposes new OTel node and index based metrics for indexing failures due to version conflicts. In addition, the /_cat/shards, /_cat/indices and /_cat/nodes APIs also expose the same metric, under the newly added column iifvc. Relates: #107601 (cherry picked from commit 12eb1cf) # Conflicts: # server/src/main/java/org/elasticsearch/TransportVersions.java * types * Fix NodeIndexingMetricsIT * [CI] Auto commit changes from spotless * Fix RestShardsActionTests * Fix test/cat.shards/10_basic.yml for bwc --------- Co-authored-by: elasticsearchmachine <[email protected]>
This exposes new OTel node and index based metrics for indexing failures due to version conflicts.
In addition, the
/_cat/shards
,/_cat/indices
and/_cat/nodes
APIs also expose the same metric, under the newly added columniifvc
.Relates: #107601