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

Snapshot/Restore: fix NPE while handling null failure reasons #26127

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

imotov
Copy link
Contributor

@imotov imotov commented Aug 9, 2017

The failure reasons for snapshot shard failures might not be propagated properly if the master node changes after errors were reported by other data nodes, which causes them to be stored as null in snapshot files. This commits adds a workaround for reading such snapshot files where this information might not have been preserved and makes sure that the reason is not null if it gets cluster state from another master. This is a partial backport of #25941 to 5.6.

Closes #25878

…red in CS (elastic#25941)

The failure reason for snapshot shard failures might not be propagated properly if the master node changes after the errors were reported by other data nodes. This commits adds a workaround for reading old snapshot files where this information might not have been preserved and makes sure that the reason is "" if it gets cluster state from another master.

Closes elastic#25878
@imotov imotov added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >bug v5.6.0 labels Aug 9, 2017
@imotov imotov requested a review from ywelsch August 9, 2017 21:22
@colings86 colings86 added v5.6.1 and removed v5.6.0 labels Aug 11, 2017
Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

LGTM

@imotov imotov merged commit 9cbe4ec into elastic:5.6 Aug 14, 2017
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Aug 14, 2017
* 5.6:
  Allow not configure logging without config
  Snapshot/Restore: Ensure that shard failure reasons are correctly stored in CS (elastic#26127)
  Update reference from DateHistogram to Histogram (elastic#26169)
@colings86 colings86 added v5.6.0 and removed v5.6.1 labels Aug 24, 2017
@imotov imotov deleted the backport-25941-to-5.6 branch May 1, 2020 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v5.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants