pingcap/tidb

Failed Query OPM only counts the error count for ComQuery

Open

#16.384 aberto em 15 de abr. de 2020

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Go (6.186 forks)batch import
component/metricshelp wantedseverity/minorsig/executiontype/bug

Métricas do repositório

Stars
 (40.090 stars)
Métricas de merge de PR
 (Mesclagem média 14d 4h) (346 fundiu PRs em 30d)

Description

Bug Report

Now, we count the error count in handleQuery which is only valid for ComQuery. Actually, we should count the error for all commands. Or, some errors may be lost if the command is not ComQuery.

https://github.com/pingcap/tidb/blob/master/server/conn.go#L1270-L1287

Guia do colaborador