Skip to content

Commit

Permalink
fix: prometheus.samples table init failed
Browse files Browse the repository at this point in the history
  • Loading branch information
lzf575 committed Sep 26, 2024
1 parent ea70a1b commit 551b7e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/ingester/prometheus/dbwriter/prometheus_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ func (w *PrometheusWriter) updateAppLabelValueIdColumns(orgID uint16, appLabelCo
if err != nil {
return err
}
// the prometheus.samples table has not been created yet, so there is no need to update the columns.
if currentCount == 0 {
return nil
}
maxLabelColumnIndex, err := w.getMaxAppLabelColumnIndex(orgDatabase)
if err != nil {
log.Warning(err)
Expand Down

0 comments on commit 551b7e6

Please sign in to comment.