Skip to content

Add null check for shard stats to data tier telemetry#75185

Merged
elasticsearchmachine merged 2 commits intoelastic:masterfrom
dakrone:add-null-check-to-tier-stats
Jul 15, 2021
Merged

Add null check for shard stats to data tier telemetry#75185
elasticsearchmachine merged 2 commits intoelastic:masterfrom
dakrone:add-null-check-to-tier-stats

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Jul 9, 2021

This adds a null check, as getShardStats(index) may return null.

This adds a null check, as `getShardStats(index)` may return null.
@dakrone dakrone added >bug :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v8.0.0 v7.14.1 v7.15.0 labels Jul 9, 2021
@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Jul 9, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@danhermann danhermann self-requested a review July 15, 2021 15:41
@jbaiera jbaiera self-requested a review July 15, 2021 15:42
Copy link
Copy Markdown
Member

@jbaiera jbaiera left a comment

Choose a reason for hiding this comment

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

LGTM

Question for myself though: in which cases might the shard stats not be present?

@dakrone
Copy link
Copy Markdown
Member Author

dakrone commented Jul 15, 2021

@elasticmachine update branch

@dakrone
Copy link
Copy Markdown
Member Author

dakrone commented Jul 15, 2021

in which cases might the shard stats not be present?

Honestly I am not quite sure yet (which is why I did not originally add a null check). I will try to investigate to see why.

@dakrone dakrone added auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Jul 15, 2021
@elasticsearchmachine elasticsearchmachine merged commit 381c4ef into elastic:master Jul 15, 2021
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💔 Backport failed

Status Branch Result
7.14 Commit could not be cherrypicked due to conflicts
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
backport --pr 75185

dakrone added a commit to dakrone/elasticsearch that referenced this pull request Jul 15, 2021
This adds a null check, as `getShardStats(index)` may return null.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
dakrone added a commit to dakrone/elasticsearch that referenced this pull request Jul 15, 2021
This adds a null check, as `getShardStats(index)` may return null.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
elasticsearchmachine pushed a commit that referenced this pull request Jul 15, 2021
This adds a null check, as `getShardStats(index)` may return null.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
elasticsearchmachine pushed a commit that referenced this pull request Jul 15, 2021
This adds a null check, as `getShardStats(index)` may return null.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
masseyke pushed a commit to masseyke/elasticsearch that referenced this pull request Jul 16, 2021
This adds a null check, as `getShardStats(index)` may return null.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
ywangd pushed a commit to ywangd/elasticsearch that referenced this pull request Jul 30, 2021
This adds a null check, as `getShardStats(index)` may return null.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.14.0 v7.15.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants