Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented May 23, 2019

This change adds a test verifying that we can force primary allocation on closed indices.

Relates #33888

@dnhatn dnhatn added >test Issues or PRs that are addressing/adding tests :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. v8.0.0 v7.2.0 v7.3.0 labels May 23, 2019
@dnhatn dnhatn requested a review from ywelsch May 23, 2019 18:51
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@tlrx tlrx mentioned this pull request May 23, 2019
50 tasks
@ywelsch
Copy link
Contributor

ywelsch commented May 23, 2019

Can you also add a test for force-allocating an empty (closed) primary?

@dnhatn
Copy link
Member Author

dnhatn commented May 23, 2019

@ywelsch

boolean useStaleReplica = randomBoolean(); // if true, use stale replica, otherwise a completely empty copy

This test randomly allocates a stale replica or an empty copy. Are you okay with this? I can add a new test.

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.

Missed that :)

@dnhatn
Copy link
Member Author

dnhatn commented May 24, 2019

Thanks @ywelsch.

@dnhatn dnhatn merged commit cd324a1 into elastic:master May 24, 2019
@dnhatn dnhatn deleted the force-alloc-closed-indices branch May 24, 2019 15:19
ywelsch pushed a commit that referenced this pull request May 24, 2019
This change adds a test verifying that we can force primary allocation on closed indices.
ywelsch pushed a commit that referenced this pull request May 24, 2019
This change adds a test verifying that we can force primary allocation on closed indices.
ywelsch pushed a commit that referenced this pull request May 24, 2019
This change adds a test verifying that we can force primary allocation on closed indices.
dnhatn added a commit that referenced this pull request May 24, 2019
…#42458)"

Replicate closed indices requires 7.2.0 or later.
This reverts commit 20ad899.
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
…c#42458)

This change adds a test verifying that we can force primary allocation on closed indices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >test Issues or PRs that are addressing/adding tests v7.2.0 v7.3.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants