Skip to content

fix(jetstream): preserve deny_delete on KV updates#1

Open
sebholstein wants to merge 1 commit intomainfrom
fix/kv-update-preserve-deny-delete
Open

fix(jetstream): preserve deny_delete on KV updates#1
sebholstein wants to merge 1 commit intomainfrom
fix/kv-update-preserve-deny-delete

Conversation

@sebholstein
Copy link
Copy Markdown
Collaborator

Summary

  • Preserve deny_delete from the existing stream when preparing KV configs for update.
  • Avoid implicitly enabling deny_delete during UpdateKeyValue/PrepareKeyValueConfig flows.
  • Add regression test covering KV update behavior when the existing stream has deny_delete=false.

Validation

  • go test ./jetstream -run Test
  • go test -modfile=go_test.mod ./jetstream/test -run TestUpdateKeyValue_PreserveExistingDenyDelete

When preparing KV stream config for update, read existing stream settings and keep deny_delete unchanged. This prevents UpdateKeyValue/PrepareKeyValueConfig from implicitly enabling deny_delete on buckets created without it.
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.

1 participant