-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
add ClusterRules LoadbalanceRules to dubbo common #7531 #7534
Conversation
dubbo-common/src/main/java/org/apache/dubbo/common/constants/ClusterRules.java
Show resolved
Hide resolved
dubbo-common/src/main/java/org/apache/dubbo/common/constants/ClusterRules.java
Outdated
Show resolved
Hide resolved
dubbo-common/src/main/java/org/apache/dubbo/common/constants/LoadbalanceRules.java
Show resolved
Hide resolved
Please merge the latest master branch into your branch and it can trigger github actions correctly. |
OK |
dubbo-common/src/main/java/org/apache/dubbo/config/annotation/Reference.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error: /home/runner/work/dubbo/dubbo/dubbo-common/src/main/java/org/apache/dubbo/config/annotation/Service.java:30:15: Unused import - org.apache.dubbo.common.constants.CommonConstants.DEFAULT_LOADBALANCE. [UnusedImports]
Error: /home/runner/work/dubbo/dubbo/dubbo-common/src/main/java/org/apache/dubbo/config/annotation/DubboService.java:30:15: Unused import - org.apache.dubbo.common.constants.CommonConstants.DEFAULT_LOADBALANCE. [UnusedImports]
please handle unused imports.
OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
fixed: #7531
add ClusterRules 、LoadbalanceRules for cluster and loadbalance properties。
We can user like
@DubboService(loadbalance = LoadbalanceRules.RANDOM,cluster = ClusterRules.FAIL_BACK)
It was like this before
@DubboService(loadbalance = "random",cluster = "failback")