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

[Segment Replication] Cancellation check before send files to prevent… #7053

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

dreamer-89
Copy link
Member

@dreamer-89 dreamer-89 commented Apr 7, 2023

… segrep round

Description

Cancel segment replication when shard not in primary mode. This ensures that shards not in primary mode and cancelled on source by respective event listeners should not proceed with next steps on segment replication.

Issues Resolved

Resolves #6778

Alternative

Run sequential code block inside cancellableThreads.execute() which can be interrupted on shard changes. This will need little more refactoring and thought around resource handling (close operations etc), we can take this up as follow up.

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
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 7, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.indices.replication.SegmentReplicationIT.testScrollCreatedOnReplica

@dreamer-89 dreamer-89 merged commit df5def4 into opensearch-project:main Apr 11, 2023
@dreamer-89 dreamer-89 added the backport 2.x Backport to 2.x branch label Apr 11, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 11, 2023
… segrep round (#7053)

Signed-off-by: Suraj Singh <[email protected]>
(cherry picked from commit df5def4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dreamer-89 pushed a commit that referenced this pull request Apr 11, 2023
… segrep round (#7053) (#7112)

(cherry picked from commit df5def4)

Signed-off-by: Suraj Singh <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] [Segment Replication] testRelocateWhileContinuouslyIndexingAndWaitingForRefresh flaky test failure
3 participants