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

Remove ImmutableOpenMap from snapshot services #90006

Merged
merged 4 commits into from
Sep 22, 2022

Conversation

thecoop
Copy link
Member

@thecoop thecoop commented Sep 12, 2022

Part of #86239

@thecoop thecoop force-pushed the immutablemap-snapshots branch from bddfa8c to 0e272a6 Compare September 12, 2022 13:47
@@ -64,7 +65,7 @@ public class InternalSnapshotsInfoService implements ClusterStateListener, Snaps
private final Supplier<RerouteService> rerouteService;

/** contains the snapshot shards for which the size is known **/
private volatile ImmutableOpenMap<SnapshotShard, Long> knownSnapshotShards;
private volatile Map<SnapshotShard, Long> knownSnapshotShards;
Copy link
Member Author

Choose a reason for hiding this comment

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

Is performance an important factor in this class?

@thecoop thecoop marked this pull request as ready for review September 12, 2022 14:38
@thecoop thecoop added :Core/Infra/Core Core issues without another label >refactoring labels Sep 12, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Sep 12, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

Thanks for iterating on this Simon. Can we please separate the improvements to InternalSnapshotInfoService into a separate PR and keep this PR focused on ImmutableOpenMap?

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM! I left few comments that I think we should address.

@thecoop thecoop merged commit a5f41a8 into elastic:main Sep 22, 2022
@thecoop thecoop deleted the immutablemap-snapshots branch September 23, 2022 08:35
@thecoop thecoop mentioned this pull request Sep 23, 2022
35 tasks
thecoop added a commit that referenced this pull request Sep 23, 2022
thecoop added a commit that referenced this pull request Sep 23, 2022
* Revert "Remove ImmutableOpenMap from snapshot services (#90006)"

This reverts commit a5f41a8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >refactoring Team:Core/Infra Meta label for core/infra team v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants