Skip to content

Conversation

@lhy1024
Copy link
Contributor

@lhy1024 lhy1024 commented Dec 19, 2025

What problem does this PR solve?

Issue Number: Ref #4399

What is changed and how does it work?

When we need to test statistics, we need to forward store heartbeat to scheduling server.
If we only test store metadata, we only use store watcher and not need to forward store heartbeat.

Check List

Tests

  • Unit test

Release note

None.

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 19, 2025
@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.36%. Comparing base (205352f) to head (7622c15).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10092      +/-   ##
==========================================
- Coverage   78.38%   78.36%   -0.02%     
==========================================
  Files         518      518              
  Lines       69476    69476              
==========================================
- Hits        54456    54446      -10     
- Misses      11066    11070       +4     
- Partials     3954     3960       +6     
Flag Coverage Δ
unittests 78.36% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Dec 22, 2025
@bufferflies
Copy link
Contributor

image You can add more comments here to detail why removing this forwarding.

@lhy1024
Copy link
Contributor Author

lhy1024 commented Dec 23, 2025

/retest

@lhy1024 lhy1024 requested a review from rleungx December 23, 2025 08:06
func MustHandleStoreHeartbeat(re *require.Assertions, cluster *TestCluster, heartbeat *pdpb.StoreHeartbeatRequest) {
err := cluster.GetLeaderServer().GetRaftCluster().HandleStoreHeartbeat(heartbeat, &pdpb.StoreHeartbeatResponse{})
re.NoError(err)
if cluster.GetSchedulingPrimaryServer() != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Why remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have sync storeheartbeat between mcs and pd, we should not duplicate forward it in test.

After removing it, these tests still are successful.

@lhy1024 lhy1024 changed the title test: remove misleading content in MustHandleStoreHeartbeat test: distinguish MustHandleStoreHeartbeat Dec 29, 2025
@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 29, 2025
@ti-chi-bot ti-chi-bot bot added the lgtm label Jan 6, 2026
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 6, 2026

[APPROVALNOTIFIER] This PR is APPROVED

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

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:
  • OWNERS [bufferflies,rleungx]

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 removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jan 6, 2026
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 6, 2026

[LGTM Timeline notifier]

Timeline:

  • 2025-12-22 02:32:38.208390103 +0000 UTC m=+2045103.022167665: ☑️ agreed by bufferflies.
  • 2026-01-06 07:40:22.15530776 +0000 UTC m=+687977.973616191: ☑️ agreed by rleungx.

@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/retest

1 similar comment
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/retest

@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/retest-required

2 similar comments
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/retest-required

@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/retest-required

@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/test pull-unit-test-next-gen-3

1 similar comment
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/test pull-unit-test-next-gen-3

@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/retest

1 similar comment
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/retest

@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/test pull-unit-test-next-gen-3

@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 6, 2026

/test pull-unit-test-next-gen-2

@ti-chi-bot ti-chi-bot bot merged commit 8229193 into tikv:master Jan 6, 2026
40 of 42 checks passed
bufferflies pushed a commit to bufferflies/pd that referenced this pull request Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants