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][Remote Store] Remove commits when remote store is enabled #8050

Merged
merged 5 commits into from
Jul 18, 2023

Conversation

Poojita-Raj
Copy link
Contributor

@Poojita-Raj Poojita-Raj commented Jun 13, 2023

Description

Skips performing commits on replica shards that will bump segment generation and segments_n file, which could potentially cause segment conflicts during failover cases when remote store is enabled.

Additional changes:

  1. The lastCommittedSegmentInfos reference in NRTReplicationEngine is now updated since syncSegmentsFromRemoteSegmentStore directly calls store.commitSegmentInfos that doesn't take care of this.

Related Issues

Resolves #8027

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

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.remotestore.RemoteStoreIT.testStaleCommitDeletionWithInvokeFlush

@Poojita-Raj
Copy link
Contributor Author

Flaky test #8658

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.action.admin.cluster.node.tasks.ResourceAwareTasksTests.testBasicTaskResourceTracking

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.snapshots.DedicatedClusterSnapshotRestoreIT.testIndexDeletionDuringSnapshotCreationInQueue
      1 org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testDropPrimaryDuringReplication

Copy link
Member

@mch2 mch2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @Poojita-Raj

@mch2 mch2 added the backport 2.x Backport to 2.x branch label Jul 18, 2023
@mch2 mch2 merged commit 2f830be into opensearch-project:main Jul 18, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 18, 2023
…is enabled (#8050)

* remove commits + fix failing test

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix failing tests

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix precommit failure

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* remove logs

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* address review comments

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

---------

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
(cherry picked from commit 2f830be)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mch2 pushed a commit that referenced this pull request Jul 26, 2023
…is enabled (#8050)

* remove commits + fix failing test

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix failing tests

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix precommit failure

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* remove logs

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* address review comments

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

---------

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
(cherry picked from commit 2f830be)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mch2 pushed a commit that referenced this pull request Jul 26, 2023
…is enabled (#8050) (#8753)

* remove commits + fix failing test



* fix failing tests



* fix precommit failure



* remove logs



* address review comments



---------


(cherry picked from commit 2f830be)

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
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>
baba-devv pushed a commit to baba-devv/OpenSearch that referenced this pull request Jul 29, 2023
…is enabled (opensearch-project#8050)

* remove commits + fix failing test

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix failing tests

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix precommit failure

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* remove logs

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* address review comments

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

---------

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
kaushalmahi12 pushed a commit to kaushalmahi12/OpenSearch that referenced this pull request Sep 12, 2023
…is enabled (opensearch-project#8050)

* remove commits + fix failing test

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix failing tests

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix precommit failure

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* remove logs

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* address review comments

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

---------

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…is enabled (opensearch-project#8050)

* remove commits + fix failing test

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix failing tests

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* fix precommit failure

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* remove logs

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

* address review comments

Signed-off-by: Poojita Raj <poojiraj@amazon.com>

---------

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
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.

[Segment Replication] Remove replica commits when remote store is enabled.
4 participants