-
Notifications
You must be signed in to change notification settings - Fork 403
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
brpc exception, serviceInterface must not be set repeatedly, please use another RpcClient #37
Comments
我也遇到了 |
想用到产品里 遇到这个问题 有点不敢用了 |
+1,有进展了吗,单条写没问题,一次多条就报错了,具体能多少也不固定,有时候能一次写10条,有时候4个就开始报这个错了。 现在一次一条太连续也不行了,得隔十几秒。 |
我发现楼主和其他人已经提了对这个问题的PR #38 #24 ,但是作者并没有进一步合并。 这个问题的关键在于ExampleServiceImpl.java的这里
这里会在每一次有用户set请求时,使用leaderRpcClient生成一个新的ExampleService实例。但是对于同一个RpcClient对象来说,多次使用BrpcProxy.getProxy生成新的Service实例是不被brpc-java允许的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述:遇到了和 #23 描述的情况,当客户端发起顺序/并发写请求时报错
问题复现:
使用如下代码测试写功能会报错:
异常如下:
The text was updated successfully, but these errors were encountered: