Skip to content

vtgate/buffer: Do not start buffering on errno 2006. - #2524

Merged
michael-berlin merged 1 commit into
vitessio:masterfrom
michael-berlin:export
Feb 1, 2017
Merged

michael-berlin merged 1 commit into
vitessio:masterfrom
michael-berlin:export

Conversation

@michael-berlin

Copy link
Copy Markdown
Contributor

This error condition is too broad. It happens when MySQL kills the connection to vttablet and must not be related to a failover.

NOTE: This change is already LGTM'd internally and does not need to be approved again.

This error condition is too broad. It happens when MySQL kills the connection to vttablet and must not be related to a failover.
@alainjobart

Copy link
Copy Markdown
Contributor

I understand it all better now:
2006 is when the client fails to write the request
2013 is when the client sent a request, and fails to read the response.

Both can happen when mysql kills a connection, which Vitess does when a query times out and we kill it. So yeah, no buffering these.

@michael-berlin

Copy link
Copy Markdown
Contributor Author

Yeah, exactly. That's what Sugu told me as well and based on that I'm removing 2006 from the whitelist again.

Merging now.

@michael-berlin
michael-berlin merged commit 8bf386b into vitessio:master Feb 1, 2017
@michael-berlin
michael-berlin deleted the export branch February 1, 2017 02:58
frouioui added a commit to planetscale/vitess that referenced this pull request Mar 26, 2024
… optimizing `vtadmin` build (vitessio#2524)

Co-authored-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

3 participants