-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
ServiceConfig duplicate export produces misleading exception #3629
Comments
sure this exception is misleading,do you have any idea to improve this? |
I do have some ideas after reviewing the source code of First, the existing implementation by using two variables for controlling Secondly, the Okay, there's not "last but not least". I'll suggest to introduce the following changes:
|
could you pls send a pr about your suggestion? |
I'll try to work out a PR for this issue this evening. @kexianjun |
I think PR 3629 doesn't catch the reason. I submit a new pr for the problem. |
I mistakenly exported
ServiceConfig
twice, the second call produces the following exception which makes no sense:It took me at least one hour to locate the root cause.
Dubbo version: 2.7.0
I've crafted a demo for this issue at this repo.
The text was updated successfully, but these errors were encountered: