Skip to content
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

【fix】forking cluster #11063

Merged
merged 8 commits into from
Dec 14, 2022
Merged

【fix】forking cluster #11063

merged 8 commits into from
Dec 14, 2022

Conversation

zeusbee
Copy link
Contributor

@zeusbee zeusbee commented Dec 2, 2022

CompletableFuture + CountDownLatch 实现 ForkingClusterInvoker 调用provider
issue: #11052

for (final Invoker<T> invoker : selected) {
final CountDownLatch countDownLatch = new CountDownLatch(1);
AtomicReference<Object> result = new AtomicReference<>();
selected.forEach(invoker -> {
Copy link
Member

Choose a reason for hiding this comment

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

It looks like CompletableFuture.anyOf can satisfy this requirement.

Copy link
Member

Choose a reason for hiding this comment

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

i think so

Copy link
Contributor Author

Choose a reason for hiding this comment

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

need consider exception case
n provider first n-1 exceptions need to be ignored

@zeusbee zeusbee requested review from CrazyHZM and EarthChen and removed request for EarthChen and CrazyHZM December 5, 2022 15:25
@zeusbee zeusbee requested review from EarthChen and removed request for CrazyHZM December 6, 2022 14:28
@AlbumenJ AlbumenJ requested a review from CrazyHZM December 7, 2022 11:49
@CrazyHZM
Copy link
Member

CrazyHZM commented Dec 9, 2022

@XDanwar Please complete this section in the 3.2 branch.

@zeusbee
Copy link
Contributor Author

zeusbee commented Dec 10, 2022

@XDanwar Please complete this section in the 3.2 branch.

done

@zeusbee zeusbee changed the base branch from 3.1 to 3.2 December 10, 2022 06:42
@zeusbee zeusbee requested review from CrazyHZM and removed request for EarthChen December 10, 2022 06:43
@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2022

Codecov Report

Merging #11063 (70fa0a0) into 3.2 (f95e659) will decrease coverage by 0.06%.
The diff coverage is 90.90%.

@@             Coverage Diff              @@
##                3.2   #11063      +/-   ##
============================================
- Coverage     64.93%   64.86%   -0.07%     
  Complexity       14       14              
============================================
  Files          1462     1471       +9     
  Lines         60911    61244     +333     
  Branches       8937     8980      +43     
============================================
+ Hits          39551    39725     +174     
- Misses        17182    17315     +133     
- Partials       4178     4204      +26     
Impacted Files Coverage Δ
...bbo/rpc/cluster/support/ForkingClusterInvoker.java 85.71% <90.90%> (-2.39%) ⬇️
...center/initializer/UnpackZookeeperInitializer.java 42.55% <0.00%> (-34.05%) ⬇️
...ache/dubbo/qos/command/DefaultCommandExecutor.java 78.94% <0.00%> (-21.06%) ⬇️
...dubbo/common/status/support/LoadStatusChecker.java 41.66% <0.00%> (-16.67%) ⬇️
...apache/dubbo/rpc/protocol/dubbo/FutureAdapter.java 36.00% <0.00%> (-12.00%) ⬇️
...center/initializer/ConfigZookeeperInitializer.java 70.14% <0.00%> (-11.95%) ⬇️
...dubbo/qos/server/handler/TelnetProcessHandler.java 72.41% <0.00%> (-10.20%) ⬇️
...rpc/executor/AbstractIsolationExecutorSupport.java 55.00% <0.00%> (-10.00%) ⬇️
...che/dubbo/config/utils/DefaultConfigValidator.java 86.36% <0.00%> (-9.10%) ⬇️
...e/dubbo/qos/server/handler/HttpProcessHandler.java 80.95% <0.00%> (-7.94%) ⬇️
... and 74 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@zeusbee zeusbee requested review from EarthChen and removed request for CrazyHZM and EarthChen December 13, 2022 16:27
@zeusbee zeusbee requested a review from CrazyHZM December 13, 2022 16:28
Copy link
Member

@AlbumenJ AlbumenJ 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
Member

@CrazyHZM CrazyHZM left a comment

Choose a reason for hiding this comment

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

LGTM

@CrazyHZM CrazyHZM added this to the 3.2.0 milestone Dec 14, 2022
Copy link
Member

@EarthChen EarthChen left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

92.9% 92.9% Coverage
0.0% 0.0% Duplication

@CrazyHZM CrazyHZM merged commit 116263e into apache:3.2 Dec 14, 2022
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.

5 participants