-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add a new index setting to skip recovery source when synthetic source is enabled #114618
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
Merged
jimczi
merged 55 commits into
elastic:main
from
jimczi:lucene_changes_synthetic_snapshot
Dec 10, 2024
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
eccfa09
add benchmark for lucene changes snapshot
jimczi a27cea4
enable logsdb mode
jimczi a11aa24
iter
jimczi 1b0368e
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi 76ea21f
Update docs/changelog/114618.yaml
jimczi a3932e9
spotless
jimczi d4969eb
spotless
jimczi 9668f5e
remove leftover
jimczi 0e02eb4
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi a96648d
Plug the new snapshot when needed and add tests
jimczi c810058
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi edd38bb
spotless
jimczi b99f66f
remove leftover
jimczi 497e0e0
fix NPE
jimczi d6a4326
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi f08c190
spotless
jimczi cf5912e
another NPE in test
jimczi 67ca170
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi 6b08b40
Address review comments
jimczi f7024ef
add a mapper test case for all synthetic field mapper
jimczi 4f246ad
remove micro benchmark
jimczi 20f7c0b
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi f5cf813
apply review comment
jimczi b02a4bd
fix randomization
jimczi 2124324
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi 23fe840
address review comments
jimczi 93c5c08
Update server/src/main/java/org/elasticsearch/index/engine/LuceneChan…
jimczi b088c4f
missing import
jimczi fdfb2cb
disallow changing the new setting on resize and restore
jimczi d7207e4
add a new indices.recovery.chunk_size to control the maximum allowed …
jimczi 813035c
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi cd0747e
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi ea1ede9
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi c8625d8
Address review comments
jimczi 8a20ff8
Restore removed function in Engine class since the engines in serverl…
jimczi 0a5d866
Update change log
jimczi 3ae2475
remove test plugin to set the recovery chunk size now that a setting …
jimczi 52c8966
fix default implementation for the newChangesSnapshot flavour
jimczi 9a32666
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi a3242f5
add missing changes
jimczi 874e876
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi 91d399a
fix more IT tests now that the chunk size setting is registered
jimczi 5728aa5
Merge branch 'main' into lucene_changes_synthetic_snapshot
jimczi 64f4a51
Also check index mode when validating the new setting
jimczi 0394eff
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi 43c25d8
Merge remote-tracking branch 'origin/lucene_changes_synthetic_snapsho…
jimczi 0374b86
Merge branch 'main' into lucene_changes_synthetic_snapshot
jimczi df01f6c
Merge branch 'main' into lucene_changes_synthetic_snapshot
jimczi 4538a25
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi e12b054
Merge branch 'main' into lucene_changes_synthetic_snapshot
jimczi e9f534e
Merge remote-tracking branch 'origin/lucene_changes_synthetic_snapsho…
jimczi 3d290aa
fix default impl for newChangesSnapshot
jimczi a0fa3fd
ensure that we can buffer at least one document
jimczi 873e265
Merge remote-tracking branch 'upstream/main' into lucene_changes_synt…
jimczi 99eaf67
Merge branch 'main' into lucene_changes_synthetic_snapshot
jimczi 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 114618 | ||
summary: Add a new index setting to skip recovery source when synthetic source is enabled | ||
area: Logs | ||
type: enhancement | ||
issues: [] |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
I wonder if this setting needs to be added to
TransportResumeFollowAction#NON_REPLICATED_SETTINGS
so that it is not copied over to CCR follower indices?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.
I think if the leader index uses synthetic source for recovery then the follower index should use that too?
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.
I don't have a strong opinion but wanted to mention it to be sure that it is a deliberated choice.
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.
Are we replicating the
INDEX_MAPPER_SOURCE_MODE_SETTING
? It's mandatory for this to work since this new setting cannot be enabled if the source is not synthetic.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.
INDEX_MAPPER_SOURCE_MODE_SETTING is replicated.
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.
Oh, I just discovered that we enforce specific checks for INDEX_MAPPER_SOURCE_MODE_SETTING to avoid changes during restores (#115811) and resizes (#115812).
I suppose we need similar check for the new setting, WDYT @martijnvg ?
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.
Good catch, I pushed fdfb2cb
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.
good catch @tlrx!