Skip to content

Conversation

@hongyunyan
Copy link
Collaborator

What problem does this PR solve?

Issue Number: close #xxx

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

Please refer to [Release Notes Language Style Guide](https://pingcap.github.io/tidb-dev-guide/contribute-to-tidb/release-notes-style-guide.html) to write a quality release note.

If you don't think this PR needs a release note then fill it with `None`.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Nov 20, 2025

[FORMAT CHECKER NOTIFICATION]

Notice: To remove the do-not-merge/needs-linked-issue label, please provide the linked issue number on one line in the PR body, for example: Issue Number: close #123 or Issue Number: ref #456.

📖 For more info, you can check the "Contribute Code" section in the development guide.

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Nov 20, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Nov 20, 2025

[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 3aceshowhand 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.

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

@hongyunyan
Copy link
Collaborator Author

/test --help

@ti-chi-bot
Copy link

ti-chi-bot bot commented Nov 20, 2025

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

/test pull-build
/test pull-cdc-kafka-integration-heavy
/test pull-cdc-kafka-integration-light
/test pull-cdc-mysql-integration-heavy
/test pull-cdc-mysql-integration-light
/test pull-cdc-storage-integration-heavy
/test pull-cdc-storage-integration-light
/test pull-check
/test pull-error-log-review
/test pull-unit-test

The following commands are available to trigger optional jobs:

/test pull-build-next-gen
/test pull-cdc-kafka-integration-heavy-next-gen
/test pull-cdc-kafka-integration-light-next-gen
/test pull-cdc-mysql-integration-heavy-next-gen
/test pull-cdc-mysql-integration-light-next-gen
/test pull-cdc-pulsar-integration-light
/test pull-cdc-pulsar-integration-light-next-gen
/test pull-cdc-storage-integration-heavy-next-gen
/test pull-cdc-storage-integration-light-next-gen
/test pull-unit-test-next-gen

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

pull-build
pull-build-next-gen
pull-check
pull-error-log-review
pull-unit-test
pull-unit-test-next-gen

In response to this:

/test --help

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.

@ti-chi-bot ti-chi-bot bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 20, 2025
@gemini-code-assist
Copy link

Summary of Changes

Hello @hongyunyan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request is a work-in-progress primarily focused on enhancing the observability of watermark processing within the system. It introduces additional logging in key components responsible for managing and updating watermarks. Additionally, it includes a temporary adjustment to the integration test suite, concentrating on a specific test case, which suggests an ongoing debugging or development effort related to changefeed behavior.

Highlights

  • Enhanced Watermark Logging: Added new log.Info statements in dispatcher_manager.go to provide more visibility into individual and aggregated watermark updates, aiding in debugging and monitoring.
  • Maintainer Watermark Visibility: Introduced a log.Info statement in maintainer.go to log watermark updates received during heartbeat requests, offering better insight into the maintainer's state.
  • Temporary Integration Test Configuration: Modified the run_light_it_in_ci.sh script to temporarily replace various integration test groups with repeated runs of the changefeed_dup_error_restart test, likely for focused debugging or testing.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@hongyunyan
Copy link
Collaborator Author

/test pull-cdc-mysql-integration-light

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request appears to be a work-in-progress for debugging purposes. It introduces several temporary logging statements across different files, which should be removed before merging to maintain code cleanliness. Additionally, a CI test script has been modified to repeatedly run a single test case, effectively disabling a large suite of integration tests. This change is critical to revert to ensure the CI process remains effective for all developers. My review focuses on pointing out these temporary changes.

Comment on lines +35 to +65
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G09
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G10
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G11
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G04
'multi_capture ci_collation_compatibility resourcecontrol fail_over_ddl_E'
# G05
'vector simple partition_table fail_over_ddl_F'
# G06
'http_api http_api_tls fail_over_ddl_G synced_status'
# G07
'http_api_tls_with_user_auth fail_over_ddl_H changefeed_update_config synced_status_with_redo'
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G09
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G10
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G11
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G08
'capture_session_done_during_task changefeed_dup_error_restart mysql_sink_retry fail_over_ddl_I'
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G09
'cdc_server_tips ddl_sequence server_config_compatibility fail_over_ddl_J'
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G10
'changefeed_error bdr_mode fail_over_ddl_K split_table_check'
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G11
'multi_tables_ddl ddl_attributes multi_cdc_cluster fail_over_ddl_L'
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G12
'row_format tiflash multi_rocks fail_over_ddl_M'
# G13
'cli_tls_with_auth cli_with_auth fail_over_ddl_N'
# G14
'batch_add_table batch_update_to_no_batch fail_over_ddl_O'
# G15
'split_region changefeed_resume_with_checkpoint_ts autorandom gc_safepoint foreign_key_check ddl_for_split_tables old_arch_compatibility'
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G09
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G10
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'
# G11
'changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart changefeed_dup_error_restart'

Choose a reason for hiding this comment

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

high

The mysql_groups array has been modified to repeatedly run the changefeed_dup_error_restart test case, which disables many other important integration tests. This seems to be a temporary change for debugging. Please ensure this is reverted before merging, as it would break the CI for other developers.

if watermark != nil {
message.Watermark.Update(*watermark)
}
log.Info("hyy watermark", zap.Any("dispatcerID", id), zap.Any("watermark", watermark))

Choose a reason for hiding this comment

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

medium

This log statement appears to be for debugging purposes. Please remove it before merging to keep the codebase clean. Also, there's a typo in dispatcerID; it should be dispatcherID.

})
message.Watermark.Seq = seq
e.latestWatermark.Set(message.Watermark)
log.Info("hyy whole watermark", zap.Any("watermark", message.Watermark))

Choose a reason for hiding this comment

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

medium

This log statement appears to be for debugging purposes. Please remove it before merging to keep the codebase clean.

old, ok := m.checkpointTsByCapture.Get(msg.From)
if !ok || req.Watermark.Seq > old.Seq || (req.Watermark.Seq == old.Seq && req.Watermark.CheckpointTs > old.CheckpointTs) {
m.checkpointTsByCapture.Set(msg.From, *req.Watermark)
log.Info("hyy onHeartbeatRequest", zap.Any("watermark", *req.Watermark))

Choose a reason for hiding this comment

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

medium

This log statement appears to be for debugging purposes. Please remove it before merging to keep the codebase clean.

@hongyunyan
Copy link
Collaborator Author

/test pull-cdc-mysql-integration-light

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

Labels

do-not-merge/needs-linked-issue 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.

1 participant