Skip to content

Commit

Permalink
Fixed message dequeue in RecoverNotAllowedError error handlng
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanayx committed Nov 21, 2024
1 parent 93bd8f6 commit cc997db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Pulsar.Client/Internal/ProducerImpl.fs
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ type internal ProducerImpl<'T> private (producerConfig: ProducerConfiguration, c
let pendingMessage = pendingMessages.Peek()
let expectedSequenceId = getHighestSequenceId pendingMessage
if sequenceId = expectedSequenceId then
dequeuePendingMessage pendingMessage
failPendingMessage pendingMessage (
prefix + ": the size of the message is not allowed" |> NotAllowedException
)
Expand Down

0 comments on commit cc997db

Please sign in to comment.