pingcap/tidb

Failed Query OPM only counts the error count for ComQuery

Open

#16.384 geöffnet am 15. Apr. 2020

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (6.186 Forks)batch import
component/metricshelp wantedseverity/minorsig/executiontype/bug

Repository-Metriken

Stars
 (40.090 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 4h) (346 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide