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

insert id gets lost for unsharded auto-inc from mysql #2804

Closed
sougou opened this issue Apr 28, 2017 · 11 comments
Closed

insert id gets lost for unsharded auto-inc from mysql #2804

sougou opened this issue Apr 28, 2017 · 11 comments
Assignees
Milestone

Comments

@sougou
Copy link
Contributor

sougou commented Apr 28, 2017

A recent fix (#2576) accidentally missed the use case where there may still be mysql tables with traditional auto-inc columns.

@harshit-gangal do you need a 2.1 patch for this fix?

@sougou sougou self-assigned this Apr 28, 2017
@bbeaudreault
Copy link
Contributor

Yikes. Good find. This would be a problem for us, though we run master and can pull in a fix as soon as it's ready

@bbeaudreault
Copy link
Contributor

I feel like this is worthy of a 2.1.1 though

@harshit-gangal
Copy link
Member

Yes. It would be good to release the patch.
Otherwise we have to cherry pick.

@michael-berlin
Copy link
Contributor

I can create a 2.1.1 release.

sougou added a commit to sougou/vitess that referenced this issue Apr 28, 2017
The change preserves the insert id coming from mysql autoinc
for unsharded tables.
sougou added a commit that referenced this issue Apr 29, 2017
The change preserves the insert id coming from mysql autoinc
for unsharded tables.
@sougou
Copy link
Contributor Author

sougou commented Apr 29, 2017

@harshit-gangal Let us know if you're done with the certification. If so, we can cut 2.1.1. Otherwise, we'll wait to see if you run into other issues.

@harshit-gangal
Copy link
Member

I am validating 2PC.

There is one finding, which we already have discussed that vttablet currently accept one coordinator address. If VTGates are not under service discovery / Load Balancer then there should be a way to add multiple coordinator addresses.

We can create a feature request and can work later, if we want to cut 2.1.1 as this is genuine bug.

@sougou
Copy link
Contributor Author

sougou commented Apr 30, 2017

Let's wait till you're done with 2PC then, make sure you don't run into any showstoppers.

@sougou sougou added this to the v2.1 milestone Apr 30, 2017
@michael-berlin michael-berlin modified the milestones: v2.1.1, v2.1 May 1, 2017
@Rastusik
Copy link
Contributor

@sougou are there any estimates when #v2.1.1 will be released?

@michael-berlin
Copy link
Contributor

I'll start publishing the 2.1.1 release and only include the auto inc fix.

The 2PC validation went fine overall. harshit-gangal found a corner case which could be resolved manually if you run into it: #2850 Sugu will fix that separately and we can do another patch release once he's done with the fix.

@Rastusik
Copy link
Contributor

thank you

michael-berlin pushed a commit that referenced this issue May 22, 2017
The change preserves the insert id coming from mysql autoinc
for unsharded tables.
@michael-berlin
Copy link
Contributor

https://github.com/youtube/vitess/releases/tag/v2.1.1 is cut and pushed everywhere.

I'm closing this issue because it's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants