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

[Bug]: Bug with _aliases update in publish libraries #535

Closed
prudhvigodithi opened this issue Oct 17, 2024 · 1 comment
Closed

[Bug]: Bug with _aliases update in publish libraries #535

prudhvigodithi opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@prudhvigodithi
Copy link
Member

prudhvigodithi commented Oct 17, 2024

Describe the bug

When alias added in index mapping, the following is the error.

Failed to create index. Error message: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [aliases : {opensearch-integration-test-results={}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:  [aliases : {opensearch-integration-test-results={}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters:  [aliases : {opensearch-integration-test-results={}}]"}},"status":400}

To reproduce

  • Create an index with alias added to the index mapping.

Additional context

Impacted Libraries
https://github.com/opensearch-project/opensearch-build-libraries/blob/main/vars/publishGradleCheckTestResults.groovy
https://github.com/opensearch-project/opensearch-build-libraries/blob/main/vars/publishIntegTestResults.groovy
https://github.com/opensearch-project/opensearch-build-libraries/blob/main/vars/publishDistributionBuildResults.groovy

Relevant log output

No response

@prudhvigodithi
Copy link
Member Author

Closing this issue and bug fix has been pushed in 7.2.0 library version.
Sample build https://build.ci.opensearch.org/job/integ-test/8840/console which updates the alias when the index is created for the 1st time.
Screenshot 2024-10-22 at 9 34 46 AM
Thank you
@getsaurabh02 @gaiksaya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants