-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Segment Replication: Refactor SegmentReplicationSource interface and SegmentReplicationTarget implementation #7802
Comments
For the remote backed segment replication use case it looks like IndexShard#syncSegmentsFromRemoteSegmentStore is roughly the same sequence of events as SegmentReplicationTarget#startReplication. We should be able to reuse the /cc @mch2 |
We are using the The main problem with |
@ankitkala Can we not convert to/from these objects? I don't see this as a limitation. @dreamer-89 |
Yep. Its not blocking us in any way. Just need to work around it. |
Looking into it. |
Current interfaces works well for Segment Replication using node to node data copy. With the remtoe store integration, the interface isn't completely aligning with remote store
getCheckpointMetadata
andgetSegmentFiles
can be merged into one as we're combining both the remote store into a single method. We can technically split the logic for remote store usecase as well but it doesn't bring any benefit for remote store.getSegmentCheckpointInfo
,getFiles
&finalizeReplication
into a single method. It'll also help in removing the dependency onStoreFileMetadata
as its not passed on for remote store case.The text was updated successfully, but these errors were encountered: