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.7] [BUG] ArrayIndexOutOfBoundsException for inconsistent detector index behavior #908

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 0ef8543 from #843

…behavior (#843)

* Catch ArrayIndexOutOfBoundsException when detector is missing

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

* Add a check on SearchHits.getHits() length

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

* Remove index out of bounds exception

Signed-off-by: Megha Goyal <goyamegh@amazon.com>

---------

Signed-off-by: Megha Goyal <goyamegh@amazon.com>
(cherry picked from commit 0ef8543)
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 28.06%. Comparing base (0c32858) to head (f9629c9).

Files Patch % Lines
...ics/transport/TransportCorrelateFindingAction.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.7     #908      +/-   ##
============================================
- Coverage     28.07%   28.06%   -0.02%     
+ Complexity      895      894       -1     
============================================
  Files           231      231              
  Lines          9336     9337       +1     
  Branches       1074     1074              
============================================
- Hits           2621     2620       -1     
- Misses         6480     6481       +1     
- Partials        235      236       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@goyamegh goyamegh merged commit 044d6fb into 2.7 Mar 12, 2024
9 of 15 checks passed
@github-actions github-actions bot deleted the backport/backport-843-to-2.7 branch March 12, 2024 00:01
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.

None yet

2 participants