Skip to content

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 <[email protected]>
@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 labels Jan 23, 2026
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jan 23, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign hongyunyan for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found 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 ti-chi-bot bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 23, 2026
@gemini-code-assist
Copy link

Warning

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/needs-triage-completed 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

1 participant