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 1.3] Fix metadata migration logic error when update setting call failed #330

Merged
merged 1 commit into from
Apr 17, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport f4a3938 from #328

@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team April 14, 2022 17:47
)

If update setting to 1 failed, runTimeCounter shouldn't be increased.
Otherwise it will increase to be larger than 10, and start to update
setting to -1 which is unwanted.

Signed-off-by: Bowen Lan <[email protected]>
(cherry picked from commit f4a3938)
@bowenlan-amzn bowenlan-amzn force-pushed the backport/backport-328-to-1.3 branch from c97f173 to 91ac87f Compare April 16, 2022 17:50
@codecov-commenter
Copy link

codecov-commenter commented Apr 16, 2022

Codecov Report

Merging #330 (91ac87f) into 1.3 (7f38a8e) will increase coverage by 0.26%.
The diff coverage is 53.84%.

@@             Coverage Diff              @@
##                1.3     #330      +/-   ##
============================================
+ Coverage     75.64%   75.90%   +0.26%     
- Complexity     2011     2014       +3     
============================================
  Files           253      253              
  Lines         11467    11473       +6     
  Branches       1815     1816       +1     
============================================
+ Hits           8674     8709      +35     
+ Misses         1763     1737      -26     
+ Partials       1030     1027       -3     
Impacted Files Coverage Δ
...management/indexstatemanagement/MetadataService.kt 64.06% <53.84%> (+6.68%) ⬆️
...earch/indexmanagement/transform/model/Transform.kt 85.65% <0.00%> (ø)
...nt/rollup/action/stop/TransportStopRollupAction.kt 72.09% <0.00%> (ø)
...nt/indexstatemanagement/ManagedIndexCoordinator.kt 73.12% <0.00%> (+0.62%) ⬆️
...exmanagement/opensearchapi/OpenSearchExtensions.kt 87.65% <0.00%> (+1.23%) ⬆️
...h/indexmanagement/util/IndexManagementException.kt 41.17% <0.00%> (+5.88%) ⬆️
...statemanagement/model/destination/CustomWebhook.kt 92.75% <0.00%> (+27.53%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f38a8e...91ac87f. Read the comment docs.

@bowenlan-amzn bowenlan-amzn merged commit b848421 into 1.3 Apr 17, 2022
@bowenlan-amzn bowenlan-amzn deleted the backport/backport-328-to-1.3 branch April 17, 2022 01:12
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