Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api(ticdc): Not show the error info during query the changefeed when state is stopped, finished and removed #11641

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hongyunyan
Copy link
Collaborator

@hongyunyan hongyunyan commented Oct 10, 2024

What problem does this PR solve?

Issue Number: close #11642

What is changed and how it works?

Make the previous error message not return when changefeed state is stopped / finished / removed, to avoid confused.

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

None

@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 Oct 10, 2024
Copy link
Contributor

ti-chi-bot bot commented Oct 10, 2024

[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 benmeadowcroft for approval. For more information see the Code Review Process.

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

@ti-chi-bot ti-chi-bot bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/needs-triage-completed and removed do-not-merge/needs-linked-issue release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.2613%. Comparing base (8532fab) to head (69d15de).

Additional details and impacted files
Components Coverage Δ
cdc 59.8547% <100.0000%> (-0.0106%) ⬇️
dm 50.0799% <ø> (+0.0154%) ⬆️
engine 53.2027% <ø> (-0.0226%) ⬇️
Flag Coverage Δ
unit 55.2613% <100.0000%> (-0.0022%) ⬇️

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

@@               Coverage Diff                @@
##             master     #11641        +/-   ##
================================================
- Coverage   55.2635%   55.2613%   -0.0022%     
================================================
  Files          1001       1001                
  Lines        136162     136162                
================================================
- Hits          75248      75245         -3     
- Misses        55426      55430         +4     
+ Partials       5488       5487         -1     

Copy link
Contributor

ti-chi-bot bot commented Oct 10, 2024

@hongyunyan: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cdc-integration-kafka-test 69d15de link true /test cdc-integration-kafka-test
pull-cdc-integration-mysql-test 69d15de link true /test cdc-integration-mysql-test
pull-cdc-integration-pulsar-test 69d15de link true /test cdc-integration-pulsar-test
pull-cdc-integration-storage-test 69d15de link true /test cdc-integration-storage-test

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

@@ -284,7 +284,7 @@ func (h *OpenAPIV2) listChangeFeeds(c *gin.Context) {

// if the state is normal, we shall not return the error info
// because changefeed will is retrying. errors will confuse the users
if commonInfo.FeedState == model.StateNormal {
if commonInfo.FeedState == model.StateNormal || commonInfo.FeedState == model.StateStopped || commonInfo.FeedState == model.StateFinished || commonInfo.FeedState == model.StateRemoved {
Copy link
Member

Choose a reason for hiding this comment

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

too complex here, exact it to a function, then use it in line 1039

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-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TiCDC show old error messages when query the changefeed after pause it
2 participants