From 6401cb4122468bd6a60638b1d6c23cf16c9c8f4a Mon Sep 17 00:00:00 2001 From: Austen McClernon Date: Thu, 19 Sep 2024 11:18:23 -0400 Subject: [PATCH 1/2] replica_rac2: vlog when enabling v2 protocol Part of: #130187 Release note: None --- pkg/kv/kvserver/kvflowcontrol/replica_rac2/processor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/kv/kvserver/kvflowcontrol/replica_rac2/processor.go b/pkg/kv/kvserver/kvflowcontrol/replica_rac2/processor.go index ed42c9f5b628..9e7718ea8ec4 100644 --- a/pkg/kv/kvserver/kvflowcontrol/replica_rac2/processor.go +++ b/pkg/kv/kvserver/kvflowcontrol/replica_rac2/processor.go @@ -557,6 +557,7 @@ func (p *processorImpl) SetEnabledWhenLeaderRaftMuLocked( if level != EnabledWhenLeaderV1Encoding || p.desc.replicas == nil { return } + log.VEventf(ctx, 1, "enabled v2 protocol using v1 priority encoding") // May need to create RangeController. var leaderID roachpb.ReplicaID var term uint64 From b2af1b60f00eeb8c577d7b8c8b4e29050b2e40e7 Mon Sep 17 00:00:00 2001 From: Austen McClernon Date: Fri, 20 Sep 2024 11:21:36 -0400 Subject: [PATCH 2/2] rac2: vlog when replica transitions to probe Part of: #130187 Release note: None --- pkg/kv/kvserver/kvflowcontrol/rac2/range_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/kv/kvserver/kvflowcontrol/rac2/range_controller.go b/pkg/kv/kvserver/kvflowcontrol/rac2/range_controller.go index 20cc42f4116e..b21d1d9175e1 100644 --- a/pkg/kv/kvserver/kvflowcontrol/rac2/range_controller.go +++ b/pkg/kv/kvserver/kvflowcontrol/rac2/range_controller.go @@ -855,6 +855,8 @@ func (rss *replicaSendStream) closeLocked(ctx context.Context) { } func (rss *replicaSendStream) changeToProbeLocked(ctx context.Context, now time.Time) { + log.VEventf(ctx, 1, "r%v:%v stream %v changing to probe", + rss.parent.parent.opts.RangeID, rss.parent.desc, rss.parent.stream) // This is the first time we've seen the replica change to StateProbe, // update the connected state and start time. If the state doesn't // change within probeRecentlyReplicateDuration, we will close the