性能分析报错

【概述】场景+问题概述
性能分析不成功
【背景】做过哪些操作
点击性能分析
【现象】业务和数据库现象
image
image

{"error":true,"message":"error.api.other: record not found","code":"error.api.other","full_text":"error.api.other: record not found\

at github.com/pingcap/tidb-dashboard/pkg/apiserver/utils.NewAPIError()
\t/go/pkg/mod/github.com/pingcap/tidb-dashboard@v0.0.0-20210512074702-4ee3e3909d5e/pkg/apiserver/utils/error.go:67
at github.com/pingcap/tidb-dashboard/pkg/apiserver/utils.MWHandleErrors.func1()
\t/go/pkg/mod/github.com/pingcap/tidb-dashboard@v0.0.0-20210512074702-4ee3e3909d5e/pkg/apiserver/utils/error.go:96
at github.com/gin-gonic/gin.(*Context).Next()
\t/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/context.go:147
at github.com/gin-contrib/gzip.Gzip.func2()
\t/go/pkg/mod/github.com/gin-contrib/gzip@v0.0.1/gzip.go:47
at github.com/gin-gonic/gin.(*Context).Next()
\t/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/context.go:147
at github.com/gin-gonic/gin.RecoveryWithWriter.func1()
\t/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/recovery.go:83
at github.com/gin-gonic/gin.(*Context).Next()
\t/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/context.go:147
at github.com/gin-gonic/gin.(*Engine).handleHTTPRequest()
\t/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/gin.go:403
at github.com/gin-gonic/gin.(*Engine).ServeHTTP()
\t/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/gin.go:364
at github.com/pingcap/tidb-dashboard/pkg/apiserver.(*Service).handler()
\t/go/pkg/mod/github.com/pingcap/tidb-dashboard@v0.0.0-20210512074702-4ee3e3909d5e/pkg/apiserver/apiserver.go:198
at net/http.HandlerFunc.ServeHTTP()
\t/usr/local/go/src/net/http/server.go:2007
at github.com/pingcap/tidb-dashboard/pkg/utils.(*ServiceStatus).NewStatusAwareHandler.func1()
\t/go/pkg/mod/github.com/pingcap/tidb-dashboard@v0.0.0-20210512074702-4ee3e3909d5e/pkg/utils/service_status.go:79
at net/http.HandlerFunc.ServeHTTP()
\t/usr/local/go/src/net/http/server.go:2007
at net/http.(*ServeMux).ServeHTTP()
\t/usr/local/go/src/net/http/server.go:2387
at go.etcd.io/etcd/embed.(*accessController).ServeHTTP()
\t/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738/embed/serve.go:359
at net/http.serverHandler.ServeHTTP()
\t/usr/local/go/src/net/http/server.go:2802
at net/http.(*conn).serve()
\t/usr/local/go/src/net/http/server.go:1890
at runtime.goexit()
\t/usr/local/go/src/runtime/asm_amd64.s:1357"}
【业务影响】

【TiDB 版本】
Release Version: v5.0.2
Edition: Community
Git Commit Hash: dc40a093a0058b95fc859f60d4b84337dbdff9f6
Git Branch: heads/refs/tags/v5.0.2
UTC Build Time: 2021-06-07 08:42:39
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false

1 个赞
  1. 请问集群是从哪个低版本升级上来的,还是新建的?
    2 . 是否尝试过使用不同浏览器导出?

麻烦截个 profiling 详情界面的图(在点开出现这个页面的前一个页面),应该会有报错信息

这个?

从5.0升级来的。。
再不同浏览器上也是会报错

现在还报错吗?如果还报错,对报错的 TiDB server 节点执行 curl 手工抓取一下试试看 wget http://{TiDBIP}:10080/debug/pprof/profile?seconds=10

profile5 (136.3 KB) profile4 (108.0 KB)

麻烦反馈下 tikv 运行脚本 run_tikv.sh 内容,默认路径在 {Deploy Dir}/scripts 下面

从脚本内容看是正常的,和之前发现的一个问题不一样。你这边是只在这两个 tidb 节点有这个现象吗?在 dashboard 上点击性能分析后, tidb 的日志中有无异常信息,如果有的话麻烦提供下 tidb 的日志

这个问题正在内部分析,对 TiDB 集群正常使用应该没有影响,后面有结果会在该帖回复,辛苦了:pray:

执行的时候其中两个节点会报错,不一定是这两个

这个问题已经内部复现,计划在 5.0.4 修复,修复 issue 信息:https://github.com/pingcap/tidb-dashboard/pull/944

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。