-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Clean the last traces from global retention in templates #111669
Clean the last traces from global retention in templates #111669
Conversation
Pinging @elastic/es-data-management (Team:Data Management) |
@elasticmachine update branch |
} | ||
Map<String, ComposableIndexTemplate> templates = new HashMap<>(); | ||
for (int i = 0; i < randomIntBetween(1, 4); i++) { | ||
templates.put(randomAlphaOfLength(4), ComposableIndexTemplateTests.randomInstance()); | ||
} | ||
return new GetComposableIndexTemplateAction.Response(templates, globalRetention); | ||
return new GetComposableIndexTemplateAction.Response(templates, rolloverConfiguration); | ||
} | ||
|
||
@Override | ||
protected GetComposableIndexTemplateAction.Response mutateInstance(GetComposableIndexTemplateAction.Response instance) { | ||
return randomValueOtherThan(instance, this::createTestInstance); |
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.
Just a note -- this kind of mutateInstance seems to defeat the purpose of the test, but that's outside of the scope of this PR.
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.
Happy to implement since I am in the code :)
* upstream/main: Fail `indexDocs()` on rejection (elastic#111962) Move repo analyzer to its own package (elastic#111963) Add generated evaluators for DateNanos conversion functions (elastic#111961) Clean the last traces from global retention in templates (elastic#111669) Fix known issue docs for elastic#111866 (elastic#111956) x-pack/plugin/otel: introduce x-pack-otel plugin (elastic#111091) Improve reaction to blob store corruptions (elastic#111954) Introduce `StreamingXContentResponse` (elastic#111933) Revert "Add 8.15.0 known issue for memory locking in Windows (elastic#111949)" Test get-snapshots API with missing details (elastic#111903) Add 8.15.0 known issue for memory locking in Windows (elastic#111949) # Conflicts: # server/src/main/java/org/elasticsearch/TransportVersions.java
Follow up from #108170.
In this PR we remove completely the global retention field from the templates. We left some deprecated constructors because they are still used in serverless. We will clean them up in a follow up PR.