We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug 当多线程环境下添加EventProcessor时,会报数组越界异常
当多线程环境下调用com.alipay.remoting.rpc.RpcClient#addConnectionEventProcessor 应该正常添加
当多线程环境下调用com.alipay.remoting.rpc.RpcClient#addConnectionEventProcessor 报数组越界异常
com.alipay.remoting.ConnectionEventListener#addConnectionEventProcessor ArrayList不是线程安全的
java -version
uname -a
The text was updated successfully, but these errors were encountered:
Looks like not considered concurrency,can you fix it?
Sorry, something went wrong.
has fixed by #321
PR #321 's unit test can not reproduce the bug. So i wonder there may be other bugs in this situation.
Successfully merging a pull request may close this issue.
Describe the bug
当多线程环境下添加EventProcessor时,会报数组越界异常
Expected behavior
当多线程环境下调用com.alipay.remoting.rpc.RpcClient#addConnectionEventProcessor 应该正常添加
Actual behavior
当多线程环境下调用com.alipay.remoting.rpc.RpcClient#addConnectionEventProcessor 报数组越界异常
Steps to reproduce
Minimal yet complete reproducer code (or GitHub URL to code)
com.alipay.remoting.ConnectionEventListener#addConnectionEventProcessor
ArrayList不是线程安全的
Environment
java -version
):1.8uname -a
):windowsThe text was updated successfully, but these errors were encountered: