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

bugfix: teracli exit will core #737

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

caijieming-ng
Copy link
Collaborator

No description provided.

@baidubot
Copy link
Collaborator

Reviewers: @taocp @bluebore

@caijieming-ng
Copy link
Collaborator Author

#735
在析构teraclient时,保证调用rpc client的shutdown接口,保证rpc所有后台线程都退出;

@@ -19,6 +19,10 @@ void TabletNodeClient::SetRpcOption(int32_t max_inflow, int32_t max_outflow,
pending_buffer_size, thread_num);
}

void TabletNodeClient::Shutdown() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RpcClientBase是TabletNodeClient和MasterClient共享的,所以这么改并不合适,实际上上面的SetRpcOption函数也没有存在的意义,正确的做法是直接调RpcClientBase::SetOption和RpcClientBase::Shutdown

@taocp
Copy link
Collaborator

taocp commented Jan 27, 2016

哈哈,建议先把这个版本给报问题的用户试试,没问题的话再评论。

@bluebore
Copy link
Collaborator

bluebore commented Mar 3, 2016

这个有进展么

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.

5 participants