Skip to content

Conversation

DiannaHohensee
Copy link
Contributor

@DiannaHohensee DiannaHohensee commented Aug 7, 2025

This moves the static methods out of the SnapshotsService to
make the stateful code more visible. This is one step towards
refactoring the SnapshotsService.

Relates ES-11650


A fresh PR of #127419. This is essentially a copy-paste of all the static SnapshotsService methods into a new Utils file, converting some from private to public. As long as no new code changes come in, this is very safe. Rebasing/merging main requires careful checking, so hoping to push this quickly.

Created a new Logger for the Utils class, per request in comment.
Also intend to backport to 8.19, as advised in comment.

This moves the static methods out of the SnapshotsService to
make the stateful code more visible. This is one step towards
refactoring the SnapshotsService.

Relates ES-11650
@DiannaHohensee DiannaHohensee self-assigned this Aug 7, 2025
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.2.0 labels Aug 7, 2025
@DiannaHohensee DiannaHohensee added >non-issue :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Coordination Meta label for Distributed Coordination team and removed needs:triage Requires assignment of a team area label labels Aug 7, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

Copy link
Contributor

@JeremyDahlgren JeremyDahlgren left a comment

Choose a reason for hiding this comment

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

LGTM

@DiannaHohensee DiannaHohensee merged commit f0f6410 into elastic:main Aug 7, 2025
32 of 33 checks passed
DiannaHohensee added a commit to DiannaHohensee/elasticsearch that referenced this pull request Aug 29, 2025
sarog pushed a commit to portsbuild/elasticsearch that referenced this pull request Sep 11, 2025
sarog pushed a commit to portsbuild/elasticsearch that referenced this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue Team:Distributed Coordination Meta label for Distributed Coordination team v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants