Skip to content

Commit

Permalink
[dbnode] Log namespace and shard upon invalid series read/write count (
Browse files Browse the repository at this point in the history
  • Loading branch information
linasm authored Jan 15, 2021
1 parent eb36d4b commit 408c048
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dbnode/storage/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,9 @@ func (s *dbShard) purgeExpiredSeries(expiredEntries []*lookup.Entry) {
// The contract requires all entries to have count >= 1.
if count < 1 {
s.logger.Error("purgeExpiredSeries encountered invalid series read/write count",
zap.String("series", series.ID().String()),
zap.Stringer("namespace", s.namespace.ID()),
zap.Uint32("shard", s.ID()),
zap.Stringer("series", series.ID()),
zap.Int32("readerWriterCount", count))
continue
}
Expand Down

0 comments on commit 408c048

Please sign in to comment.