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

executor: use before statement snapshot for UnionScan #19276

Merged
merged 6 commits into from
Sep 1, 2020

Conversation

bobotu
Copy link
Contributor

@bobotu bobotu commented Aug 19, 2020

What problem does this PR solve?

Issue Number: close #19054

What is changed and how it works?

UnionScan will read the statement internal buffer, it will cause data race when the reading table is being modified in the upper operator.

If the UnionScan can only read data at the snapshot before this statement start, we should only read from the MemBuffer in tikvTxn, not in TxnState.

Check List

Tests

  • Unit test

Release note

  • Fix data race in UnionScan

@bobotu
Copy link
Contributor Author

bobotu commented Aug 19, 2020

/run-all-tests

@bobotu
Copy link
Contributor Author

bobotu commented Aug 19, 2020

/run-all-tests

@github-actions github-actions bot added the sig/execution SIG execution label Aug 20, 2020
@bobotu
Copy link
Contributor Author

bobotu commented Aug 24, 2020

/run-all-tests

@bobotu
Copy link
Contributor Author

bobotu commented Aug 24, 2020

/run-integration-ddl-test

@bobotu bobotu marked this pull request as ready for review August 24, 2020 03:53
@tiancaiamao
Copy link
Contributor

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 31, 2020
@bobotu bobotu requested a review from cfzjywxk August 31, 2020 06:59
@cfzjywxk
Copy link
Contributor

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Aug 31, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Aug 31, 2020
@jackysp
Copy link
Member

jackysp commented Aug 31, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 31, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@jackysp
Copy link
Member

jackysp commented Aug 31, 2020

/run-build_check_race

@ti-srebot
Copy link
Contributor

@bobotu merge failed.

@jackysp
Copy link
Member

jackysp commented Aug 31, 2020

/rebuild

@jackysp
Copy link
Member

jackysp commented Aug 31, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@bobotu merge failed.

@zz-jason
Copy link
Member

zz-jason commented Sep 1, 2020

/merge

@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 19454
  • 19465
  • 19559
  • 19601
  • 19611
  • 18443
  • 19541

@ti-srebot
Copy link
Contributor

/run-all-tests

@zz-jason
Copy link
Member

zz-jason commented Sep 1, 2020

/merge

@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 18119
  • 19659
  • 18443
  • 18819
  • 19452

@ti-srebot ti-srebot merged commit 3db1233 into pingcap:release-4.0 Sep 1, 2020
@bobotu bobotu deleted the union-scan-race branch September 7, 2020 06:05
bobotu pushed a commit to bobotu/tidb that referenced this pull request Sep 7, 2020
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants