-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Segment Replication] Ensure replica's store always contains the prev…
…ious commit point. (#2551) * Ensure replica's store always contains the previous commit point. This change: 1. Updates the cleanup and validation steps after a replication event occurs to prevent deleting files still referenced by both the on disk segments_N file and the in memory SegmentInfos. 2. Sends metadata diff of on disk segments with each copy event. This allows replicas that are multiple commit points behind to catch up. 3. Update initial recovery in IndexShard to copy segments before lighting up as active. This fixes bug where replicas could not be added after primary. Signed-off-by: Marc Handalian <handalm@amazon.com> - Updated TrackShardRequestHandler to send error case back to replicas. - Renamed additionalFiles to pendingDeleteFiles in TransportCheckpointInfoResponse. - Refactored Store.cleanupAndVerify methods to remove duplication. Signed-off-by: Marc Handalian <handalm@amazon.com>
- Loading branch information
Showing
12 changed files
with
324 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.