Skip to content

[Backport 2.9] [BUG] ArrayIndexOutOfBoundsException for inconsistent detector index behavior #906

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

[Backport 2.9] [BUG] ArrayIndexOutOfBoundsException for inconsistent detector index behavior #906
goyamegh merged 1 commit into2.9from
backport/backport-843-to-2.9

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 25.76%. Comparing base (4f68164) to head (f00e44e).

Files Patch % Lines
...ics/transport/TransportCorrelateFindingAction.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.9     #906      +/-   ##
============================================
+ Coverage     25.74%   25.76%   +0.01%     
- Complexity      939      940       +1     
============================================
  Files           252      252              
  Lines         10746    10747       +1     
  Branches       1197     1197              
============================================
+ Hits           2767     2769       +2     
  Misses         7733     7733              
+ Partials        246      245       -1     

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

@goyamegh goyamegh merged commit 023107f into 2.9 Mar 12, 2024
@github-actions github-actions bot deleted the backport/backport-843-to-2.9 branch March 12, 2024 00:02
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