Skip to content

*: clean up the deserted syntax of START TRANSACTION READ ONLY#24813

Merged
ti-chi-bot merged 13 commits intopingcap:masterfrom
JmPotato:clean_up_start_transaction_executor
May 25, 2021
Merged

*: clean up the deserted syntax of START TRANSACTION READ ONLY#24813
ti-chi-bot merged 13 commits intopingcap:masterfrom
JmPotato:clean_up_start_transaction_executor

Conversation

@JmPotato
Copy link
Member

@JmPotato JmPotato commented May 21, 2021

Signed-off-by: JmPotato ghzpotato@gmail.com

What problem does this PR solve?

Issue Number: close #24291.

Problem Summary: After supporting the AS OF TIMESTAMP syntax for START TRANSACTION READ ONLY statement, we need to clean up the remaining deserted syntax.

What is changed and how it works?

  • Remove sessionctx.StalenessTxnOption since we don't need it anymore.
  • Change NewTxnWithStalenessOption to NewTxnWithStartTS.
  • Remove the useless fields from StartTSOption.
  • Remove the unnecessary test cases.
  • Update the test cases.

Check List

Tests

  • Unit test
  • Integration test

Release note

  • No release note.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato JmPotato requested review from a team as code owners May 21, 2021 04:03
@JmPotato JmPotato requested review from qw4990 and removed request for a team May 21, 2021 04:03
@ti-chi-bot ti-chi-bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label May 21, 2021
@github-actions github-actions bot added sig/execution SIG execution sig/sql-infra SIG: SQL Infra labels May 21, 2021
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato
Copy link
Member Author

/cc @xhebox @Yisaer @nolouch @djshow832

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@ti-chi-bot ti-chi-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 21, 2021
Copy link
Contributor

@Yisaer Yisaer left a comment

Choose a reason for hiding this comment

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

Rest LGTM

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato
Copy link
Member Author

CI tests will pass after pingcap/br#1139 is merged.

JmPotato added 3 commits May 24, 2021 16:38
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato
Copy link
Member Author

/run-all-tests

@xhebox
Copy link
Contributor

xhebox commented May 25, 2021

/lgtm

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label May 25, 2021
Copy link
Contributor

@Yisaer Yisaer left a comment

Choose a reason for hiding this comment

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

/lgtm

@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Yisaer
  • xhebox

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Details

Reviewer can indicate their review by writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 25, 2021
@Yisaer
Copy link
Contributor

Yisaer commented May 25, 2021

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: 6c41d3e

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 25, 2021
@JmPotato
Copy link
Member Author

/run-e2e-test

@ti-chi-bot ti-chi-bot merged commit 98f0d76 into pingcap:master May 25, 2021
@JmPotato JmPotato deleted the clean_up_start_transaction_executor branch May 25, 2021 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sig/execution SIG execution sig/sql-infra SIG: SQL Infra size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. 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.

Replace the WITH Staleness to AS OF clause

4 participants