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

add archive restore retry on mapper parsing exception #21197

Merged
merged 7 commits into from
Dec 19, 2024

Conversation

AntonEbel
Copy link
Contributor

@AntonEbel AntonEbel commented Dec 16, 2024

Description

Since this PR, we save the mapping in the archive-metadata.json file and use this mapping to create an index. The problem is that if a mapping contains field properties that reference a field from the index settings, this leads to an error. We have therefore started to also store the index settings in the archive-metadata.json and apply them during index creation. This has been done in this PR. Unfortunately, there is still an error case for archives that do not contain any settings. For this scenario, this PR implements a retry with default mappings/settings if such an error occurs.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

companion PR:
/jenkins-pr-deps Graylog2/graylog-plugin-enterprise#9413

@patrickmann patrickmann self-requested a review December 18, 2024 08:55
Copy link
Contributor

@patrickmann patrickmann left a comment

Choose a reason for hiding this comment

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

Looks good

@patrickmann patrickmann merged commit 7664ddf into master Dec 19, 2024
6 checks passed
@patrickmann patrickmann deleted the archive-restore-fallback-mapping branch December 19, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants