Skip to content

vtgate: Report TRANSIENT_ERROR as info error to avoid alerting on it. - #2491

Merged
michael-berlin merged 1 commit into
vitessio:masterfrom
michael-berlin:b26755052_vtgate_buffer
Jan 23, 2017
Merged

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

Conversation

@michael-berlin

Copy link
Copy Markdown
Contributor

By default, each error increments the variable "VtgateApiErrorCounts".

However, some errors are excluded as informational errors because they do not signal a problem within vtgate.

This commit changes the reporting of TRANSIENT_ERRORS from the "VtgateApiErrorCounts" variable to "VtgateInfoErrorCounts".

This is necessary because this error code is used by the vtgate buffer to signal an internal error condition e.g. that the buffer is full. In this particular case, the request cannot be buffered and instead the client should retry. Another known usage is the vttablet transaction throttler when it rejects a transaction as throttled.

BUG=26755052

By default, each error increments the variable "VtgateApiErrorCounts".

However, some errors are excluded as informational errors because they do not signal a problem within vtgate.

This commit changes the reporting of TRANSIENT_ERRORS from the "VtgateApiErrorCounts" variable to "VtgateInfoErrorCounts".

This is necessary because this error code is used by the vtgate buffer to signal an internal error condition e.g. that the buffer is full. In this particular case, the request cannot be buffered and instead the client should retry. Another known usage is the vttablet transaction throttler when it rejects a transaction as throttled.

BUG=26755052
@michael-berlin
michael-berlin merged commit c587ff9 into vitessio:master Jan 23, 2017
@michael-berlin
michael-berlin deleted the b26755052_vtgate_buffer branch January 23, 2017 07:13
frouioui pushed a commit to planetscale/vitess that referenced this pull request Mar 26, 2024
…we set replication source (vitessio#2491)

* cherry pick of 13377

* feat: fix all the tests

Signed-off-by: Manan Gupta <manan@planetscale.com>

---------

Signed-off-by: Manan Gupta <manan@planetscale.com>
Co-authored-by: Manan Gupta <manan@planetscale.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