-
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.
Fix Segment Replication integ tests (#2637)
* Fix Segment replication integ tests by using a single BackgroundIndexer. BackgroundIndexers begin indexing docs with a docId of 0 up to the requested numDocs. Using two overlapped the docIds so counts were incorrect. This changes our tests to use a single indexer, it also improves assertions on segment data on both shards. Signed-off-by: Marc Handalian <[email protected]> * Fix Index shards to correctly compare checkpoint version instead of segment gen when determining if a received checkpoint should be processed. Without this change replicas will ignore checkpoints for merges. Signed-off-by: Marc Handalian <[email protected]> * Updated based on PR feedback. Rename latestUnprocessedCheckpoint to latestReceivedCheckpoint. Remove redundant checkpoint variable in onNewCheckpoint. Rename isValidCheckpoint to shouldProcessCheckpoint. Add missing isAheadOf check to shouldProcessCheckpoint. Update SegmentReplicationIT's assertSegmentStats to be more readable. Removed latest seqNo hack. Signed-off-by: Marc Handalian <[email protected]> Signed-off-by: Rishikesh1159 <[email protected]>
- Loading branch information
1 parent
128440b
commit 2254176
Showing
9 changed files
with
251 additions
and
83 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
Oops, something went wrong.