Skip to content

Commit

Permalink
storage: add metric for batch write kv (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoppro committed Aug 7, 2019
1 parent 28120ab commit 5e09193
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pump/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ func (a *Append) writeBatchToKV(bufReqs []*request) error {
a.headPointer = bufReqs[len(bufReqs)-1].valuePointer
return nil
}
errorCount.WithLabelValues("batch_write_kv").Add(1.0)

// when write to vlog success, but the disk is full when write to KV here, it will cause write err
// we just retry of quit when Append is closed
Expand Down

0 comments on commit 5e09193

Please sign in to comment.