You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a TiKV receive `TruncateRequest`, it will create a `TruncateWorker` instance and start the work.
40
+
When a TiKV receive `ReturnToVersionRequest`, it will create a `ReturnToVersionWorker` instance and start the work.
42
41
43
42
There are several steps to follow when doing truncate, note it is expected that no more write requests will be sent to TiKV during the truncate process:
44
43
@@ -94,12 +93,9 @@ After remove all the writes, we can promise we won't give the user ACID inconsis
94
93
95
94
So we should do resolve locks on all data once.
96
95
97
-
This lock resolving process is just like the one used by GC, with safepoint ts equals to current ts.
96
+
We can do this by simply remove all locks in lockcf.
98
97
99
98
## Drawbacks
100
99
101
100
This is a **very** unsafe operation, we should prevent the user call this on normal cluster.
102
101
103
-
## Alternatives
104
-
105
-
- We can also clean the lock cf in step2 instead of do resolve locks.
0 commit comments