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

Updates to segrep classes to mirror refactoring in main #2432

Conversation

kartg
Copy link
Member

@kartg kartg commented Mar 10, 2022

Description

This PR comprises two changes:

  1. The first updates the ReplicationRef class to mirror RecoveryRef and simply be an extension of GatedAutoCloseable.
  2. The second change removes the SegmentInfosRef class and replaces it with GatedCloseable wrapper. This is similar to the removal of the IndexCommitRef class.

Issues Resolved

closes #2202

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

kartg added 2 commits March 10, 2022 12:39
The class now simply extends GatedAutoCloseable and its constructor invokes the superclass.

Signed-off-by: Kartik Ganesh <[email protected]>
As with the now-deleted IndexCommitRef class, this wrapper class is not needed. It has been replaced with a GatedCloseable instance wrapping a SegmentInfos

Signed-off-by: Kartik Ganesh <[email protected]>
@kartg kartg requested a review from a team as a code owner March 10, 2022 21:00
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 20e3c64
Log 3233

Reports 3233

@kartg kartg merged commit 71dc3ac into opensearch-project:feature/segment-replication Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants