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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/jetstream_bridge/topology/stream.rb +7 -3
- data/lib/jetstream_bridge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa4616ea064fcf04741b61ed07981980f47944e4cae10624605e5b5aed990990
|
|
4
|
+
data.tar.gz: 5eacc8c962149d70e1b6b8dc05588fd6b568dbc6112cbf04eaa70895d0d3969f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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;
|
|
133
|
+
# Retention is immutable; if different, skip all updates to avoid 10052 error.
|
|
135
134
|
have_ret = info.config.retention.to_s.downcase
|
|
136
|
-
|
|
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
|