-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Split .kibana system index into multiple indices #154444
Closed
gsoldevila
wants to merge
29
commits into
elastic:main
from
gsoldevila:kbn-104081-split-multiple-indices-relocate
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
050034d
Allow relocating SO to different indices during migration
gsoldevila 30cffcb
Revert changes in ES archiver
gsoldevila dffba15
Merge branch 'main' into kbn-104081-split-multiple-indices-logic
gsoldevila 75dcf23
Revert correctly ^^
gsoldevila c0f8249
Fix failing integration tests, add a new one to test the split
gsoldevila cd0f5d0
Merge branch 'main' into kbn-104081-split-multiple-indices-logic
gsoldevila 942c026
Merge branch 'main' into kbn-104081-split-multiple-indices-logic
gsoldevila dfc8045
Define MAIN_SAVED_OBJECT_INDEX in @kbn/core-saved-objects-server
gsoldevila 279a2ed
Merge branch 'main' into kbn-104081-split-multiple-indices-logic
gsoldevila 59c2908
Merge branch 'main' into kbn-104081-split-multiple-indices-logic
gsoldevila 14e9f8e
Relocate 'cases' saved objects to '.kibana_cases' index
gsoldevila 03bdb74
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 05dea55
Fix integration tests
gsoldevila 3e3d4b9
Make `indexPattern: string` again
gsoldevila c895981
Merge branch 'main' into kbn-104081-split-multiple-indices-logic
gsoldevila 6c10618
Merge branch 'kbn-104081-split-multiple-indices-logic' into kbn-10408…
gsoldevila be3541e
Fix typo: involed => involved
gsoldevila 087742d
Address some PR remarks
gsoldevila fa57995
Merge branch 'main' into kbn-104081-split-multiple-indices-logic
gsoldevila d1c1055
Merge branch 'kbn-104081-split-multiple-indices-logic' into kbn-10408…
gsoldevila 6483764
Fix incorrect call to esClient.get(); use .kibana_cases index
gsoldevila 2046c27
Update mappings with .kibana_ to fake that reindex split is complete
rudolf 4efdb10
Address some of the PR remarks
gsoldevila 9725176
Take into account targetMappings._meta when merging
gsoldevila ee3e52d
Merge branch 'main' into kbn-104081-split-multiple-indices-logic
gsoldevila ce58e44
Merge branch 'kbn-104081-split-multiple-indices-logic' into kbn-10408…
gsoldevila 288c4b4
Fix outdated integration test
gsoldevila 342c400
remove unused var
pgayvallet d0bb843
Merge remote-tracking branch 'upstream/main' into kbn-104081-split-mu…
pgayvallet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no unit tests for this
mergeMigrationMappingPropertyHashes
helper. We should add some (and assert the behavior of this change/fix)Should this be done in the current PR or on the 'upstream' one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should do it on the upstream PR.
But first I wanted to check whether this
mergeMigrationMappingPropertyHashes
operation is still necessary.If we want to use these hashes as a basis to construct the
indexTypesMap
, I'm afraid the merge can be problematic. @rudolf WDYT?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use these in
checkTargetMappings
as a way to determine if mappings are up to date. If we don't merge the _meta it means there could be plugins which have applied some mappings that we don't know about. This would cause us to go toUPDATE_TARGET_MAPPINGS_PROPERTIES
which would be unecessary but not a problem. So I don't see an obvious problem right now.