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

[Backport 2.x] [Segment Replication] Update RefreshPolicy.WAIT_UNTIL for replica shards with segment replication enabled to wait for replica refresh #6612

Closed
wants to merge 1 commit into from

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport e8a4210 from #6464.

…rds with segment replication enabled to wait for replica refresh (#6464)

* Initial draft PR for wait_until with segrep

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Refactor code and fix test failures.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* add comments and fix tests.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Refactor code, address comments and fix test failures.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Aplly spotless check

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Adress comments and add integ test.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Address comments and fix failing tests.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Fixing failing test.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Remove unused code.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Addressing comments and refactoring

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Adding max refreshlisteners limit that a replica shard can hold and force refresh.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Changing assert message

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Fix call to release refresh listeners on replica shards.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Fix call to release refresh listeners on replica shards.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Address comments.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Fixing compile errors.

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

* Spoltss Apply

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>

---------

Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>
(cherry picked from commit e8a4210)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@andrross
Copy link
Member

The commit to main have been reverted (#6622) so I'm closing this PR

@andrross andrross closed this Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants