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
MergeableClusterInvoker处理超时会抛出异常而不是忽略超时结果 #1899
Comments
@feelwing1314 interested in firing a pull request to fix it? |
of course! I'll commit a pull request ASAP ! |
I don't think so. If I understand correctly, the grouping aggregation function is to combine the results of different groups (different implementations) according to certain rules[1]. Is it a problem if the execution results of a group are ignored? I think it's a reasonable implementation to throw an exception to make the user aware of the service problem as soon as possible. |
I am confused that
They are all generally ok. This feature is not often be used, take it easy. |
源码部分:
future.get(timeout, TimeUnit.MILLISECONDS);如果执行超时会抛出TimeoutException, 那么逻辑会走到throw new RpcException(.....),按照合并特性,这里应该是忽略部分Provider的异常;
修改建议:
将throw new RpcException(... ...);改为日志输出,并增加continue;如下所示:
The text was updated successfully, but these errors were encountered: