Skip to content

pd: add callee_id to RequestHeader#1379

Merged
ti-chi-bot[bot] merged 5 commits intopingcap:masterfrom
iosmanthus:pd/callee-header
Apr 14, 2026
Merged

pd: add callee_id to RequestHeader#1379
ti-chi-bot[bot] merged 5 commits intopingcap:masterfrom
iosmanthus:pd/callee-header

Conversation

@iosmanthus
Copy link
Copy Markdown
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 <myosmanthustree@gmail.com>
@ti-chi-bot ti-chi-bot Bot requested a review from mornyx November 21, 2025 07:40
@ti-chi-bot ti-chi-bot Bot added the size/XXL label Nov 21, 2025
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
@ti-chi-bot ti-chi-bot Bot added size/L and removed size/XXL labels Nov 21, 2025
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 8, 2026

@bufferflies: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 8, 2026

@ystaticy: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@bufferflies
Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

…ader

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
@ti-chi-bot ti-chi-bot Bot added size/XXL and removed size/L labels Apr 14, 2026
@iosmanthus
Copy link
Copy Markdown
Contributor Author

/retest

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 14, 2026

@iosmanthus: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@iosmanthus
Copy link
Copy Markdown
Contributor Author

/ok-to-test

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 14, 2026

@iosmanthus: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/ok-to-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@iosmanthus
Copy link
Copy Markdown
Contributor Author

@bufferflies @ystaticy PTAL

@bufferflies
Copy link
Copy Markdown
Contributor

@rleungx PTAL

@ti-chi-bot ti-chi-bot Bot added the lgtm label Apr 14, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 14, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bufferflies, disksing, rleungx, ystaticy

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

The pull request process is described 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
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 14, 2026

[LGTM Timeline notifier]

Timeline:

  • 2026-04-08 02:00:18.635640435 +0000 UTC m=+921623.841000502: ☑️ agreed by disksing.
  • 2026-04-14 06:56:21.459507879 +0000 UTC m=+1457786.664867926: ☑️ agreed by rleungx.

@ti-chi-bot ti-chi-bot Bot merged commit aaeadf6 into pingcap:master Apr 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants