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

[ML] fix test failure from issue #71150 #71176

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

benwtrent
Copy link
Member

@benwtrent benwtrent commented Apr 1, 2021

Recently merged was a change that modified the default value of: action.destructive_requires_name to true.

The original merge was fairly careful to adjust all the test clusters to account for the default value change.

However, the machine learning test runner was missed. We create custom node settings and thus require
the handling of the default value change.

relates to #71150

@benwtrent benwtrent added >test Issues or PRs that are addressing/adding tests :Core/Infra/Settings Settings infrastructure and APIs :ml Machine learning v8.0.0 labels Apr 1, 2021
@elasticmachine elasticmachine added Team:ML Meta label for the ML team Team:Core/Infra Meta label for core/infra team labels Apr 1, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@droberts195
Copy link
Contributor

Is this implying that the new feature reset API requires action.destructive_requires_name be set to false?

Given the conversations we've had recently about not using this API in production I can see some sense in that, but it needs to be clearly documented and the feature reset API should fail fast without doing a partial reset if the flag is incorrectly set.

But if we see the future direction of action.destructive_requires_name being that it will eventually be deprecated and removed then the feature reset API needs to work with it set to true.

Either way, this PR could be merged as-is as an interim solution.

@benwtrent
Copy link
Member Author

@droberts195 I opened: #71178

Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

I opened: #71178

Thanks. I am happy to merge this as an interim fix while that is discussed.

@benwtrent benwtrent merged commit 27000b5 into elastic:master Apr 1, 2021
@benwtrent benwtrent deleted the test/ml-fix-test-from-71150 branch April 1, 2021 12:56
droberts195 added a commit to droberts195/elasticsearch that referenced this pull request Jun 3, 2021
After elastic#71150 was merged we had to allow wildcarded deletions
in our native multi-node tests, because the feature reset API
was doing a wildcarded deletion.

This is not ideal because we then might rely on wildcarded
deletion somewhere else and not notice in our tests.

Now that elastic#73017 is merged we should no longer need to allow
wildcarded deletion for the benefit of the feature reset API.
Therefore, this PR reverts the setting change that was made
in elastic#71176.  Over time our testing will then validate that the
feature reset API really does work with wildcarded deletes
disallowed.
droberts195 added a commit that referenced this pull request Jun 4, 2021
After #71150 was merged we had to allow wildcarded deletions
in our native multi-node tests, because the feature reset API
was doing a wildcarded deletion.

This is not ideal because we then might rely on wildcarded
deletion somewhere else and not notice in our tests.

Now that #73017 is merged we should no longer need to allow
wildcarded deletion for the benefit of the feature reset API.
Therefore, this PR reverts the setting change that was made
in #71176.  Over time our testing will then validate that the
feature reset API really does work with wildcarded deletes
disallowed.
droberts195 added a commit that referenced this pull request Jun 4, 2021
After #71150 was merged we had to allow wildcarded deletions
in our native multi-node tests, because the feature reset API
was doing a wildcarded deletion.

This is not ideal because we then might rely on wildcarded
deletion somewhere else and not notice in our tests.

Now that #73017 is merged we should no longer need to allow
wildcarded deletion for the benefit of the feature reset API.
Therefore, this PR reverts the setting change that was made
in #71176.  Over time our testing will then validate that the
feature reset API really does work with wildcarded deletes
disallowed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Settings Settings infrastructure and APIs :ml Machine learning Team:Core/Infra Meta label for core/infra team Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants