Skip to content

[Backport 2.7] [BUG] ArrayIndexOutOfBoundsException for inconsistent detector index behavior #908

Merged
goyamegh merged 1 commit into2.7from
backport/backport-843-to-2.7
Mar 12, 2024
Merged

[Backport 2.7] [BUG] ArrayIndexOutOfBoundsException for inconsistent detector index behavior #908
goyamegh merged 1 commit into2.7from
backport/backport-843-to-2.7

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
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)
@codecov
Copy link
Copy Markdown

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
@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.

2 participants