Skip to content

Avoid creating a green index in RetentionLeaseIT#39347

Merged
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2019-02-25-waitForActiveShards-lease-test
Feb 25, 2019
Merged

Avoid creating a green index in RetentionLeaseIT#39347
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2019-02-25-waitForActiveShards-lease-test

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

In #39224 we made shard history retention lease syncing ignore the
index.write.wait_for_active_shards setting on the index, and added a test
that showed that it was ignored. However the test as merged actually creates a
green index, so the wait_for_active_shards setting has no effect. This change
adjusts the test to create a yellow index to verify that
wait_for_active_shards really is ignored.

In elastic#39224 we made shard history retention lease syncing ignore the
`index.write.wait_for_active_shards` setting on the index, and added a test
that showed that it was ignored. However the test as merged actually creates a
green index, so the `wait_for_active_shards` setting has no effect. This change
adjusts the test to create a yellow index to verify that
`wait_for_active_shards` really is ignored.
@DaveCTurner DaveCTurner added >bug >test Issues or PRs that are addressing/adding tests v7.0.0 :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. v6.7.0 v8.0.0 v7.2.0 labels Feb 25, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

Copy link
Copy Markdown
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

Oops. LGTM.

@DaveCTurner DaveCTurner merged commit 7f7a927 into elastic:master Feb 25, 2019
@DaveCTurner DaveCTurner deleted the 2019-02-25-waitForActiveShards-lease-test branch February 25, 2019 13:20
DaveCTurner added a commit that referenced this pull request Feb 25, 2019
In #39224 we made shard history retention lease syncing ignore the
`index.write.wait_for_active_shards` setting on the index, and added a test
that showed that it was ignored. However the test as merged actually creates a
green index, so the `wait_for_active_shards` setting has no effect. This change
adjusts the test to create a yellow index to verify that
`wait_for_active_shards` really is ignored.
DaveCTurner added a commit that referenced this pull request Feb 25, 2019
In #39224 we made shard history retention lease syncing ignore the
`index.write.wait_for_active_shards` setting on the index, and added a test
that showed that it was ignored. However the test as merged actually creates a
green index, so the `wait_for_active_shards` setting has no effect. This change
adjusts the test to create a yellow index to verify that
`wait_for_active_shards` really is ignored.
DaveCTurner added a commit that referenced this pull request Feb 25, 2019
In #39224 we made shard history retention lease syncing ignore the
`index.write.wait_for_active_shards` setting on the index, and added a test
that showed that it was ignored. However the test as merged actually creates a
green index, so the `wait_for_active_shards` setting has no effect. This change
adjusts the test to create a yellow index to verify that
`wait_for_active_shards` really is ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants