Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(replica_)rac2: add misc vlog statements on transitions #131107

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/kv/kvserver/kvflowcontrol/rac2/range_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkg/kv/kvserver/kvflowcontrol/replica_rac2/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading