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

adds storage & query layer to events correlation engine #7350

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

sbcd90
Copy link
Contributor

@sbcd90 sbcd90 commented May 1, 2023

Description

adds hnsw graph based storage & query layer to events correlation engine

Related Issues

#6854

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

Gradle Check (Jenkins) Run Completed with:

@sbcd90 sbcd90 changed the title adds hnsw graph based storage & query layer to events correlation engine adds storage & query layer to events correlation engine May 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

codecov-commenter commented May 2, 2023

Codecov Report

Merging #7350 (e0f3388) into main (5dce570) will decrease coverage by 0.04%.
The diff coverage is 67.84%.

@@             Coverage Diff              @@
##               main    #7350      +/-   ##
============================================
- Coverage     70.93%   70.89%   -0.04%     
- Complexity    56633    56654      +21     
============================================
  Files          4719     4730      +11     
  Lines        267555   268006     +451     
  Branches      39206    39259      +53     
============================================
+ Hits         189778   189991     +213     
- Misses        61721    61983     +262     
+ Partials      16056    16032      -24     
Impacted Files Coverage Δ
...ch/plugin/correlation/EventsCorrelationPlugin.java 16.66% <0.00%> (+16.66%) ⬆️
...tion/core/index/codec/CorrelationCodecService.java 0.00% <0.00%> (ø)
...rrelation/core/index/mapper/VectorFieldMapper.java 44.06% <44.06%> (ø)
...ex/codec/BasePerFieldCorrelationVectorsFormat.java 60.00% <60.00%> (ø)
...tion/core/index/query/CorrelationQueryBuilder.java 70.99% <70.99%> (ø)
...tion/core/index/codec/CorrelationCodecVersion.java 77.77% <77.77%> (ø)
...rch/plugin/correlation/core/index/VectorField.java 80.00% <80.00%> (ø)
...rrelation/core/index/CorrelationParamsContext.java 87.23% <87.23%> (ø)
...tion/core/index/query/CorrelationQueryFactory.java 88.88% <88.88%> (ø)
...ore/index/mapper/CorrelationVectorFieldMapper.java 89.28% <89.28%> (ø)
... and 2 more

... and 466 files with indirect coverage changes

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@sbcd90
Copy link
Contributor Author

sbcd90 commented May 24, 2023

hi @andrross , rebased the pr. all the tests pass now.

Copy link
Member

@getsaurabh02 getsaurabh02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sbcd90 LGTM. Added few comments which seems non-blocking and can be addressed as follow-up.

Copy link
Member

@andrross andrross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good to me.

56.53% of diff hit (target 70.63%)

The code coverage target is a bit arbitrary but can we get better coverage here from the unit tests?

@andrross
Copy link
Member

@sbcd90 Just a friendly ping on my comments from last week.

@andrross
Copy link
Member

@sbcd90 Can you link the meta issue in the description as well and be sure to keep that issue up to date with your progress?

@sbcd90
Copy link
Contributor Author

sbcd90 commented May 31, 2023

hi @andrross , thanks a lot for the reminders. already looking into your comments.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.backpressure.SearchBackpressureIT.testSearchShardTaskCancellationWithHighCpu

@sbcd90
Copy link
Contributor Author

sbcd90 commented Jun 9, 2023

hi @andrross , improved the code coverage for patch to 67.66%. created a separate issue to improve the code coverage. #8120
addressed all review comments as well.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.indices.replication.SegmentReplicationIT.testReplicationPostDeleteAndForceMerge

@sbcd90
Copy link
Contributor Author

sbcd90 commented Jun 20, 2023

hi @andrross , thanks a lot for reviewing the pr again. addressed all the comments. please have a look.

Signed-off-by: Subhobrata Dey <sbcd90@gmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@sbcd90
Copy link
Contributor Author

sbcd90 commented Jun 20, 2023

hi @andrross , fixed it. #7350 (comment)
Addressed all the comments. please have a look.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.backpressure.SearchBackpressureIT.testSearchShardTaskCancellationWithHighCpu
      1 org.opensearch.action.admin.cluster.node.tasks.ResourceAwareTasksTests.testBasicTaskResourceTracking

@andrross andrross merged commit 84dffac into opensearch-project:main Jun 22, 2023
imRishN pushed a commit to imRishN/OpenSearch that referenced this pull request Jun 27, 2023
…ne (opensearch-project#7350)

Signed-off-by: Subhobrata Dey <sbcd90@gmail.com>
Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
sudarshan-baliga pushed a commit to Gaurav614/OpenSearch that referenced this pull request Jun 29, 2023
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…ne (opensearch-project#7350)

Signed-off-by: Subhobrata Dey <sbcd90@gmail.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants