Skip to content

Commit

Permalink
Merge #33552
Browse files Browse the repository at this point in the history
33552: storage: reduce log spam from MaybeGossipSystemConfig r=andreimatei a=andreimatei

All replicas were logging at level 2 the fact that they're not the ones
who should be gossipping the system config. I've increased it to 3 to
separate it since it's a way more common message than others around at
level 2 (most replias are not in charge of the system config).

Also remove a stale comment.

Release note: None

Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
  • Loading branch information
craig[bot] and andreimatei committed Jan 8, 2019
2 parents b21797e + fc58a33 commit 1c3332b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storage/replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -6325,8 +6325,8 @@ func (r *Replica) shouldGossip() bool {
}

// MaybeGossipSystemConfig scans the entire SystemConfig span and gossips it.
// The first call is on NewReplica. Further calls come from the trigger on
// EndTransaction or range lease acquisition.
// Further calls come from the trigger on EndTransaction or range lease
// acquisition.
//
// Note that MaybeGossipSystemConfig gossips information only when the
// lease is actually held. The method does not request a range lease
Expand All @@ -6348,7 +6348,7 @@ func (r *Replica) MaybeGossipSystemConfig(ctx context.Context) error {
return nil
}
if !r.ContainsKey(keys.SystemConfigSpan.Key) {
log.VEventf(ctx, 2,
log.VEventf(ctx, 3,
"not gossiping system config because the replica doesn't contain the system config's start key")
return nil
}
Expand Down

0 comments on commit 1c3332b

Please sign in to comment.