On what basis does the Executor determine that the region metadata information cached in the TiKV Client's region cache is expired?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: Executor依据什么判断TiKV Client中region cache缓存的region元数据信息过期的?

| username: alfred

What does the Executor rely on to determine that the region metadata information cached in the region cache of the TiKV Client is expired?

| username: forever | Original post link

PD → Sends a request to the TiKV of region1

After obtaining it, it will still be sent to the recorded TiKV. If the cache is invalid or the leader drifts, it will back off and re-query PD to update the information and refresh the cache.

| username: alfred | Original post link

That means if it is not hit, it is considered expired, and then it is retrieved again from PD.

| username: forever | Original post link

Yes, backoff re-queries PD information and then updates the region cache.

| username: alfred | Original post link

Similar to the usage of Redis

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.