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

cloudstorage(ticdc): Remove nfs schema file check #10138

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

sdojjy
Copy link
Member

@sdojjy sdojjy commented Nov 23, 2023

What problem does this PR solve?

Issue Number: close #10137

What is changed and how it works?

this pr remove the schema file checking, because some cdc will generate a tmp file and then rename it, but these two operation is not atomic,so if ticdc is stopped after generating the tmp file, cdc has no chance to rename the tmp file, cdc will panic again and again because of the checking logic

Check List

Tests

  • Manual test (add detailed scripts or steps below)
  1. create a changefeed with cloud storage sink, and the storage use local file system
  2. add a invalid file manually, the file name is something like schema_{tableVersion}_{checksum}.json.tmp.{uuid}
  3. check if cdc is panic
  4. check the CDC warning log

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 release-note-none Denotes a PR that doesn't merit a release note. needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 23, 2023
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Nov 23, 2023
@sdojjy
Copy link
Member Author

sdojjy commented Nov 23, 2023

/test cdc-integration-storage-test

@ti-chi-bot ti-chi-bot bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 24, 2023
@ti-chi-bot ti-chi-bot bot added the lgtm label Nov 24, 2023
Copy link
Contributor

ti-chi-bot bot commented Nov 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hicqu, nongfushanquan

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:

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 removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Nov 24, 2023
Copy link
Contributor

ti-chi-bot bot commented Nov 24, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-11-23 03:25:29.332537788 +0000 UTC m=+461157.997763983: ☑️ agreed by hicqu.
  • 2023-11-24 01:53:21.793319221 +0000 UTC m=+542030.458545417: ☑️ agreed by nongfushanquan.

@sdojjy
Copy link
Member Author

sdojjy commented Nov 24, 2023

/test cdc-integration-mysql-test

@ti-chi-bot ti-chi-bot bot merged commit 63c32ff into pingcap:master Nov 24, 2023
13 of 14 checks passed
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.1: #10152.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.5: #10153.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-6.5: #10154.

@sdojjy sdojjy deleted the remove-nfs-schema-file-check branch November 24, 2023 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. 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 panic because of no table schema file found in an non-empty meta path
4 participants