Skip to content

region_cache: allow pd follower handle region api#1072

Merged
disksing merged 23 commits intotikv:masterfrom
CabinfeverB:follower/pd_follower_active
Dec 20, 2023
Merged

region_cache: allow pd follower handle region api#1072
disksing merged 23 commits intotikv:masterfrom
CabinfeverB:follower/pd_follower_active

Conversation

@CabinfeverB
Copy link
Member

@CabinfeverB CabinfeverB commented Dec 6, 2023

should be merged after #1079
In findRegionByKey, if the region is nil, the region cache can get the region with follower enabled option. Otherwise, no option.
And also use it when scan region.

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
@CabinfeverB CabinfeverB force-pushed the follower/pd_follower_active branch from 31fae78 to 919b0df Compare December 14, 2023 12:08
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

no update

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

fix test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

fix test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

fix test

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
@CabinfeverB CabinfeverB force-pushed the follower/pd_follower_active branch from 919b0df to b7f61d3 Compare December 14, 2023 12:15
@CabinfeverB CabinfeverB changed the title region_cache: allow pd follower handle region api region_cache: check epoch when insert and allow pd follower handle region api Dec 15, 2023
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
@CabinfeverB CabinfeverB changed the title region_cache: check epoch when insert and allow pd follower handle region api region_cache: allow pd follower handle region api Dec 18, 2023
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
@disksing disksing merged commit 1a33aca into tikv:master Dec 20, 2023
@CabinfeverB CabinfeverB mentioned this pull request Dec 28, 2023
3 tasks
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