Skip to content
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

fix bug lazy client share_executor is null #9701

Merged

Conversation

owen200008
Copy link
Contributor

What is the purpose of the change

fix bug lazy client ThreadlessExecutor.sharedExecutor is null error

发现的现象:
lazy模式的dubboreference第一次调用不会返回直到超时(实际数据已经很快返回收到)

问题点:
ThreadlessExecutor.execute函数,waiting = false,所以sharedExecutor is null 报空指针

原因分析:
lazy模式ThreadlessExecutor先创建,后Exchangers.connect导致(因为线程创建在AbstractClient的构造函数initExecutor)

@owen200008
Copy link
Contributor Author

dubbo版本 2.7.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants