8000 Supported IDL-based service naming for application-level discovery: Fixes #15365 by somiljain2006 · Pull Request #15888 · apache/dubbo · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@somiljain2006
Copy link
@somiljain2006 somiljain2006 commented Dec 20, 2025

What is the purpose of the change?

This PR resolves service discovery failures in Dubbo IDL applications where the declared Protobuf package differs from the Java package. When explicitly enabled, Dubbo registers and discovers services using their original IDL interface name instead of the generated Java interface name. This maintains backward compatibility and aligns service discovery behavior with the IDL-based service definitions.

Fixes #15365

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 tests to verify your logic correction. If the new feature or significant change is committed, please remember to add a sample in the dubbo samples project.
  • Make sure GitHub actions can pass. Why the workflow is failing and how to fix it?

@somiljain2006 somiljain2006 changed the title Supported IDL-based service naming for application-level discovery: #15365 Supported IDL-based service naming for application-level discovery: Fixes #15365 Dec 20, 2025
@codecov-commenter
Copy link
codecov-commenter commented Dec 20, 2025

Codecov Report

❌ Patch coverage is 26.19048% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.75%. Comparing base (bc09177) to head (e1e305a).

Files with missing lines Patch % Lines
...in/java/org/apache/dubbo/config/ServiceConfig.java 0.00% 14 Missing and 1 partial ⚠️
.../java/org/apache/dubbo/config/ReferenceConfig.java 23.07% 8 Missing and 2 partials ⚠️
...ava/org/apache/dubbo/config/ServiceNameConfig.java 57.14% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                3.3   #15888      +/-   ##
============================================
- Coverage     60.68%   58.75%   -1.94%     
+ Complexity    11702       15   -11687     
============================================
  Files          1946     1947       +1     
  Lines         88701    88737      +36     
  Branches      13374    13381       +7     
============================================
- Hits          53831    52133    -1698     
- Misses        29356    30965    +1609     
- Partials       5514     5639     +125     
Flag Coverage Δ
integration-tests-java21 ?
integration-tests-java8 ?
samples-tests-java21 ?
samples-tests-java8 ?
unit-tests-java11 58.96% <26.19%> (-0.03%) ⬇️
unit-tests-java17 58.45% <26.19%> (-0.03%) ⬇️
unit-tests-java21 58.49% <26.19%> (+0.02%) ⬆️
unit-tests-java25 58.42% <26.19%> (-0.05%) ⬇️
unit-tests-java8 58.96% <26.19%> (-0.02%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@somiljain2006
Copy link
Author

I made sure that the change is fully gated by configuration and should not affect the default behavior. I think CI is enabling IDL mode implicitly or exercising a different application-level discovery path.

@somiljain2006
Copy link
Author

@zrlw @heliang666s Could you please review this and let me know if there are any adjustments I need to make?

@somiljain2006
Copy link
Author

Looking deeper into the CI failures, they seem to involve triple application-level discovery, which uses stub-based resolution and may implicitly rely on IDL service names. This discovery path differs from the default behavior and could explain why the issue surfaces only in these test cases.

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.

[Bug] Application-level service discovery fails when IDL package and java_package differ

3 participants

0