jetstream_bridge 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 358b977021f3b620cbbedb6af88bca009060f2da62ec932cbdcf5db1e3b0b375
4
- data.tar.gz: 4f0ca0e54a96aee5971460c2be2fdeac82e5f6df00fc70a17fb90e472e91e1ee
3
+ metadata.gz: fa4616ea064fcf04741b61ed07981980f47944e4cae10624605e5b5aed990990
4
+ data.tar.gz: 5eacc8c962149d70e1b6b8dc05588fd6b568dbc6112cbf04eaa70895d0d3969f
5
5
  SHA512:
6
- metadata.gz: 550efc74885ce2b4d2fbc86742bf0db0dabdf402b64c6b072a3007b435946e09f460f5b759f1f027a3ba4ed8211b9a807ff6f157b075179d2901284703097b47
7
- data.tar.gz: '09478489b9e13b897979657cb5fa5dd6da90f9399ad4e09d7f5e0436c9fc881e02c1ffc2c7441834d72dff3c9549b846d199c4cb6bf5adee845babb4877235ae'
6
+ metadata.gz: 16f82dca9bc584f85b01ec9fc5934980c2ffd6be87a8eaa8691af5fb8902ce7c737eaf5ee638d41b0a62396870f4d51d9b0684015a959893b4c9c2677b6ae84b
7
+ data.tar.gz: db6b1268c39dfe997ad95f805c9a2553655e75cb2004cc78c1ed09968797ce7a9668a1e6bbe24fa1c98877b5bb9986cce21e4da7212297a947b2c554e30fb876
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [4.0.2] - 2025-11-23
9
+
10
+ ### Fixed
11
+
12
+ - **Stream Updates** - Prevent retention policy change errors (NATS error 10052)
13
+ - Skip all stream updates when retention policy differs from expected 'workqueue'
14
+ - Prevents "stream configuration update can not change retention policy to/from workqueue" error
15
+ - Logs warning when stream has mismatched retention policy but skips update
16
+ - Ensures compatibility with existing streams that have different retention policies
17
+
8
18
  ## [4.0.1] - 2025-11-23
9
19
 
10
20
  ### Fixed
@@ -129,11 +129,15 @@ module JetstreamBridge
129
129
  def ensure_update(jts, name, info, desired_subjects)
130
130
  existing = StreamSupport.normalize_subjects(info.config.subjects || [])
131
131
  to_add = StreamSupport.missing_subjects(existing, desired_subjects)
132
- add_subjects(jts, name, existing, to_add) if to_add.any?
133
132
 
134
- # Retention is immutable; warn if different and do not include on update.
133
+ # Retention is immutable; if different, skip all updates to avoid 10052 error.
135
134
  have_ret = info.config.retention.to_s.downcase
136
- StreamSupport.log_retention_mismatch(name, have: have_ret, want: RETENTION) if have_ret != RETENTION
135
+ if have_ret != RETENTION
136
+ StreamSupport.log_retention_mismatch(name, have: have_ret, want: RETENTION)
137
+ return
138
+ end
139
+
140
+ add_subjects(jts, name, existing, to_add) if to_add.any?
137
141
 
138
142
  # Storage can be updated; do it without passing retention.
139
143
  have_storage = info.config.storage.to_s.downcase
@@ -4,5 +4,5 @@
4
4
  #
5
5
  # Version constant for the gem.
6
6
  module JetstreamBridge
7
- VERSION = '4.0.1'
7
+ VERSION = '4.0.2'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetstream_bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Attara