-
Notifications
You must be signed in to change notification settings - Fork 26k
[Test] Randomly disable sequence numbers in CcrTimeSeriesDataStreamsIT #143930
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
Changes from 2 commits
866a4cd
b0f24eb
bc1b102
602746f
fb43f93
0a8e528
9ca3ad6
fdc5a8f
4ac7c0b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -282,6 +282,9 @@ private static void putDataStreamTemplate(Client client, String dataStreamName, | |
| if (IndexSettings.TSDB_SYNTHETIC_ID_FEATURE_FLAG) { | ||
| settingsBuilder.put(IndexSettings.SYNTHETIC_ID.getKey(), useSyntheticId); | ||
| } | ||
| if (IndexSettings.DISABLE_SEQUENCE_NUMBERS_FEATURE_FLAG && randomBoolean()) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this need to be combined with the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Time-series indices default to doc values only in recent versions so it is OK |
||
| settingsBuilder.put(IndexSettings.DISABLE_SEQUENCE_NUMBERS.getKey(), true); | ||
| } | ||
| var putTemplateRequest = new TransportPutComposableIndexTemplateAction.Request(getTestClass().getName().toLowerCase(Locale.ROOT)) | ||
| .indexTemplate( | ||
| ComposableIndexTemplate.builder() | ||
|
|
||
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.
Do we want to remove this comment?
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.
No, I think it is still valid, we can't trim seq no if SEQ_NO_INDEX_OPTIONS_SETTING uses points. But the early exit here means that if a template set SEQ_NO_INDEX_OPTIONS_SETTING it is ignored until the index creation time :(
We could change the SEQ_NO_INDEX_OPTIONS_SETTING to also uses IndexVersion.ZERO but I'm a bit worried about potential impacts :(
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.
Yep, Kostas hit the same issue I think #143897 (comment)
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.
Thanks for pointing this, I'll wait for Kostas pull request to be merged then.
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 we want to reinstate the comment here?
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 I misread Francisco's initial comment, yes the comment should be reinstated and should not have been removed in my PR.
I pushed bc1b102