You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The discard policy should be set to "new", but really for server 2.7.2+ since only this server handles discard policy "new" correctly for KV use-case, that is with "max msgs per subject" set: this will prevent new "keys" to be added, but discard old for a given "key" allowing KV delete/purge (adding tombstone) to be added on a given "key" (subject).
The Go client has implemented a change that updates the stream's discard policy if connecting to a v2.7.2+ and find that the stream exists with discard policy "old": nats-io/nats.go#917
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:
Overview
The discard policy should be set to "new", but really for server 2.7.2+ since only this server handles discard policy "new" correctly for KV use-case, that is with "max msgs per subject" set: this will prevent new "keys" to be added, but discard old for a given "key" allowing KV delete/purge (adding tombstone) to be added on a given "key" (subject).
The Go client has implemented a change that updates the stream's discard policy if connecting to a v2.7.2+ and find that the stream exists with discard policy "old": nats-io/nats.go#917
The behavior is documented in ADR-8.
Clients and Tools
Other 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: