-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Conversation
bddfa8c
to
0e272a6
Compare
@@ -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; |
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.
Is performance an important factor in this class?
Pinging @elastic/es-core-infra (Team:Core/Infra) |
server/src/main/java/org/elasticsearch/snapshots/InternalSnapshotsInfoService.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/snapshots/InternalSnapshotsInfoService.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/snapshots/InternalSnapshotsInfoService.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java
Outdated
Show resolved
Hide resolved
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.
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?
server/src/main/java/org/elasticsearch/snapshots/InternalSnapshotsInfoService.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/snapshots/InternalSnapshotsInfoService.java
Show resolved
Hide resolved
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.
LGTM! I left few comments that I think we should address.
Part of #86239