Skip to content

fix bug lazy client share_executor is null#9701

Merged
AlbumenJ merged 1 commit intoapache:masterfrom
owen200008:lazy_client_sharedexecutor_is_null
Feb 25, 2022
Merged

fix bug lazy client share_executor is null#9701
AlbumenJ merged 1 commit intoapache:masterfrom
owen200008:lazy_client_sharedexecutor_is_null

Conversation

@owen200008
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants