Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StreamConfig adds discard_new_per_subject: boolean on servers 2.9.2 and better #160

Open
10 of 15 tasks
aricart opened this issue Sep 27, 2022 · 0 comments
Open
10 of 15 tasks
Assignees
Labels
client Client related work enhancement New feature or request

Comments

@aricart
Copy link
Member

aricart commented Sep 27, 2022

Overview

Stream configuration now adds the boolean property discard_new_per_subject. This new option works in conjunction of
the discard and it is not valid (rejected by the server) if the discard policy is not new.

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

Other Tasks

  • docs.nats.io updated @jnmoyne
  • Update ADR to Implemented
  • Update client features spreadsheet

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Client related work enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants