Skip to content

Commit

Permalink
telemetry: fix panic on newer version (#50625) (#50638)
Browse files Browse the repository at this point in the history
close #50426
  • Loading branch information
ti-chi-bot authored Jan 22, 2024
1 parent df5553a commit 9b7ba9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/telemetry/data_cluster_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ func getClusterInfo(ctx context.Context, sctx sessionctx.Context) ([]*clusterInf
StatusPort: statusPort,
Version: row.GetString(3),
GitHash: row.GetString(4),
StartTime: row.GetString(5),
UpTime: row.GetString(6),
// check https://github.com/pingcap/tidb/issues/50426
// datatype is changed by https://github.com/pingcap/tidb/pull/29771
StartTime: row.GetTime(5).String(),
UpTime: row.GetString(6),
})
}
return r, nil
Expand Down

0 comments on commit 9b7ba9b

Please sign in to comment.