Skip to content

Conversation

@ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Jan 6, 2017

Primary relocation for shadow replicas is broken as the recovery process accesses the engine on the source shard after it's been closed. This results in the source shard failing itself. This has not been detected by tests as, after failing source and target shard of the relocation, the master simply reassigns the primary to the node where it wanted to relocate to as every node has access to the shard files.

Test failure exhibiting behavior (might be an un-related issue though):

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+periodic/1282/consoleFull

Relates to #20300

Copy link
Contributor

@s1monw s1monw left a comment

Choose a reason for hiding this comment

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

LGTM good catch

@ywelsch ywelsch added the :Distributed Indexing/Recovery Anything around constructing a new shard, either from a local or a remote source. label Jan 8, 2017
@ywelsch ywelsch merged commit 8741691 into elastic:master Jan 8, 2017
ywelsch added a commit that referenced this pull request Jan 8, 2017
The recovery process started during primary relocation of shadow replicas accesses the engine on the source shard after it's been closed, which results in the source shard failing itself.
ywelsch added a commit that referenced this pull request Jan 8, 2017
The recovery process started during primary relocation of shadow replicas accesses the engine on the source shard after it's been closed, which results in the source shard failing itself.
ywelsch added a commit that referenced this pull request Jan 8, 2017
The recovery process started during primary relocation of shadow replicas accesses the engine on the source shard after it's been closed, which results in the source shard failing itself.
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Jan 8, 2017
* master:
  [TEST] Fixed the incorrect indentation for the `skip` clauses in the REST tests
  Fix primary relocation for shadow replicas (elastic#22474)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed Indexing/Recovery Anything around constructing a new shard, either from a local or a remote source. v5.1.2 v5.2.0 v6.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants