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

Clean the last traces from global retention in templates #111669

Merged

Conversation

gmarouli
Copy link
Contributor

@gmarouli gmarouli commented Aug 7, 2024

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.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@gmarouli gmarouli requested a review from masseyke August 7, 2024 11:54
@gmarouli
Copy link
Contributor Author

gmarouli commented Aug 8, 2024

@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);
Copy link
Member

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.

Copy link
Contributor Author

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 :)

@gmarouli gmarouli merged commit 24b852b into elastic:main Aug 19, 2024
16 checks passed
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Aug 19, 2024
* 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
@gmarouli gmarouli deleted the remove-global-retention-from-templates branch August 19, 2024 14:21
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 4, 2024
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Data streams Data streams and their lifecycles >non-issue Team:Data Management Meta label for data/management team test-update-serverless v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants