HarshMehta112 opened a new pull request, #3478:
URL: https://github.com/apache/dubbo-go/pull/3478
Fixes #3453
### Description
#### 6. Forking cluster cancels losing parallel branches
`cluster/cluster/forking/cluster_invoker.go`
Losing parallel invocations ran to completion after the winner returned,
wasting downstream
work. Derived a cancelable `forkCtx`; `defer cancel()` stops sibling
requests as soon as the
first accepted result wins.
### Tests
- `TestForkingInvokeCancelsLosingBranches` — loser branch ctx canceled
after winner succeeds
### Checklist
- [x] I confirm the target branch is `develop`
- [x] Code has passed local testing
- [x] I have added tests that prove my fix is effective or that my feature
works
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]