Skip to content

region_cache: refine GetTiFlashComputeRPCContextByConsistentHash#644

Merged
gengliqi merged 3 commits into
tikv:masterfrom
guo-shaoge:detect_alive_tiflash_compute
Dec 19, 2022
Merged

region_cache: refine GetTiFlashComputeRPCContextByConsistentHash#644
gengliqi merged 3 commits into
tikv:masterfrom
guo-shaoge:detect_alive_tiflash_compute

Conversation

@guo-shaoge
Copy link
Copy Markdown
Contributor

@guo-shaoge guo-shaoge commented Dec 17, 2022

Signed-off-by: guo-shaoge shaoge1994@163.com

Move GetTiFlashComputeStores() outside of GetTiFlashComputeRPCContextByConsistentHash() to help filter alive tiflash_compute nodes.

Related tidb pr: pingcap/tidb#40008

…detect alive)

Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Copy link
Copy Markdown
Member

@cosven cosven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it need to add unit test?

Comment thread internal/locate/region_request.go
Copy link
Copy Markdown
Member

@gengliqi gengliqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gengliqi gengliqi merged commit a4f5c00 into tikv:master Dec 19, 2022
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.

3 participants