Skip to content
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

Fix NPE in SnapshotService CS Application #58680

Conversation

original-brownbear
Copy link
Member

In the unlikely corner case of deleting a relocation (hence WAITING) primary shard's
index during a partial snapshot, we would throw an NPE when checking if there's any external
changes to process.

In the unlikely corner case of deleting a relocation (hence `WAITING`) primary shard's
index during a partial snapshot, we would throw an NPE when checking if there's any external
changes to process.
@original-brownbear original-brownbear added >bug :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.0.0 v7.8.1 v7.9.0 labels Jun 29, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team label Jun 29, 2020
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jun 29, 2020
Relates to elastic#58680. Bugs like that should not only show up in logs
but ideally also get caught in tests. We expect to never see exceptions
in these two spots.
@original-brownbear
Copy link
Member Author

original-brownbear commented Jun 29, 2020

Found this while going for 100% coverage in #56911 but could then also find it in the wild in production logs.
(never seen this before since this is only reproducible with partial snapshots so it only showed up recently for SLM users)

@original-brownbear
Copy link
Member Author

Thanks Tanguy!

@original-brownbear original-brownbear merged commit 2eac156 into elastic:master Jun 30, 2020
@original-brownbear original-brownbear deleted the npe-during-relocate-partial branch June 30, 2020 11:43
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jun 30, 2020
In the unlikely corner case of deleting a relocation (hence `WAITING`) primary shard's
index during a partial snapshot, we would throw an NPE when checking if there's any external
changes to process.
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jun 30, 2020
In the unlikely corner case of deleting a relocation (hence `WAITING`) primary shard's
index during a partial snapshot, we would throw an NPE when checking if there's any external
changes to process.
original-brownbear added a commit that referenced this pull request Jun 30, 2020
In the unlikely corner case of deleting a relocation (hence `WAITING`) primary shard's
index during a partial snapshot, we would throw an NPE when checking if there's any external
changes to process.
original-brownbear added a commit that referenced this pull request Jun 30, 2020
In the unlikely corner case of deleting a relocation (hence `WAITING`) primary shard's
index during a partial snapshot, we would throw an NPE when checking if there's any external
changes to process.
original-brownbear added a commit that referenced this pull request Jul 14, 2020
Relates to #58680. Bugs like that should not only show up in logs
but ideally also get caught in tests. We expect to never see exceptions
in these two spots.
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jul 14, 2020
Relates to elastic#58680. Bugs like that should not only show up in logs
but ideally also get caught in tests. We expect to never see exceptions
in these two spots.
original-brownbear added a commit that referenced this pull request Jul 14, 2020
Relates to #58680. Bugs like that should not only show up in logs
but ideally also get caught in tests. We expect to never see exceptions
in these two spots.
@original-brownbear original-brownbear restored the npe-during-relocate-partial branch August 6, 2020 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Meta label for distributed team v7.8.1 v7.9.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants