Skip to content

Commit

Permalink
bugfix sink: reset needSeqReset
Browse files Browse the repository at this point in the history
  • Loading branch information
twmb committed Apr 25, 2021
1 parent 314de8e commit 2b9b8ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kgo/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,7 @@ func (r *produceRequest) tryAddBatch(produceVersion int32, recBuf *recBuf, batch
}

if recBuf.needSeqReset && recBuf.batches[0] == batch {
recBuf.needSeqReset = false
recBuf.seq = 0
recBuf.batch0Seq = 0
}
Expand Down

0 comments on commit 2b9b8ca

Please sign in to comment.