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

processor(ticdc): Fix processor panic issue #10922

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

sdojjy
Copy link
Member

@sdojjy sdojjy commented Apr 18, 2024

What problem does this PR solve?

Issue Number: close #10921

What is changed and how it works?

If a processor is not initialized and then call writerDebugInfo command, ticdc will panic because of tableManager is nil
this PR will check if the processor is initialized or not, if not initialized, then print a log, false add a ut case to cover it.

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 the release-note-none Denotes a PR that doesn't merit a release note. label Apr 18, 2024
@sdojjy sdojjy changed the title Fix processor panic issue processor(ticdc): Fix processor panic issue Apr 18, 2024
@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 18, 2024
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Apr 18, 2024
Copy link
Contributor

ti-chi-bot bot commented Apr 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [3AceShowHand,asddongmen]

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 Apr 18, 2024
Copy link
Contributor

ti-chi-bot bot commented Apr 18, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-04-18 04:21:59.853589504 +0000 UTC m=+484738.964635947: ☑️ agreed by asddongmen.
  • 2024-04-18 04:23:38.029542007 +0000 UTC m=+484837.140588459: ☑️ agreed by 3AceShowHand.

Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Merging #10922 (aba92ed) into master (c8ed99f) will increase coverage by 0.0285%.
The diff coverage is 100.0000%.

Additional details and impacted files
Components Coverage Δ
cdc 61.7585% <100.0000%> (+0.0441%) ⬆️
dm 51.2272% <ø> (+0.0181%) ⬆️
engine 63.4020% <ø> (ø)
Flag Coverage Δ
unit 57.4272% <100.0000%> (+0.0285%) ⬆️

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

@@               Coverage Diff                @@
##             master     #10922        +/-   ##
================================================
+ Coverage   57.3986%   57.4272%   +0.0285%     
================================================
  Files           850        850                
  Lines        125137     125141         +4     
================================================
+ Hits          71827      71865        +38     
+ Misses        47914      47883        -31     
+ Partials       5396       5393         -3     

@sdojjy
Copy link
Member Author

sdojjy commented Apr 18, 2024

/retest-required

1 similar comment
@sdojjy
Copy link
Member Author

sdojjy commented Apr 18, 2024

/retest-required

@sdojjy
Copy link
Member Author

sdojjy commented Apr 18, 2024

/retest

@sdojjy
Copy link
Member Author

sdojjy commented Apr 18, 2024

/retest-required

@ti-chi-bot ti-chi-bot bot merged commit 0ffc857 into pingcap:master Apr 18, 2024
27 of 28 checks passed
@sdojjy sdojjy deleted the fix-processor-panic-issue branch April 18, 2024 15:04
sdojjy added a commit to sdojjy/tiflow that referenced this pull request Apr 24, 2024
sdojjy added a commit to ti-chi-bot/tiflow that referenced this pull request Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic: invalid memory address or nil pointer dereference
3 participants