-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bug Report: ERROR 2013 (HY000): Lost connection to MySQL server during query #13021
Comments
Hi Folks - I would be willing to working on this issue and submit a PR with a little help. It's been a few years since I've looked at
|
As you suggested. The test needs to be added in |
Thanks for test location. I'll pick this up after I get back from a vacation. |
Ok, I just started to look at the testing setup for this change, and I have to admit I'm not sure that I understand the configuration. My Golang is very rusty, so I thought I would confirm some of my current understanding.
Based on my understanding, I think the tests are missing:
I could be way off here, but I could use some help to point me in the right direction? Or, if it's easier for someone else to commandeer this issue, that would be fine too. |
Overview of the Issue
This issue is based on an initial discussion in Slack (see here for context). I'm trying to set up a subsharding configuration and have run into an error when performing a JOIN operation. The query with the
join
statement and the error I'm getting is below:Reproduction Steps
To reproduce this error, I have created two tables a customers table and users table. Each customer can have many
users. I would like the primary shard key to be customer_id, with the subsharding key to be user_id. The tables definitions are below:
users
andcustomers
tablesThe
vschema
definition file I used with theusers
andcustomers
tables is below:users
andcustomers
tables. These are configured in a separate un-shareded clustervtgate.out.txt
vtgate.ERROR.txt
vtgate.INFO.txt
vtgate.WARNING.txt
Binary Version
This is error was found using the local docker built image, which is running on a Mac OS Ventura Version 13.3.1 (22E261). The docker container info:
vitess@6a0a6ee5c240:/vt/local$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
vitess@6a0a6ee5c240:/vt/local$ uname -sr
Linux 5.15.49-linuxkit
vitess@6a0a6ee5c240:/vt/local$ uname -m
x86_64
Log Fragments
This leads to a function in the
sharded_routing.go:330
:I added the following case:
NOTE: This addition fixed the error message and I was able to successfully execute the JOIN query.
The text was updated successfully, but these errors were encountered: