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

release-23.1: kvserver: add a few Raft proposal trace events #104071

Merged
merged 1 commit into from
Jun 6, 2023
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
1 change: 1 addition & 0 deletions pkg/kv/kvserver/replica_proposal_buf.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ func (b *propBuf) FlushLockedWithRaftGroup(
ents = append(ents, raftpb.Entry{
Data: p.encodedCommand,
})
log.VEvent(p.ctx, 2, "flushing proposal to Raft")
}
}
if firstErr != nil {
Expand Down
2 changes: 2 additions & 0 deletions pkg/kv/kvserver/replica_raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ func (r *Replica) evalAndPropose(
"command is too large: %d bytes (max: %d)", quotaSize, maxSize,
))
}
log.VEventf(proposal.ctx, 2, "acquiring proposal quota (%d bytes)", quotaSize)
var err error
proposal.quotaAlloc, err = r.maybeAcquireProposalQuota(ctx, quotaSize)
if err != nil {
Expand Down Expand Up @@ -501,6 +502,7 @@ func (r *Replica) propose(
//
// NB: we must not hold r.mu while using the proposal buffer, see comment
// on the field.
log.VEvent(p.ctx, 2, "submitting proposal to proposal buffer")
err := r.mu.proposalBuf.Insert(ctx, p, tok.Move(ctx))
if err != nil {
return kvpb.NewError(err)
Expand Down