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
执行需要合并结果集的语句,当并发量大时,偶尔出现Java.lang.NullPointerException
多个并发执行时,同一个前端连接会出现下面的并发释放资源冲突问题:
sql1---> outputMergeResult-->source.write 回包给客户端-->dataMergeSvr.clear(); ---> sql2--->execute()-->clearResources()清理之前的旧资源-->dataMergeSvr.clear();
从上面可以看出,会有2个线程同时执行 dataMergeSvr.clear(),存在明显的并发问题。
加锁,规避并发问题。 参考https://my.oschina.net/u/3736786/blog/3221601, 感谢提供解决方法的同学。
The text was updated successfully, but these errors were encountered:
Merge pull request #2592 from funnyAnt/#2588
94ddee0
#2588 合并结果集时,偶现NPE异常
关闭
Sorry, something went wrong.
No branches or pull requests
问题
执行需要合并结果集的语句,当并发量大时,偶尔出现Java.lang.NullPointerException
原因分析
多个并发执行时,同一个前端连接会出现下面的并发释放资源冲突问题:
从上面可以看出,会有2个线程同时执行 dataMergeSvr.clear(),存在明显的并发问题。
解决方案
加锁,规避并发问题。 参考https://my.oschina.net/u/3736786/blog/3221601,
感谢提供解决方法的同学。
The text was updated successfully, but these errors were encountered: