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

Fix triple protocol for native image #15115

Open
wants to merge 6 commits into
base: 3.3
Choose a base branch
from

Conversation

CrazyHZM
Copy link
Member

@CrazyHZM CrazyHZM commented Feb 9, 2025

What is the purpose of the change?

Checklist

  • Make sure there is a GitHub_issue field for the change.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Make sure gitHub actions can pass. Why the workflow is failing and how to fix it?

@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Project coverage is 60.72%. Comparing base (dddeb25) to head (09d940e).
Report is 1 commits behind head on 3.3.

Files with missing lines Patch % Lines
.../aot/MetadataReflectionTypeDescriberRegistrar.java 0.00% 2 Missing ⚠️
.../metadata/aot/MetadataProxyDescriberRegistrar.java 0.00% 1 Missing ⚠️
.../dubbo/registry/client/metadata/MetadataUtils.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##                3.3   #15115   +/-   ##
=========================================
  Coverage     60.71%   60.72%           
- Complexity    10879    10906   +27     
=========================================
  Files          1884     1885    +1     
  Lines         86050    86060   +10     
  Branches      12893    12893           
=========================================
+ Hits          52249    52257    +8     
- Misses        28347    28352    +5     
+ Partials       5454     5451    -3     
Flag Coverage Δ
integration-tests 33.14% <63.63%> (+0.06%) ⬆️
samples-tests 29.34% <63.63%> (+0.15%) ⬆️
unit-tests 58.83% <63.63%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -176,7 +176,7 @@ public static RemoteMetadataService referMetadataService(ServiceInstance instanc
RemoteMetadataService remoteMetadataService;
ProxyFactory proxyFactory =
applicationModel.getExtensionLoader(ProxyFactory.class).getAdaptiveExtension();
if (useV2) {
if (useV2 && !inNativeImage) {
Copy link
Member

Choose a reason for hiding this comment

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

Why can't use v2 in native image here?

Copy link
Member Author

Choose a reason for hiding this comment

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

MetadataServiceV2 only supports nativestub proxy mode. This needs to be supported separately, and the original problem should be fixed first in this pr.

@AlbumenJ
Copy link
Member

image

@CrazyHZM
Copy link
Member Author

image

It doesn't seem to be about the change.

@CrazyHZM CrazyHZM requested a review from AlbumenJ February 19, 2025 14:15
Copy link
Contributor

@FoghostCn FoghostCn left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants