Skip to content

gc: Add keyspace name to logs about GC#9875

Merged
ti-chi-bot[bot] merged 5 commits intotikv:masterfrom
MyonKeminta:m/add-keyspace-name-to-gc-logs
Oct 28, 2025
Merged

gc: Add keyspace name to logs about GC#9875
ti-chi-bot[bot] merged 5 commits intotikv:masterfrom
MyonKeminta:m/add-keyspace-name-to-gc-logs

Conversation

@MyonKeminta
Copy link
Copy Markdown
Contributor

@MyonKeminta MyonKeminta commented Oct 27, 2025

What problem does this PR solve?

Issue Number: Close #8978

What is changed and how does it work?

As keyspace ID is hidden in metrics and hidden to users, printing keyspace ID in logs might not help in diagnosing. This PR adds keyspace name field to the logs of the GC state manager, while still keeping the keyspace ID in the logs.

Check List

Tests

  • Unit test
  • Manual test (add detailed scripts or steps below)
image

Code changes

-

Side effects

  • Increased code complexity

Related changes

Release note

None.

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@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/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 27, 2025
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta MyonKeminta changed the title gc: Add keyspace name to logs gc: Add keyspace name to logs about GC Oct 27, 2025
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Oct 27, 2025
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 27, 2025
@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot bot commented Oct 27, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-10-27 09:36:46.473732731 +0000 UTC m=+1296512.550985281: ☑️ agreed by rleungx.
  • 2025-10-27 09:45:57.785157063 +0000 UTC m=+1297063.862409613: ☑️ agreed by okJiang.

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/retest

2 similar comments
@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/retest

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/retest

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 86.66667% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.62%. Comparing base (14ac685) to head (0c4a973).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9875      +/-   ##
==========================================
+ Coverage   76.87%   78.62%   +1.75%     
==========================================
  Files         491      491              
  Lines       78475    66238   -12237     
==========================================
- Hits        60324    52082    -8242     
+ Misses      14457    10436    -4021     
- Partials     3694     3720      +26     
Flag Coverage Δ
unittests 78.62% <86.66%> (+1.75%) ⬆️

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.

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot bot commented Oct 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JmPotato, okJiang, 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:

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

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@rleungx
Copy link
Copy Markdown
Member

rleungx commented Oct 27, 2025

/cherry-pick release-nextgen-20251011

@ti-chi-bot
Copy link
Copy Markdown
Member

@rleungx: once the present PR merges, I will cherry-pick it on top of release-nextgen-20251011 in the new PR and assign it to you.

Details

In response to this:

/cherry-pick release-nextgen-20251011

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 ti-community-infra/tichi repository.

@rleungx
Copy link
Copy Markdown
Member

rleungx commented Oct 27, 2025

/test pull-unit-test-next-gen

5 similar comments
@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@rleungx
Copy link
Copy Markdown
Member

rleungx commented Oct 27, 2025

/test pull-unit-test-next-gen

@rleungx
Copy link
Copy Markdown
Member

rleungx commented Oct 27, 2025

/test pull-unit-test-next-gen

@rleungx
Copy link
Copy Markdown
Member

rleungx commented Oct 27, 2025

/test pull-unit-test-next-gen

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

1 similar comment
@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test unit-test

@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot bot commented Oct 27, 2025

@MyonKeminta: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

/test pull-build
/test pull-build-next-gen
/test pull-check-deps
/test pull-error-log-review
/test pull-integration-realcluster-test
/test pull-unit-test-next-gen

The following commands are available to trigger optional jobs:

/test pull-integration-copr-test
/test pull-unit-test

Use /test all to run the following jobs that were automatically triggered:

pull-build
pull-build-next-gen
pull-check-deps
pull-error-log-review
pull-unit-test-next-gen
tikv/pd/pull_integration_realcluster_test
Details

In response to this:

/test unit-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.

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

4 similar comments
@rleungx
Copy link
Copy Markdown
Member

rleungx commented Oct 27, 2025

/test pull-unit-test-next-gen

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@rleungx
Copy link
Copy Markdown
Member

rleungx commented Oct 27, 2025

/test pull-unit-test-next-gen

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

1 similar comment
@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

2 similar comments
@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@MyonKeminta
Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@ti-chi-bot ti-chi-bot bot merged commit e2c8bf5 into tikv:master Oct 28, 2025
29 checks passed
@ti-chi-bot
Copy link
Copy Markdown
Member

@rleungx: new pull request created to branch release-nextgen-20251011: #9878.

Details

In response to this:

/cherry-pick release-nextgen-20251011

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 ti-community-infra/tichi repository.

ti-chi-bot bot pushed a commit that referenced this pull request Oct 28, 2025
close #8978

As keyspace ID is hidden in metrics and hidden to users, printing keyspace ID in logs might not help in diagnosing. This PR adds keyspace name field to the logs of the GC state manager, while still keeping the keyspace ID in the logs.

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor GC related PD APIs

5 participants