Skip to content

Refactor DataStream.getIndicesOlderThan to return a Set#144422

Merged
dakrone merged 7 commits intoelastic:mainfrom
dakrone:dlm-return-set-from-getoldindices
Mar 18, 2026
Merged

Refactor DataStream.getIndicesOlderThan to return a Set#144422
dakrone merged 7 commits intoelastic:mainfrom
dakrone:dlm-return-set-from-getoldindices

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Mar 17, 2026

Previously this method returned a list of indices, but it now returns a set. These indices don't actually need to be iterated in order for the DLM actions.

Relates to #144248 (comment)

Previously this method returned a list of indices, but it now returns a set. These indices don't
actually need to be iterated in order for the DLM actions.

Relates to elastic#144248 (comment)
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@dakrone dakrone requested a review from seanzatzdev March 17, 2026 19:10
Copy link
Copy Markdown
Contributor

@lukewhiting lukewhiting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@dakrone dakrone merged commit 8bb3c31 into elastic:main Mar 18, 2026
36 checks passed
michalborek pushed a commit to michalborek/elasticsearch that referenced this pull request Mar 23, 2026
* Refactor DataStream.getIndicesOlderThan to return a Set

Previously this method returned a list of indices, but it now returns a set. These indices don't
actually need to be iterated in order for the DLM actions.

Relates to elastic#144248 (comment)

* Return unmodifiable set to be consistent

* Now that it's immutable, we need a mutable version in DLM service

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants