pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
36.46k stars 5.74k forks source link

executor,kv: support timebounded staleness transaction #23866

Closed Yisaer closed 3 years ago

Yisaer commented 3 years ago

Signed-off-by: yisaer disxiaofei@163.com

What problem does this PR solve?

Issue Number: ref https://github.com/pingcap/tidb/issues/19817

Problem Summary: Support time bounded staleness transaction.

What is changed and how it works?

What's Changed: Support time bounded staleness transaction by:

  1. maintaining resolveTS for each store in an extra goroutine.
  2. support time-bounded staleness transaction in executeBegin

Check List

Tests

I have tested it with https://github.com/tikv/tikv/pull/9791, it seems work well.

Release note

JmPotato commented 3 years ago

/merge

ti-chi-bot commented 3 years ago

@JmPotato: /merge is only allowed for the committers in list.

In response to [this](https://github.com/pingcap/tidb/pull/23866#issuecomment-827331786): >/merge Instructions for interacting with me using PR comments are available [here](https://prow.tidb.io/command-help). If you have questions or suggestions related to my behavior, please file an issue against the [ti-community-infra/tichi](https://github.com/ti-community-infra/tichi/issues/new?title=Prow%20issue:) repository.
Yisaer commented 3 years ago

/merge

ti-chi-bot commented 3 years ago

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

Commit hash: 50191d40557976acdf4b0ea0ed9bf3261e95c8be

Yisaer commented 3 years ago

/run-unit-test

Yisaer commented 3 years ago

/run-unit-test

Yisaer commented 3 years ago

/run-unit-test

Yisaer commented 3 years ago

/merge

Yisaer commented 3 years ago

/merge

ti-chi-bot commented 3 years ago

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

Commit hash: c8f6c33d516117a91b93be876b4245d8ee93d2f1

Yisaer commented 3 years ago

/merge

ti-chi-bot commented 3 years ago

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

Commit hash: 0ca289ab3e02622d9470cba72b418a0aed3c9a48

Yisaer commented 3 years ago

/run-check_dev

JmPotato commented 3 years ago

/run-integration-common-test

Yisaer commented 3 years ago

/unhold