Skip to content

add ClusterRules LoadbalanceRules to dubbo common #7531#7534

Merged
AlbumenJ merged 5 commits intoapache:masterfrom
rockit-ba:constantAdd
Apr 16, 2021
Merged

add ClusterRules LoadbalanceRules to dubbo common #7531#7534
AlbumenJ merged 5 commits intoapache:masterfrom
rockit-ba:constantAdd

Conversation

@rockit-ba
Copy link
Copy Markdown

@rockit-ba rockit-ba commented Apr 12, 2021

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")

@rockit-ba rockit-ba closed this Apr 12, 2021
@rockit-ba rockit-ba reopened this Apr 12, 2021
@rockit-ba rockit-ba closed this Apr 12, 2021
@rockit-ba rockit-ba reopened this Apr 12, 2021
@AlbumenJ
Copy link
Copy Markdown
Member

Please merge the latest master branch into your branch and it can trigger github actions correctly.

@rockit-ba
Copy link
Copy Markdown
Author

Please merge the latest master branch into your branch and it can trigger github actions correctly.

OK

Copy link
Copy Markdown
Contributor

@xiaoheng1 xiaoheng1 left a 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.

@rockit-ba
Copy link
Copy Markdown
Author

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

Copy link
Copy Markdown
Contributor

@xiaoheng1 xiaoheng1 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

LGTM.

@rockit-ba rockit-ba requested a review from AlbumenJ April 13, 2021 12:30
@AlbumenJ AlbumenJ merged commit f8dd74f into apache:master Apr 16, 2021
AlbumenJ added a commit to AlbumenJ/dubbo that referenced this pull request May 28, 2021
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.

Suggestion:Constantize some configurations

4 participants