Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove intersecting regions in the region cache when updating regions #37141

Closed
sticnarf opened this issue Aug 16, 2022 · 0 comments · Fixed by #37142
Closed

Remove intersecting regions in the region cache when updating regions #37141

sticnarf opened this issue Aug 16, 2022 · 0 comments · Fixed by #37142
Labels
affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects 5.4.x versions. affects-6.1 type/enhancement

Comments

@sticnarf
Copy link
Contributor

Enhancement

When many regions are merged together, the stale regions won't be removed from the cache. This may waste CPU in b-tree searching or use incorrect region info to access TiKV.

See tikv/client-go#565 for details

@sticnarf sticnarf added affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects 5.4.x versions. affects-6.1 labels Sep 14, 2022
ti-chi-bot pushed a commit that referenced this issue Oct 12, 2022
ti-chi-bot pushed a commit that referenced this issue Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects 5.4.x versions. affects-6.1 type/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant