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

Do vschema_customer_sharded.json before create_customer_sharded.sql. #7210

Merged
merged 2 commits into from
Dec 23, 2020
Merged

Conversation

jfg956
Copy link
Contributor

@jfg956 jfg956 commented Dec 21, 2020

When doing create_customer_sharded.sql (removing auto-increments) before vschema_customer_sharded.json (applying VIndex), there is a short period of time where INSERTs in the customer and corder tables would fail if the customer_id or order_id is not set. Doing vschema_customer_sharded.json before create_customer_sharded.sql remove this failure possibility.

When doing create_customer_sharded.sql (removing auto-increments) before vschema_customer_sharded.json (applying VIndex), there is a short period of time where INSERTs in the customer and corder tables would fail if the customer_id or order_id is not set.  Doing vschema_customer_sharded.json before create_customer_sharded.sql remove this failure possibility.

Signed-off-by: Jean-François Gagné <jfg956@users.noreply.github.com>
@jfg956
Copy link
Contributor Author

jfg956 commented Dec 21, 2020

Related: vitessio/website#647

Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

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

lgtm
nice catch

@rohit-nayak-ps
Copy link
Contributor

@shlomi-noach , before merging this just wanted to check with you about this failing test: https://github.com/vitessio/vitess/pull/7210/checks?check_run_id=1591367702. Is this related to your internal post this morning about the failing docker test?

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Contributor

shlomi-noach commented Dec 23, 2020

Is this related to your internal post this morning

It is. Just merged upstream/master into this branch and will follow up to confirm the test passes.

@shlomi-noach
Copy link
Contributor

@rohit-nayak-ps tests now pass. I'll also keep an eye for other PRs. Merging this one.

@shlomi-noach shlomi-noach merged commit a3370f5 into vitessio:master Dec 23, 2020
@askdba askdba added this to the v9.0 milestone Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants