Skip to content

executor: fix data race in (*HashJoinExec).Close() since fetchInnerAndBuildHashTable is still running#11639

Merged
sre-bot merged 4 commits into
pingcap:masterfrom
SunRunAway:issue11600
Aug 15, 2019
Merged

executor: fix data race in (*HashJoinExec).Close() since fetchInnerAndBuildHashTable is still running#11639
sre-bot merged 4 commits into
pingcap:masterfrom
SunRunAway:issue11600

Conversation

@SunRunAway
Copy link
Copy Markdown
Contributor

@SunRunAway SunRunAway commented Aug 6, 2019

What problem does this PR solve?

Fixes #11600, and fixes #11693

What is changed and how it works?

It's a bug introduced by #11571

Check List

Tests

Code changes

  • None

Side effects

  • None

Related changes

  • None

@SunRunAway SunRunAway added type/bugfix This PR fixes a bug. sig/execution SIG execution labels Aug 6, 2019
@kennytm
Copy link
Copy Markdown
Contributor

kennytm commented Aug 6, 2019

/run-all-tests

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 6, 2019

Codecov Report

Merging #11639 into master will decrease coverage by 0.0017%.
The diff coverage is 0%.

@@               Coverage Diff                @@
##             master     #11639        +/-   ##
================================================
- Coverage   81.4489%   81.4471%   -0.0018%     
================================================
  Files           433        433                
  Lines         93240      93091       -149     
================================================
- Hits          75943      75820       -123     
+ Misses        11867      11846        -21     
+ Partials       5430       5425         -5

@SunRunAway
Copy link
Copy Markdown
Contributor Author

/run-all-tests

Copy link
Copy Markdown
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

Please add an UT for the bug-fixes. You can write a failpoint test.

Copy link
Copy Markdown
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

Please add an UT for the bug-fixes. You can write a failpoint test.

Copy link
Copy Markdown
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added status/can-merge Indicates a PR has been approved by a committer. and removed status/PTAL labels Aug 15, 2019
@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Aug 15, 2019
@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Aug 15, 2019

/run-all-tests

@sre-bot sre-bot merged commit db6c36c into pingcap:master Aug 15, 2019
@SunRunAway SunRunAway deleted the issue11600 branch August 15, 2019 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A data race is found in the CI Data race in (*HashJoinExec).Close() since fetchInnerAndBuildHashTable is still running

5 participants