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

Handle IndexShard.getLatestReplicationCheckpoint for closed indices #6828

Closed
Tracked by #6761
dreamer-89 opened this issue Mar 24, 2023 · 1 comment · Fixed by #7056
Closed
Tracked by #6761

Handle IndexShard.getLatestReplicationCheckpoint for closed indices #6828

dreamer-89 opened this issue Mar 24, 2023 · 1 comment · Fixed by #7056
Assignees
Labels
bug Something isn't working distributed framework

Comments

@dreamer-89
Copy link
Member

dreamer-89 commented Mar 24, 2023

Closed indices have closed stores and thus access to IndexWriter fails with AlreadyClosedException while fetching ReplicationCheckpoint. One alternative here is read the replication checkpoint using DirectoryReader passing in the shard path.

Use case

Cluster manager fetches shard state of replicas via TransportNodesListGatewayStartedShards to fetch ReplicationCheckpoint. This checkpoint is then used by cluster manager to select the node containing the highest checkpoint.

@dreamer-89 dreamer-89 changed the title Handle fetch ReplicationCheckpoint for closed indices Handle IndexShard.getLatestReplicationCheckpoint for closed indices Mar 24, 2023
@anasalkouz anasalkouz added distributed framework bug Something isn't working and removed untriaged labels Mar 24, 2023
@Poojita-Raj Poojita-Raj self-assigned this Mar 29, 2023
@dreamer-89
Copy link
Member Author

Updated the description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed framework
Projects
Status: Done
3 participants