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 segments] Add backpressure in write path on segments lag between local and remote store #7459

Merged
merged 11 commits into from
May 22, 2023

Conversation

ashking94
Copy link
Member

@ashking94 ashking94 commented May 8, 2023

Description

Wires the code written in PR #7227 and #7400 to the write path. With this PR, we are doing the following -

  1. Integrated tracker with RemoteStoreRefreshListener class.
  2. Integrated RemoteRefreshSegmentPressureService with TransportShardBulkAction class. This handles the rejection if the lag is beyond certain fixed and dynamic limits.

Related Issues

Resolves #7424

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 May 8, 2023

Gradle Check (Jenkins) Run Completed with:

@ashking94
Copy link
Member Author

Fixing the build failures.

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Gradle Check (Jenkins) Run Completed with:

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

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

codecov-commenter commented May 8, 2023

Codecov Report

Merging #7459 (077aa99) into main (6d9c82f) will increase coverage by 0.00%.
The diff coverage is 73.75%.

@@            Coverage Diff            @@
##               main    #7459   +/-   ##
=========================================
  Coverage     70.68%   70.68%           
+ Complexity    56024    56018    -6     
=========================================
  Files          4673     4673           
  Lines        265744   265818   +74     
  Branches      39024    39034   +10     
=========================================
+ Hits         187832   187899   +67     
+ Misses        62020    62005   -15     
- Partials      15892    15914   +22     
Impacted Files Coverage Δ
...rg/opensearch/common/settings/ClusterSettings.java 92.85% <ø> (ø)
...c/main/java/org/opensearch/index/IndexService.java 74.04% <ø> (-0.46%) ⬇️
...x/remote/RemoteRefreshSegmentPressureSettings.java 94.44% <ø> (-5.56%) ⬇️
...ain/java/org/opensearch/indices/IndicesModule.java 96.46% <0.00%> (-1.74%) ⬇️
...ensearch/action/bulk/TransportShardBulkAction.java 76.23% <14.28%> (+0.64%) ⬆️
...ex/remote/RemoteRefreshSegmentPressureService.java 77.50% <25.00%> (-4.65%) ⬇️
...ch/indices/cluster/IndicesClusterStateService.java 68.45% <33.33%> (-5.99%) ⬇️
...arch/index/remote/RemoteRefreshSegmentTracker.java 88.65% <63.63%> (+0.23%) ⬆️
...in/java/org/opensearch/index/shard/IndexShard.java 70.10% <66.66%> (+0.03%) ⬆️
...search/index/shard/RemoteStoreRefreshListener.java 84.95% <83.20%> (+3.39%) ⬆️
... and 1 more

... and 431 files with indirect coverage changes

@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: Ashish Singh <[email protected]>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

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

Copy link
Collaborator

@gbbafna gbbafna left a comment

Choose a reason for hiding this comment

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

Looks good overall . Thanks for making these changes. Few minor comments.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@ashking94
Copy link
Member Author

Gradle Check (Jenkins) Run Completed with:

Unrelated IT failure - IndexingIT.testIndexingWithSegRep

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@ashking94
Copy link
Member Author

Gradle Check (Jenkins) Run Completed with:

some code came in unintentionally, removing it.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Ashish Singh <[email protected]>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@gbbafna gbbafna merged commit 63834d9 into opensearch-project:main May 22, 2023
bharath-techie pushed a commit to bharath-techie/OpenSearch that referenced this pull request May 23, 2023
…een local and remote store (opensearch-project#7459)

Signed-off-by: Ashish Singh <[email protected]>
Signed-off-by: Bharathwaj G <[email protected]>
ashking94 added a commit to ashking94/OpenSearch that referenced this pull request May 24, 2023
ashking94 added a commit to ashking94/OpenSearch that referenced this pull request May 24, 2023
gbbafna pushed a commit that referenced this pull request May 24, 2023
…een local and remote store (#7459) (#7720)

Signed-off-by: Ashish Singh <[email protected]>
suranjay pushed a commit to suranjay/OpenSearch that referenced this pull request May 29, 2023
stephen-crawford pushed a commit to stephen-crawford/OpenSearch that referenced this pull request May 31, 2023
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…een local and remote store (opensearch-project#7459)

Signed-off-by: Ashish Singh <[email protected]>
Signed-off-by: Shivansh Arora <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Storage:Durability Issues and PRs related to the durability framework v2.8.0 'Issues and PRs related to version v2.8.0'
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Remote Segments] Add backpressure in the write path on segments lag between remote store and local store
5 participants