Skip to content

logservice: fix event store on disk size overflow#4063

Merged
ti-chi-bot[bot] merged 1 commit intopingcap:masterfrom
tenfyzhong:fix/4062-event-store-on-disk-data-size-overflow
Feb 13, 2026
Merged

logservice: fix event store on disk size overflow#4063
ti-chi-bot[bot] merged 1 commit intopingcap:masterfrom
tenfyzhong:fix/4062-event-store-on-disk-data-size-overflow

Conversation

@tenfyzhong
Copy link
Collaborator

What problem does this PR solve?

Issue Number: close #4062

What is changed and how it works?

  • Clamp negative pebble.Metrics.Compact.InProgressBytes when calculating event store disk usage to avoid uint64 wraparound.
  • Add a regression unit test for diskSpaceUsage.

Check List

Tests

  • Unit test

Questions

Will it cause performance regression or break compatibility?

No. This only affects metric calculation and adds one conditional check.

Do you need to update user documentation, design documentation or monitoring documentation?

No.

Release note

Fix TiCDC event store on-disk data size metric overflow that could cause EiB-scale spikes.

Clamp negative Compact.InProgressBytes before casting to uint64 to prevent
ticdc_event_store_on_disk_data_size from reporting EiB-scale spikes.

Closes pingcap#4062

Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
@ti-chi-bot ti-chi-bot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/needs-triage-completed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 23, 2026
@gemini-code-assist
Copy link

Warning

Gemini encountered an error creating the summary. You can try again by commenting /gemini summary.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Feb 2, 2026
@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 13, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3AceShowHand, wk989898

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 [3AceShowHand,wk989898]

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 lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Feb 13, 2026
@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 13, 2026

[LGTM Timeline notifier]

Timeline:

  • 2026-02-02 06:19:41.787799584 +0000 UTC m=+75052.889198306: ☑️ agreed by wk989898.
  • 2026-02-13 08:29:51.961041928 +0000 UTC m=+179945.041032633: ☑️ agreed by 3AceShowHand.

@tenfyzhong
Copy link
Collaborator Author

/check-issue-triage-complete

@tenfyzhong
Copy link
Collaborator Author

/test light

@tenfyzhong
Copy link
Collaborator Author

/test heavy

@tenfyzhong
Copy link
Collaborator Author

/cla

@tenfyzhong
Copy link
Collaborator Author

/retest

@ti-chi-bot ti-chi-bot bot merged commit e3d7bb0 into pingcap:master Feb 13, 2026
26 checks passed
lidezhu pushed a commit that referenced this pull request Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

[Bug] event_store on_disk_data_size can overflow to EiB

3 participants