tidb icon indicating copy to clipboard operation
tidb copied to clipboard

lightning: Fix panic when downstream table schema has changed

Open ForwardStar opened this issue 2 years ago • 23 comments

What problem does this PR solve?

Issue Number: close #34163

Problem Summary:

What is changed and how it works?

Throw an error instead of panic.

Check List

Tests

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

Side effects

  • [ ] Performance regression: Consumes more CPU
  • [ ] Performance regression: Consumes more Memory
  • [ ] Breaking backward compatibility

Documentation

  • [ ] Affects user behaviors
  • [ ] Contains syntax changes
  • [ ] Contains variable changes
  • [ ] Contains experimental features
  • [ ] Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

ForwardStar avatar Aug 02 '22 06:08 ForwardStar

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • D3Hunter
  • gozssky

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment. After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.

ti-chi-bot avatar Aug 02 '22 06:08 ti-chi-bot

CLA assistant check
All committers have signed the CLA.

sre-bot avatar Aug 02 '22 06:08 sre-bot

/run-mysql-test

ForwardStar avatar Aug 02 '22 07:08 ForwardStar

/run-mysql-test

ForwardStar avatar Aug 02 '22 07:08 ForwardStar

/cc @D3Hunter

ForwardStar avatar Aug 02 '22 07:08 ForwardStar

Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/f3a1221f88a92127a4401da1e06746206236778c

sre-bot avatar Aug 02 '22 07:08 sre-bot

/run-build

ForwardStar avatar Aug 02 '22 07:08 ForwardStar

/rebuild

ForwardStar avatar Aug 02 '22 07:08 ForwardStar

/rebuild

ForwardStar avatar Aug 02 '22 08:08 ForwardStar

/rebuild

ForwardStar avatar Aug 02 '22 09:08 ForwardStar

/run-check_dev

ForwardStar avatar Aug 02 '22 09:08 ForwardStar

/cc @gozssky

D3Hunter avatar Aug 03 '22 02:08 D3Hunter

/run-all-tests

ForwardStar avatar Aug 03 '22 07:08 ForwardStar

/rebuild

ForwardStar avatar Aug 03 '22 07:08 ForwardStar

/run-check_dev

ForwardStar avatar Aug 03 '22 07:08 ForwardStar

LGTM

lyzx2001 avatar Aug 05 '22 06:08 lyzx2001

@XuHuaiyu @ekexium PTAL about codec changes

lance6716 avatar Aug 09 '22 03:08 lance6716

/rebuild

ForwardStar avatar Aug 10 '22 03:08 ForwardStar

/run-check_dev

ForwardStar avatar Aug 10 '22 04:08 ForwardStar

/run-mysql-test

ForwardStar avatar Aug 10 '22 04:08 ForwardStar

/run-mysql-test

ForwardStar avatar Aug 10 '22 06:08 ForwardStar

/run-mysql-test

ForwardStar avatar Aug 10 '22 07:08 ForwardStar

/run-unit-test

ForwardStar avatar Aug 10 '22 08:08 ForwardStar

/run-integration-br-test

D3Hunter avatar Aug 12 '22 03:08 D3Hunter

/cc @buchuitoudegou @dsdashun

D3Hunter avatar Aug 18 '22 08:08 D3Hunter

ci pass, merged https://ci.pingcap.net/blue/organizations/jenkins/br_ghpr_unit_and_integration_test/detail/br_ghpr_unit_and_integration_test/12870/pipeline

D3Hunter avatar Aug 19 '22 02:08 D3Hunter

/merge

D3Hunter avatar Aug 19 '22 02:08 D3Hunter

This pull request has been accepted and is ready to merge.

Commit hash: 59d55ef6967243858d9da5ab697969328f9fb3ed

ti-chi-bot avatar Aug 19 '22 02:08 ti-chi-bot

cherry pick to release-5.4 in PR #37232

ti-srebot avatar Aug 19 '22 02:08 ti-srebot

cherry pick to release-6.1 in PR #37233

ti-srebot avatar Aug 19 '22 02:08 ti-srebot