Co-authored-by: Connor <zbk602423539@gmail.com>
This commit is contained in:
Smith Cruise 2021-12-22 12:28:06 +08:00 committed by GitHub
parent 8b8fdd5adf
commit a2b934b71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ func CheckRegionEpoch(req *raft_cmdpb.RaftCmdRequest, region *metapb.Region, inc
// We must check epochs strictly to avoid key not in region error.
//
// A 3 nodes TiKV cluster with merge enabled, after commit merge, TiKV A
// tells TiDB with a epoch not match error contains the latest target Region
// tells TiDB with an epoch not match error contains the latest target Region
// info, TiDB updates its region cache and sends requests to TiKV B,
// and TiKV B has not applied commit merge yet, since the region epoch in
// request is higher than TiKV B, the request must be denied due to epoch