StreamConfig adds discard_new_per_subject: boolean
on servers 2.9.2 and better
#160
Open
10 of 15 tasks
Labels
Overview
Stream configuration now adds the boolean property
discard_new_per_subject
. This new option works in conjunction ofthe
discard
and it is not valid (rejected by the server) if thediscard
policy is notnew
.The new option will prevent a message from being added to a stream if the
max_msgs_per_subject
limit for the subject has been reached, returning a{"error":{"code":503,"err_code":10077,"description":"maximum messages per subject exceeded"}, "stream":"KV_A","seq":0}
Clients and Tools
DiscardNewPerSubject
stream configuration nats.c#593Other Tasks
Implemented
Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.
The text was updated successfully, but these errors were encountered: