Skip to content

Conversation

@iosmanthus
Copy link
Contributor

@iosmanthus iosmanthus commented Nov 21, 2025

callee_id is used to indicate the expected server ID to receive the request. The server SHOULD check if the callee_id matches its own ID, normally it's the client url address of the server. We encountered an issue where a tso client caches the stale DNS result and the new tso server takes over the old server's network address. Then, the tso client connects to the new tso server (a follower) with the actual leader's hostname, creating a hallucination that the leader is not the leader anymore. If the client meets this case, it might never get out of it if it doesn't refresh its DNS cache by reconnecting. ref tikv/pd#9894

`callee_id` is used to indicate the expected server ID to receive the request.
The server SHOULD check if the `callee_id` matches its own ID, normally it's the client url address of the server.
We encountered an issue where a tso client caches the stale DNS result and the new tso server
takes over the old server's network address, then the tso client connects to the new tso server (a follower)
with the actual leader's hostname, creating a hallucination that the leader is not the leader anymore.
If the client meets this case, it might never get out of it if it doesn't refresh its DNS cache by reconnecting.

Signed-off-by: iosmanthus <[email protected]>
@ti-chi-bot ti-chi-bot bot requested a review from mornyx November 21, 2025 07:40
@ti-chi-bot
Copy link

ti-chi-bot bot commented Nov 21, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign rleungx for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the size/XXL label Nov 21, 2025
Signed-off-by: iosmanthus <[email protected]>
@ti-chi-bot ti-chi-bot bot added size/L and removed size/XXL labels Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant