Skip to content

tso: merge lastTS and lastArrivalTS into an atomic pointer (#1054)#1063

Merged
disksing merged 1 commit intotikv:tidb-7.1from
you06:7.1-tso/merge-last-ts
Nov 20, 2023
Merged

tso: merge lastTS and lastArrivalTS into an atomic pointer (#1054)#1063
disksing merged 1 commit intotikv:tidb-7.1from
you06:7.1-tso/merge-last-ts

Conversation

@you06
Copy link
Contributor

@you06 you06 commented Nov 20, 2023

Cherry pick #1054 to tidb-7.1 branch, which fix the monotonic issue of stale TSO.

* fix the issue that stale timestamp may be a future one

Signed-off-by: you06 <you1474600@gmail.com>

* add regression test

Signed-off-by: you06 <you1474600@gmail.com>

* lazy init lastTSO

Signed-off-by: you06 <you1474600@gmail.com>

* fix panic

Signed-off-by: you06 <you1474600@gmail.com>

* address comment

Signed-off-by: you06 <you1474600@gmail.com>

---------

Signed-off-by: you06 <you1474600@gmail.com>
@disksing disksing merged commit 7e4c809 into tikv:tidb-7.1 Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants