Skip to content

Conversation

@droberts195
Copy link

This is a followup to #77416.

If aliases on ML hidden indices are made hidden then
all attributes of the alias need to be preserved.

The particularly critical case for ML is where a job's
results alias has a filter that restricts documents
returned when searching the shared results index to
those that relate to the job.

This is a followup to elastic#77416.

If aliases on ML hidden indices are made hidden then
all attributes of the alias need to be preserved.

The particularly critical case for ML is where a job's
results alias has a filter that restricts documents
returned when searching the shared results index to
those that relate to the job.
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Nov 1, 2021
@elasticmachine
Copy link
Collaborator

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

indicesAliasesRequest.addAliasAction(
IndicesAliasesRequest.AliasActions.add()
for (AliasMetadata existingAliasMetadata : entry.value) {
if (existingAliasMetadata.isHidden() == null || existingAliasMetadata.isHidden() == false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI: This condition must be reversed. I did that in my PR (#80346) which replaces this one.

Copy link
Author

Choose a reason for hiding this comment

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

Oh dear. I think that invalidates the testing we did on #79123. Please could reopen that PR, apply the fix, and run a few more BWC test jobs that will do real upgrades of 6.8 to 7.16. Assuming they all work that PR can then be closed again.

This was my mistake. Sorry for the inconvenience.

Copy link
Contributor

Choose a reason for hiding this comment

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

No problem, I'll repeat the testing on #79123.

@droberts195 droberts195 closed this Nov 4, 2021
@droberts195 droberts195 deleted the preserve_alias_attributes_when_making_hidden branch November 29, 2021 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :ml Machine learning Team:ML Meta label for the ML team v8.0.0-beta1 v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants