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

[Remote Store] Add Lock Manager in Remote Segment Store to persist data #6787

Merged
merged 5 commits into from
May 11, 2023

Conversation

harishbhakuni
Copy link
Contributor

@harishbhakuni harishbhakuni commented Mar 22, 2023

… for longer duration.

Description

Changes for Lock Manager in Remote Segment Store to keep data for longer duration and prevent their deletion from Garbage Collection.
Manually Tested Feature End to end on an opensearch cluster.

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)

Issues Resolved

#6691
#6688

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:

  • RESULT: null ❌
  • URL: null
  • CommitID: b4e361c
    Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green.
    Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2023

Gradle Check (Jenkins) Run Completed with:

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

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2023

Gradle Check (Jenkins) Run Completed with:

Copy link
Collaborator

@sohami sohami left a comment

Choose a reason for hiding this comment

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

Few minor comments, otherwise LGTM. Can you also please create the tracking issues for:
a) race condition discussed here
b) monitor to catch any leaked lock files for which metadata file is not present

@harishbhakuni
Copy link
Contributor Author

Few minor comments, otherwise LGTM. Can you also please create the tracking issues for:
a) race condition discussed #6787 (comment)
b) monitor to catch any leaked lock files for which metadata file is not present

Created Issues to track: #7500 #7501

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Harish Bhakuni added 5 commits May 10, 2023 21:04
Signed-off-by: Harish Bhakuni <hbhakuni@amazon.com>
Signed-off-by: Harish Bhakuni <hbhakuni@amazon.com>
Signed-off-by: Harish Bhakuni <hbhakuni@amazon.com>
Signed-off-by: Harish Bhakuni <hbhakuni@amazon.com>
Signed-off-by: Harish Bhakuni <hbhakuni@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.remotestore.SegmentReplicationRemoteStoreIT.testScrollWithOngoingSegmentReplication
      1 org.opensearch.cluster.allocation.AwarenessAllocationIT.testThreeZoneOneReplicaWithForceZoneValueAndLoadAwareness

@gbbafna gbbafna merged commit 20ad1d8 into opensearch-project:main May 11, 2023
@gbbafna gbbafna added the backport 2.x Backport to 2.x branch label May 11, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 11, 2023
…ta (#6787)

Signed-off-by: Harish Bhakuni <hbhakuni@amazon.com>
(cherry picked from commit 20ad1d8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
gbbafna pushed a commit that referenced this pull request May 15, 2023
…ta (#6787) (#7517)

(cherry picked from commit 20ad1d8)

Signed-off-by: Harish Bhakuni <hbhakuni@amazon.com>
public void close() throws IOException {

try (final BytesStreamOutput outStream = out; InputStream stream = out.bytes().streamInput()) {
indexOutputBuffer.close();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should indexOutputBuffer.close(); be in the finally block?

shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…ta (opensearch-project#6787)

Signed-off-by: Harish Bhakuni <hbhakuni@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.

6 participants