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

ddl: adjust the way of checking all schema versions #7319

Merged
merged 2 commits into from Aug 9, 2018

Conversation

zimulala
Copy link
Contributor

@zimulala zimulala commented Aug 8, 2018

What have you changed? (mandatory)

In PR #6955, we have two workers to generate the latest schema version and update the global version. The case as follows(about 1 TiDB server):
Worker1's latest schema version is 134, it updates the global version on PD to 134.
Then worker2's latest schema version is 135, it updates the global version on PD to 135.
And the server loads information schema version 135.
Worker2 handles "OwnerCheckAllVersions" successfully.
But at this time, worker1 will meet the log like syncer.go:344: [info] [syncer] check all versions, ddl /tidb/ddl/all_schema_versions/317220cc-7fc6-4930-a1c0-21fa615de376 is not synced, current ver 135, latest version 134, continue checking when handling "OwnerCheckAllVersions".

What is the type of the changes? (mandatory)

  • Improvement (non-breaking change which is an improvement to an existing feature)

How has this PR been tested? (mandatory)

Relate to pingcap/tidb-test#598

Does this PR affect documentation (docs/docs-cn) update? (mandatory)

No.

Does this PR affect tidb-ansible update? (mandatory)

No.

Does this PR need to be added to the release notes? (mandatory)

No.

Refer to a related PR or issue link (optional)

Benchmark result if necessary (optional)

Add a few positive/negative examples (optional)

@zimulala
Copy link
Contributor Author

zimulala commented Aug 8, 2018

/run-all-tests

Copy link
Member

@shenli shenli left a comment

Choose a reason for hiding this comment

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

LGTM

@shenli shenli added status/LGT1 Indicates that a PR has LGTM 1. status/all tests passed labels Aug 9, 2018
@zimulala
Copy link
Contributor Author

zimulala commented Aug 9, 2018

PTAL @coocood @winkyao @tiancaiamao

@coocood
Copy link
Member

coocood commented Aug 9, 2018

LGTM

Copy link
Contributor

@ciscoxll ciscoxll left a comment

Choose a reason for hiding this comment

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

LGTM

@coocood coocood added status/LGT3 The PR has already had 3 LGTM. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 9, 2018
@coocood coocood merged commit fe6e710 into pingcap:master Aug 9, 2018
@zimulala zimulala deleted the check-all branch August 14, 2018 08:45
@you06 you06 added the sig/sql-infra SIG: SQL Infra label Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra status/LGT3 The PR has already had 3 LGTM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants