server, api: fix forward logic#9836
Conversation
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
tests/server/api/api_test.go
Outdated
| var followerCfg config.Config | ||
| err = testutil.ReadGetJSON(re, tests.TestDialClient, followerURL, &followerCfg) | ||
| re.NoError(err) | ||
| fmt.Println(followerCfg.Replication.MaxReplicas) |
| // XCallerIDHeader is used to mark the caller ID. | ||
| XCallerIDHeader = "X-Caller-ID" | ||
| // XPDHandleHeader is used to mark whether this request is handled by the PD. | ||
| XPDHandleHeader = "X-PD-Handle-By" |
There was a problem hiding this comment.
Yes. For now, it's only being used for testing. If similar issues occur with other interfaces in the future, we'll be able to identify which PD returned the response.
There was a problem hiding this comment.
Then, how about using a failpoint?
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
|
/retest |
Signed-off-by: lhy1024 <admin@liudos.us>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #9836 +/- ##
==========================================
+ Coverage 76.82% 78.63% +1.81%
==========================================
Files 491 494 +3
Lines 78440 66371 -12069
==========================================
- Hits 60261 52193 -8068
+ Misses 14478 10463 -4015
- Partials 3701 3715 +14
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: okJiang, rleungx The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test pull-unit-test-next-gen |
|
/test pull-unit-test-next-gen |
1 similar comment
|
/test pull-unit-test-next-gen |
|
/test pull-unit-test-next-gen |
2 similar comments
|
/test pull-unit-test-next-gen |
|
/test pull-unit-test-next-gen |
|
@lhy1024: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
close tikv#9825 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: Close #9825
What is changed and how does it work?
Check List
Tests
Release note