-
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] Added source-side classes for orchestrating replication events #3470
Commits on Jun 1, 2022
-
Added CopyState class and relevant downstream methods
Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 912d997 - Browse repository at this point
Copy the full SHA 912d997View commit details -
Add PrimaryShardReplicationSource as an implementation of SegmentRepl…
…icationSource Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f362d44 - Browse repository at this point
Copy the full SHA f362d44View commit details -
Change SegmentReplicationSourceFactory to create a PrimaryShardReplic…
…ationSource instance as the implementation Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 36b4fb1 - Browse repository at this point
Copy the full SHA 36b4fb1View commit details -
Added the SegmentReplicationSourceService service class
CopyState has closeInternal now implemented and includes a new getter that is used by the service class. The Action definitions have been moved from the ReplicationSource class to the service class. Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f72aa14 - Browse repository at this point
Copy the full SHA f72aa14View commit details -
Added SegmentReplicationTransportRequest and its two concrete subclasses
PrimaryShardReplicationSource has been updated to wire in these classes. Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2e3f243 - Browse repository at this point
Copy the full SHA 2e3f243View commit details -
Added unit tests for PrimaryShardReplicationSource
Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b874d01 - Browse repository at this point
Copy the full SHA b874d01View commit details -
Added request handlers to SegmentReplicationSourceService
Also added an IndicesService member since this is needed to resolve the IndexShard from incoming shardId. Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 83a47a5 - Browse repository at this point
Copy the full SHA 83a47a5View commit details -
Refactoring argument order to avoid confusion between source and targ…
…et DiscoveryNodes Also updated variable naming to try and be consistent. Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d5b85fe - Browse repository at this point
Copy the full SHA d5b85feView commit details -
Classes updated: * InternalEngineTests * IndexShardTests * StoreTests Also added EngineConfigTests to test the read-only engine use-case with seg-rep Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 005e403 - Browse repository at this point
Copy the full SHA 005e403View commit details -
Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2227f45 - Browse repository at this point
Copy the full SHA 2227f45View commit details -
Added a unit test for CopyState
Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6ecb560 - Browse repository at this point
Copy the full SHA 6ecb560View commit details -
Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1a2c70b - Browse repository at this point
Copy the full SHA 1a2c70bView commit details -
Added tests for SegmentReplicationSourceService
This includes refactoring CopyStateTests for code reuse. Also fixed CopyStateTests since these were failing. Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for caca533 - Browse repository at this point
Copy the full SHA caca533View commit details
Commits on Jun 2, 2022
-
Removing default implementation of getProcessedLocalCheckpoint
This now requires implementations in child classes. NRTReplicationEngine already has an implementation, so an @OverRide annotation has been added. For ReadOnlyEngine, where no processing occurs, the processed local checkpoint is expected to be equal to the persisted local checkpoint. Unit test for ReadOnlyEngine have been updated. Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 91372c6 - Browse repository at this point
Copy the full SHA 91372c6View commit details -
Made the javadoc for getSegmentInfosSnapshot() better
Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7075793 - Browse repository at this point
Copy the full SHA 7075793View commit details
Commits on Jun 3, 2022
-
Incorporating PR feedback on javadocs
Signed-off-by: Kartik Ganesh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 71e66de - Browse repository at this point
Copy the full SHA 71e66deView commit details