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.1] Handling OpenSearchRejectExecuteException Exception (#1004) #1023

Conversation

sricharanvuppu
Copy link
Member

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

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

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.

sricharanvuppu and others added 2 commits June 28, 2023 16:04
…ct#1004)

* Handling OpenSearchRejectExecuteException Exception
* introduced writersPerShard setting.

Signed-off-by: sricharanvuppu <[email protected]>
(cherry picked from commit 448e7a7)
Signed-off-by: sricharanvuppu <[email protected]>
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #1023 (a2fba35) into 2.1 (05bf0a2) will increase coverage by 6.58%.
Report is 1 commits behind head on 2.1.
The diff coverage is 68.57%.

❗ Current head a2fba35 differs from pull request most recent head 0b257be. Consider uploading reports for the commit 0b257be to get more accurate results

@@             Coverage Diff              @@
##                2.1    #1023      +/-   ##
============================================
+ Coverage     69.83%   76.41%   +6.58%     
- Complexity      956     1037      +81     
============================================
  Files           141      141              
  Lines          4674     4707      +33     
  Branches        519      525       +6     
============================================
+ Hits           3264     3597     +333     
+ Misses         1079      778     -301     
- Partials        331      332       +1     
Files Coverage Δ
...in/org/opensearch/replication/ReplicationPlugin.kt 91.78% <100.00%> (+0.87%) ⬆️
.../org/opensearch/replication/ReplicationSettings.kt 100.00% <100.00%> (ø)
...on/resume/TransportResumeIndexReplicationAction.kt 86.95% <100.00%> (+1.04%) ⬆️
...ication/seqno/RemoteClusterRetentionLeaseHelper.kt 72.44% <100.00%> (ø)
...rch/replication/task/shard/ShardReplicationTask.kt 75.18% <100.00%> (+1.45%) ⬆️
...org/opensearch/replication/ReplicationException.kt 11.11% <20.00%> (-3.18%) ⬇️
...tlin/org/opensearch/replication/util/Extensions.kt 68.13% <58.33%> (-2.11%) ⬇️
...search/replication/task/shard/TranslogSequencer.kt 78.46% <66.66%> (-7.91%) ⬇️

... and 39 files with indirect coverage changes

var highWatermark = initialSeqNo
for (m in channel) {
rateLimiter.acquire()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should not be here, can you move it to before the while statement.

@monusingh-1 monusingh-1 enabled auto-merge (squash) October 4, 2023 07:11
@monusingh-1 monusingh-1 merged commit 9dca428 into opensearch-project:2.1 Oct 4, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants