Skip to content

Conversation

@Hoiyeuhng
Copy link
Contributor

When editing a stream's replicas (or other properties) without specifying placement flags, the existing placement configuration would be unintentionally cleared. This happened because the code always initialized cfg.Placement = &api.Placement{} regardless of whether the user actually specified any placement options.

@Hoiyeuhng Hoiyeuhng marked this pull request as ready for review October 14, 2025 19:10
@ripienaar
Copy link
Collaborator

Can you tell me how to trigger this bug for nats stream so I can test the fix, probably ideal to add some tests that ensures this does not regress in future.

I tried with nats s edit -I ... and nats s edit --description x neither changed my placement rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants