You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/11/01 07:12:15 UTC
[GitHub] [doris] morningman commented on a diff in pull request #13836: [fix](rpc) The proxy removed when rpc exception occurs is not an abnormal proxy
morningman commented on code in PR #13836:
URL: https://github.com/apache/doris/pull/13836#discussion_r1010147948
##########
fe/fe-core/src/main/java/org/apache/doris/rpc/BackendServiceProxy.java:
##########
@@ -64,7 +64,7 @@ private static class Holder {
}
static BackendServiceProxy get() {
- return proxies[count.addAndGet(1) % PROXY_NUM];
+ return proxies[Math.abs(count.addAndGet(1) % PROXY_NUM)];
Review Comment:
Why need `Math.abs`?
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org