Skip to content

Commit

Permalink
domain: update the schema check outdate metric (#11134)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored and jackysp committed Jul 9, 2019
1 parent 8104494 commit a4b9350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/schema_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ func (s *SchemaChecker) Check(txnTS uint64) error {
metrics.SchemaLeaseErrorCounter.WithLabelValues("changed").Inc()
return ErrInfoSchemaChanged
case ResultUnknown:
metrics.SchemaLeaseErrorCounter.WithLabelValues("outdated").Inc()
time.Sleep(time.Duration(schemaOutOfDateRetryInterval))
}

}
metrics.SchemaLeaseErrorCounter.WithLabelValues("outdated").Inc()
return ErrInfoSchemaExpired
}

0 comments on commit a4b9350

Please sign in to comment.