Skip to content

[Backport 2.x] Experimental gRPC transport plugin#16954

Merged
andrross merged 1 commit intoopensearch-project:2.xfrom
finnegancarroll:backport/backport-16534-to-2.x
Jan 7, 2025
Merged

[Backport 2.x] Experimental gRPC transport plugin#16954
andrross merged 1 commit intoopensearch-project:2.xfrom
finnegancarroll:backport/backport-16534-to-2.x

Conversation

@finnegancarroll
Copy link
Copy Markdown
Contributor

@finnegancarroll finnegancarroll commented Jan 6, 2025

Backport 7a0e8fb from #16534.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 6, 2025

✅ Gradle check result for c5add5f: SUCCESS

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 64.19753% with 58 lines in your changes missing coverage. Please review.

Project coverage is 71.86%. Comparing base (36a02a1) to head (7bbe9bd).
Report is 4 commits behind head on 2.x.

Files with missing lines Patch % Lines
...arch/transport/grpc/Netty4GrpcServerTransport.java 73.40% 18 Missing and 7 partials ⚠️
...c/main/java/org/opensearch/bootstrap/Security.java 0.00% 12 Missing ⚠️
...a/org/opensearch/common/network/NetworkModule.java 25.00% 10 Missing and 2 partials ⚠️
...java/org/opensearch/transport/grpc/GrpcPlugin.java 0.00% 4 Missing ⚠️
...g/opensearch/http/AbstractHttpServerTransport.java 33.33% 3 Missing and 1 partial ⚠️
...in/java/org/opensearch/transport/TcpTransport.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #16954      +/-   ##
============================================
- Coverage     71.89%   71.86%   -0.04%     
+ Complexity    65511    65502       -9     
============================================
  Files          5314     5316       +2     
  Lines        305467   305588     +121     
  Branches      44509    44516       +7     
============================================
- Hits         219615   219596      -19     
- Misses        67545    67688     +143     
+ Partials      18307    18304       -3     

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 6, 2025

✅ Gradle check result for c5add5f: SUCCESS

@finnegancarroll
Copy link
Copy Markdown
Contributor Author

@andrross @reta

andrross
andrross previously approved these changes Jan 6, 2025
@andrross andrross dismissed their stale review January 6, 2025 20:02

Looks like the 19 commits from the original PR were brought in, as opposed to cherry picking the merged commit. Probably doesn't matter in practice but I'd prefer to cherry pick the actual merged commit and resolve conflicts.

@finnegancarroll finnegancarroll force-pushed the backport/backport-16534-to-2.x branch from c5add5f to 0a7bade Compare January 6, 2025 21:09
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 6, 2025

❌ Gradle check result for 0a7bade: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Introduce auxiliary transport to NetworkPlugin and add gRPC plugin.

Auxiliary transports are optional lifecycle components provided by
network plugins which run in parallel to the http server/native
transport. They are distinct from the existing NetworkPlugin
interfaces of 'getTransports' and 'getHttpTransports' as auxiliary
transports are optional. Each AuxTransport implements it's own
'aux.transport.type' and 'aux.transport.<type>.ports' setting. Since
Security.java initializes previous to Node.java during bootstrap
socket binding permissions are granted based on
'aux.transport.<type>.ports' for each enabled 'aux.transport.type',
falling back to a default if no ports are specified.

Signed-off-by: Finn Carroll <carrofin@amazon.com>
(cherry picked from commit 7a0e8fb)
@finnegancarroll finnegancarroll force-pushed the backport/backport-16534-to-2.x branch from 0a7bade to 7bbe9bd Compare January 6, 2025 21:25
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 6, 2025

❌ Gradle check result for 7bbe9bd: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@finnegancarroll
Copy link
Copy Markdown
Contributor Author

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 7, 2025

✅ Gradle check result for 7bbe9bd: SUCCESS

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