jetstream.PublishMsgAsync
ignores jetstream.WithRetryAttempts
and jetstream.WithRetryWait
options
#1462
Labels
defect
Suspected defect such as a bug or regression
Observed behavior
Both
jetstream.PublishMsgAsync
andjetstream.PublishMsg
acceptjetstream.WithRetryAttempts
andjetstream.WithRetryWait
options. ButPublishMsgAsync
silently ignores them.This is slightly related to #1461. Our code expects to use
PublishMsgAsync
to continuously publish messages to a durable stream. One error path is where the stream is not yet configured or is not sized correctly (e.g. NGS limits exceeded). In that case, the (attempted) solution was to allow for a certain number of retries with backoff. But as seen in #1461, theErrNoStreamResponse
is not reliable, but additionally, the retry/wait logic doesn't work either.Expected behavior
jetstream.PublishMsgAsync
to handle retries and waits.Server and client version
client: v1.31.0
server: v2.10.3
Host environment
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: