Skip to content

[fix](thread) catch exception of std::thread#13984

Merged
yiguolei merged 2 commits intoapache:branch-1.1-ltsfrom
dataroaring:thread_fix
Nov 7, 2022
Merged

[fix](thread) catch exception of std::thread#13984
yiguolei merged 2 commits intoapache:branch-1.1-ltsfrom
dataroaring:thread_fix

Conversation

@dataroaring
Copy link
Contributor

Some users encounter core dump due to excpetion of std::thread in HashJoinNode::open().

Proposed changes

Issue Number: close #xxx

Problem summary

Describe your changes.

Checklist(Required)

  1. Does it affect the original behavior:
    • Yes
    • No
    • I don't know
  2. Has unit tests been added:
    • Yes
    • No
    • No Need
  3. Has document been added or modified:
    • Yes
    • No
    • No Need
  4. Does it need to update dependencies:
    • Yes
    • No
  5. Are there any changes that cannot be rolled back:
    • Yes (If Yes, please explain WHY)
    • No

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

Some users encounter core dump due to excpetion of std::thread in
HashJoinNode::open().
try {
std::thread(bind(&HashJoinNode::build_side_thread, this, state, &thread_status)).detach();
} catch (const std::system_error& e) {
LOG(WARN) << "create thread fail, " << e.what();
Copy link
Contributor

Choose a reason for hiding this comment

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

LOG(WARNING)

Copy link
Contributor

@yiguolei yiguolei left a comment

Choose a reason for hiding this comment

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

LGTM

@yiguolei yiguolei merged commit 2db08f9 into apache:branch-1.1-lts Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants