-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Refactor] Replace some boost to std in OlapScanNode #3934
Conversation
@@ -186,9 +185,9 @@ Status OlapScanNode::get_next(RuntimeState* state, RowBatch* row_batch, bool* eo | |||
|
|||
// check if Canceled. | |||
if (state->is_cancelled()) { | |||
boost::unique_lock<boost::mutex> l(_row_batches_lock); | |||
std::unique_lock<std::mutex> l(_row_batches_lock); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use util/condition_variable.h.
It comes from kudu, it's use is simple than std::
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is only try to solve the BE crash problem and I don't want to introduce any new potential problems.
I can't see any necessary to replace the std::condition_variable
with ConditionVariable
. If it is,
maybe we can replace all std::condition_variable
in another PR.
Replace some boost to std in OlapScanNode. This refactor seems solve the problem describe in apache#3929. Because I found that BE will crash to calling `boost::condition_variable.notify_all()`. But after upgrade to this, BE does not crash any more. Change-Id: I4baeeb6e76ecc751cb042796d52692d79432994e
Replace some boost to std in OlapScanNode. This refactor seems solve the problem describe in apache#3929. Because I found that BE will crash to calling `boost::condition_variable.notify_all()`. But after upgrade to this, BE does not crash any more.
Replace some boost to std in OlapScanNode.
This refactor seems solve the problem describe in #3929.
Because I found that BE will crash to calling
boost::condition_variable.notify_all()
.But after upgrade to this, BE does not crash any more.