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.x] Handle NPE in isRollupIndex #871

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 05bc0d5 from #855.

* Handle NPE in isRollupIndex

`metadata.index()` can return `null`, so handle that case by returning
`false`.

Signed-off-by: Bryce Lampe <[email protected]>

* unit test

Signed-off-by: Bryce Lampe <[email protected]>

---------

Signed-off-by: Bryce Lampe <[email protected]>
Co-authored-by: bowenlan-amzn <[email protected]>
(cherry picked from commit 05bc0d5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Merging #871 (b6e6fb7) into 2.x (a7dc8c2) will decrease coverage by 0.02%.
The diff coverage is 80.00%.

@@             Coverage Diff              @@
##                2.x     #871      +/-   ##
============================================
- Coverage     76.06%   76.05%   -0.02%     
- Complexity     2908     2912       +4     
============================================
  Files           366      366              
  Lines         16558    16561       +3     
  Branches       2397     2398       +1     
============================================
  Hits          12595    12595              
- Misses         2582     2584       +2     
- Partials       1381     1382       +1     
Impacted Files Coverage Δ
...nsearch/indexmanagement/rollup/util/RollupUtils.kt 82.00% <80.00%> (+0.21%) ⬆️

... and 12 files with indirect coverage changes

@AWSHurneyt AWSHurneyt merged commit ba1ba44 into 2.x Jul 28, 2023
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants