Skip to content

Commit

Permalink
kgo: add missing debug statement for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
twmb committed May 9, 2024
1 parent bf1d48a commit 523c702
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/kgo/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,9 @@ func (s *sink) handleReqRespBatch(
batch.owner.okOnSink = false

if moving := kmove.maybeAddProducePartition(resp, rp, batch.owner); moving {
fmt.Fprintf(b, "move:%d:%d@%d,%d}, ", rp.CurrentLeader.LeaderID, rp.CurrentLeader.LeaderEpoch, rp.BaseOffset, nrec)
if debug {
fmt.Fprintf(b, "move:%d:%d@%d,%d}, ", rp.CurrentLeader.LeaderID, rp.CurrentLeader.LeaderEpoch, rp.BaseOffset, nrec)
}
batch.owner.failing = true
return true, false
}
Expand Down

0 comments on commit 523c702

Please sign in to comment.