-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
Dubbo 3.2.0 broadcast + injvm not work as expected #12334
Comments
@PhoenixBackendon PTAL |
I see what you mean. The current solution is configured as forced remote in the settings, which should be able to solve it, or we can provide a rule to adapt to the requirements based on this broadcasting mechanism, and I will finish it later. |
https://github.com/PhoenixBackendon/dubbo/blob/35da167f6a921f9c0c0799b807442f72d0fefaff/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/support/wrapper/ScopeClusterInvoker.java#L132 |
I completely agree with your point. Although the Dubbo logger is configuration-based and not all underlying loggers support placeholder-style value assignment, Dubbo currently only supports logger.debug(String message) instead of logger.debug(String message, Object... params) for logging. I suggest adding a conversion layer in the logger to enable placeholder-style logging, which would better align with elegant logging practices. This improvement would not only enhance code readability and maintainability but also provide greater flexibility and extensibility in logging. I propose that we create an issue to discuss and implement this enhancement. |
Environment
Steps to reproduce this issue
We have 3 microservices, referred to as
A
,B
, andC
.Each service contains the above code.
But, just
C
has a@DubboReference
to the interface only.Expected Behavior
Call ALL implementations in ALL microservices.
Actual Behavior
However, since there is a service implementation of the interface in the same application (
C
),Dubbo will use the
injvm
protocol. Only the service implementation located inC
will be invoked.Same issue with #6842 , however, it came back again.
The text was updated successfully, but these errors were encountered: