Skip to content

Commit

Permalink
ddl: tiny update
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Mar 5, 2020
1 parent 943f125 commit 81cb0c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ddl/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,11 @@ func (d *ddl) start(ctx context.Context, ctxPool *pools.ResourcePool) {
tidbutil.WithRecovery(
func() { d.limitDDLJobs() },
func(r interface{}) {
logutil.BgLogger().Error("[ddl] limit DDL jobs meet panic",
zap.String("ID", d.uuid), zap.Reflect("r", r), zap.Stack("stack trace"))
metrics.PanicCounter.WithLabelValues(metrics.LabelDDL).Inc()
if r != nil {
logutil.BgLogger().Error("[ddl] limit DDL jobs meet panic",
zap.String("ID", d.uuid), zap.Reflect("r", r), zap.Stack("stack trace"))
metrics.PanicCounter.WithLabelValues(metrics.LabelDDL).Inc()
}
})
}()

Expand Down

0 comments on commit 81cb0c1

Please sign in to comment.