Update module github.com/nats-io/nats-server/v2 to v2.10.26 #67

Merged
kjuulh merged 1 commits from renovate/all into main 2025-02-26 02:11:10 +01:00
Owner

This PR contains the following updates:

Package Type Update Change
github.com/nats-io/nats-server/v2 require patch v2.10.25 -> v2.10.26

Release Notes

nats-io/nats-server (github.com/nats-io/nats-server/v2)

v2.10.26

Compare Source

Changelog

Refer to the 2.10 Upgrade Guide for backwards compatibility notes with 2.9.x.

Go Version
Dependencies
  • github.com/nats-io/nats.go v1.39.1 (#​6574)
  • golang.org/x/crypto v0.34.0 (#​6574)
  • golang.org/x/sys v0.30.0 (#​6487)
  • golang.org/x/time v0.10.0 (#​6487)
  • github.com/nats-io/nkeys v0.4.10 (#​6494)
  • github.com/klauspost/compress v1.18.0 (#​6565)
Added

General

  • New server option no_fast_producer_stall allows disabling the stall gates, instead preferring to drop messages to consumers that would have resulted in a stall instead (#​6500)
  • New server option first_info_timeout to control how long a leafnode connection should wait for the initial connection info, useful for high latency links (#​5424)

Monitoring

  • The gatewayz monitoring endpoint can now return subscription information (#​6525)
Improved

General

  • The configured write deadline is now applied to only the current batch of write vectors (with a maximum of 64MB), making it easier to configure and reason about (#​6471)
  • Publishing through a service import to an account with no interest will now generate a "no responders" error instead of silently dropping the message (#​6532)
  • Adjust the stall gate for producers to be less penalizing (#​6568, #​6579)

JetStream

  • Consumer signaling from streams has been optimized, taking consumer filters into account, significantly reducing CPU usage and overheads when there are a large number of consumers with sparse or non-overlapping interest (#​6499)
  • Num pending with multiple filters, enforcing per-subject limits and loading the per-subject info now use a faster subject tree lookup with fewer allocations (#​6458)
  • Optimizations for calculating num pending etc. by handling literal subjects using a faster path (#​6446)
  • Optimizations for loading the next message with multiple filters by avoiding linear scans in message blocks in some cases, particularly where there are lots of deletes or a small number of subjects (#​6448)
  • Avoid unnecessary system time calls when ranging a large number of interior deletes, reducing CPU time (#​6450)
  • Removed unnecessary locking around finding out if Raft groups are leaderless, reducing contention (#​6438)
  • Improved the error message when trying to change the consumer type (#​6408)
  • Improved the error messages returned by healthz to be more descriptive about why the healthcheck failed (#​6416)
  • The limit of concurrent disk I/O operations that JetStream can perform simultaneously has been raised (#​6449)
  • Reduced the number of allocations needed for handling client info headers around the JetStream API and service imports/exports (#​6453)
  • Calculating the starting sequence for a source consumer has been optimized for streams where there are many interior deletes (#​6461)
  • Messages used for cluster replication are now correctly accounted for in the statistics of the origin account (#​6474)
  • Reduce the amount of time taken for cluster nodes to start campaigning in some cases (#​6511)
  • Reduce memory allocations when writing new messages to the filestore write-through cache (#​6576)

Monitoring

  • The routez endpoint now reports pending_bytes (#​6476)
Fixed

General

  • The max_closed_clients option is now parsed correctly from the server configuration file (#​6497)

JetStream

  • A bug in the subject state tracking that could result in in consumers skipping messages on interest or WQ streams has been fixed (#​6526)
  • A data race between the stream config and looking up streams has been fixed (#​6424) Thanks to @​evankanderson!
  • Fixed an issue where Raft proposals were incorrectly dropped after a peer remove operation, which could result in a stream desync (#​6456)
  • Stream disk reservations will no longer be counted multiple times after stream reset errors have occurred (#​6457)
  • Fixed an issue where a stream could desync if the server exited during a catchup (#​6459)
  • Fixed a deadlock that could occur when cleaning up large numbers of consumers that have reached their inactivity threshold (#​6460)
  • A bug which could result in stuck consumers after a leader change has been fixed (#​6469)
  • Fixed an issue where it was not possible to update a stream or consumer if up against the max streams or max consumers limit (#​6477)
  • The preferred stream leader will no longer respond if it has not completed setting up the Raft node yet, fixing some API timeouts on stream info and other API calls shortly after the stream is created (#​6480)
  • Auth callouts can now correctly authenticate the username and password or authorization token from a leafnode connection (#​6492)
  • Stream ingest from an imported subject will now continue to work correctly after an update to imports/exports via a JWT update (#​6498)
  • Parallel stream creation requests for the same stream will no longer incorrectly return a limits error when max streams is configured (#​6502)
  • Consumers created or recreated while a cluster node was down are now handled correctly after a snapshot when the node comes back online (#​6507)
  • Invalidate entries in the pending append entry cache correctly, reducing the chance of an incorrect apply (#​6513)
  • When compacting or truncating streams or logs, correctly clean up the delete map, fixing potential memory leaks and the potential for index.db to not be recovered correctly after a restart (#​6515)
  • Retry removals from acks if they have been missed due to the consumer ack floor being ahead of the stream applies, correcting a potential stream drift across replicas (#​6519)
  • When recovering from block files, do not put deleted messages below the first sequence into the delete map (#​6521)
  • Preserve max delivered messages with interest retention policy using the redelivered state, such that a new consumer will not unexpectedly remove the message (#​6575)

Leafnodes

  • Do not incorrectly send duplicate messages when a queue group has members across different leafnodes when connected through a gateway (#​6517)

WebSockets

  • Fixed a couple cases where memory may not be reclaimed from Flate compressors correctly after a WebSocket client disconnect or error scenario (#​6451)

Tests

Complete Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server) | require | patch | `v2.10.25` -> `v2.10.26` | --- ### Release Notes <details> <summary>nats-io/nats-server (github.com/nats-io/nats-server/v2)</summary> ### [`v2.10.26`](https://github.com/nats-io/nats-server/releases/tag/v2.10.26) [Compare Source](https://github.com/nats-io/nats-server/compare/v2.10.25...v2.10.26) #### Changelog Refer to the [2.10 Upgrade Guide](https://docs.nats.io/release-notes/whats_new/whats_new\_210) for backwards compatibility notes with 2.9.x. ##### Go Version - 1.23.6 ([#&#8203;6452](https://github.com/nats-io/nats-server/issues/6452)) ##### Dependencies - github.com/nats-io/nats.go v1.39.1 ([#&#8203;6574](https://github.com/nats-io/nats-server/issues/6574)) - golang.org/x/crypto v0.34.0 ([#&#8203;6574](https://github.com/nats-io/nats-server/issues/6574)) - golang.org/x/sys v0.30.0 ([#&#8203;6487](https://github.com/nats-io/nats-server/issues/6487)) - golang.org/x/time v0.10.0 ([#&#8203;6487](https://github.com/nats-io/nats-server/issues/6487)) - github.com/nats-io/nkeys v0.4.10 ([#&#8203;6494](https://github.com/nats-io/nats-server/issues/6494)) - github.com/klauspost/compress v1.18.0 ([#&#8203;6565](https://github.com/nats-io/nats-server/issues/6565)) ##### Added General - New server option `no_fast_producer_stall` allows disabling the stall gates, instead preferring to drop messages to consumers that would have resulted in a stall instead ([#&#8203;6500](https://github.com/nats-io/nats-server/issues/6500)) - New server option `first_info_timeout` to control how long a leafnode connection should wait for the initial connection info, useful for high latency links ([#&#8203;5424](https://github.com/nats-io/nats-server/issues/5424)) Monitoring - The `gatewayz` monitoring endpoint can now return subscription information ([#&#8203;6525](https://github.com/nats-io/nats-server/issues/6525)) ##### Improved General - The configured write deadline is now applied to only the current batch of write vectors (with a maximum of 64MB), making it easier to configure and reason about ([#&#8203;6471](https://github.com/nats-io/nats-server/issues/6471)) - Publishing through a service import to an account with no interest will now generate a "no responders" error instead of silently dropping the message ([#&#8203;6532](https://github.com/nats-io/nats-server/issues/6532)) - Adjust the stall gate for producers to be less penalizing ([#&#8203;6568](https://github.com/nats-io/nats-server/issues/6568), [#&#8203;6579](https://github.com/nats-io/nats-server/issues/6579)) JetStream - Consumer signaling from streams has been optimized, taking consumer filters into account, significantly reducing CPU usage and overheads when there are a large number of consumers with sparse or non-overlapping interest ([#&#8203;6499](https://github.com/nats-io/nats-server/issues/6499)) - Num pending with multiple filters, enforcing per-subject limits and loading the per-subject info now use a faster subject tree lookup with fewer allocations ([#&#8203;6458](https://github.com/nats-io/nats-server/issues/6458)) - Optimizations for calculating num pending etc. by handling literal subjects using a faster path ([#&#8203;6446](https://github.com/nats-io/nats-server/issues/6446)) - Optimizations for loading the next message with multiple filters by avoiding linear scans in message blocks in some cases, particularly where there are lots of deletes or a small number of subjects ([#&#8203;6448](https://github.com/nats-io/nats-server/issues/6448)) - Avoid unnecessary system time calls when ranging a large number of interior deletes, reducing CPU time ([#&#8203;6450](https://github.com/nats-io/nats-server/issues/6450)) - Removed unnecessary locking around finding out if Raft groups are leaderless, reducing contention ([#&#8203;6438](https://github.com/nats-io/nats-server/issues/6438)) - Improved the error message when trying to change the consumer type ([#&#8203;6408](https://github.com/nats-io/nats-server/issues/6408)) - Improved the error messages returned by `healthz` to be more descriptive about why the healthcheck failed ([#&#8203;6416](https://github.com/nats-io/nats-server/issues/6416)) - The limit of concurrent disk I/O operations that JetStream can perform simultaneously has been raised ([#&#8203;6449](https://github.com/nats-io/nats-server/issues/6449)) - Reduced the number of allocations needed for handling client info headers around the JetStream API and service imports/exports ([#&#8203;6453](https://github.com/nats-io/nats-server/issues/6453)) - Calculating the starting sequence for a source consumer has been optimized for streams where there are many interior deletes ([#&#8203;6461](https://github.com/nats-io/nats-server/issues/6461)) - Messages used for cluster replication are now correctly accounted for in the statistics of the origin account ([#&#8203;6474](https://github.com/nats-io/nats-server/issues/6474)) - Reduce the amount of time taken for cluster nodes to start campaigning in some cases ([#&#8203;6511](https://github.com/nats-io/nats-server/issues/6511)) - Reduce memory allocations when writing new messages to the filestore write-through cache ([#&#8203;6576](https://github.com/nats-io/nats-server/issues/6576)) Monitoring - The `routez` endpoint now reports `pending_bytes` ([#&#8203;6476](https://github.com/nats-io/nats-server/issues/6476)) ##### Fixed General - The `max_closed_clients` option is now parsed correctly from the server configuration file ([#&#8203;6497](https://github.com/nats-io/nats-server/issues/6497)) JetStream - A bug in the subject state tracking that could result in in consumers skipping messages on interest or WQ streams has been fixed ([#&#8203;6526](https://github.com/nats-io/nats-server/issues/6526)) - A data race between the stream config and looking up streams has been fixed ([#&#8203;6424](https://github.com/nats-io/nats-server/issues/6424)) Thanks to [@&#8203;evankanderson](https://github.com/evankanderson)! - Fixed an issue where Raft proposals were incorrectly dropped after a peer remove operation, which could result in a stream desync ([#&#8203;6456](https://github.com/nats-io/nats-server/issues/6456)) - Stream disk reservations will no longer be counted multiple times after stream reset errors have occurred ([#&#8203;6457](https://github.com/nats-io/nats-server/issues/6457)) - Fixed an issue where a stream could desync if the server exited during a catchup ([#&#8203;6459](https://github.com/nats-io/nats-server/issues/6459)) - Fixed a deadlock that could occur when cleaning up large numbers of consumers that have reached their inactivity threshold ([#&#8203;6460](https://github.com/nats-io/nats-server/issues/6460)) - A bug which could result in stuck consumers after a leader change has been fixed ([#&#8203;6469](https://github.com/nats-io/nats-server/issues/6469)) - Fixed an issue where it was not possible to update a stream or consumer if up against the max streams or max consumers limit ([#&#8203;6477](https://github.com/nats-io/nats-server/issues/6477)) - The preferred stream leader will no longer respond if it has not completed setting up the Raft node yet, fixing some API timeouts on stream info and other API calls shortly after the stream is created ([#&#8203;6480](https://github.com/nats-io/nats-server/issues/6480)) - Auth callouts can now correctly authenticate the username and password or authorization token from a leafnode connection ([#&#8203;6492](https://github.com/nats-io/nats-server/issues/6492)) - Stream ingest from an imported subject will now continue to work correctly after an update to imports/exports via a JWT update ([#&#8203;6498](https://github.com/nats-io/nats-server/issues/6498)) - Parallel stream creation requests for the same stream will no longer incorrectly return a limits error when max streams is configured ([#&#8203;6502](https://github.com/nats-io/nats-server/issues/6502)) - Consumers created or recreated while a cluster node was down are now handled correctly after a snapshot when the node comes back online ([#&#8203;6507](https://github.com/nats-io/nats-server/issues/6507)) - Invalidate entries in the pending append entry cache correctly, reducing the chance of an incorrect apply ([#&#8203;6513](https://github.com/nats-io/nats-server/issues/6513)) - When compacting or truncating streams or logs, correctly clean up the delete map, fixing potential memory leaks and the potential for `index.db` to not be recovered correctly after a restart ([#&#8203;6515](https://github.com/nats-io/nats-server/issues/6515)) - Retry removals from acks if they have been missed due to the consumer ack floor being ahead of the stream applies, correcting a potential stream drift across replicas ([#&#8203;6519](https://github.com/nats-io/nats-server/issues/6519)) - When recovering from block files, do not put deleted messages below the first sequence into the delete map ([#&#8203;6521](https://github.com/nats-io/nats-server/issues/6521)) - Preserve max delivered messages with interest retention policy using the redelivered state, such that a new consumer will not unexpectedly remove the message ([#&#8203;6575](https://github.com/nats-io/nats-server/issues/6575)) Leafnodes - Do not incorrectly send duplicate messages when a queue group has members across different leafnodes when connected through a gateway ([#&#8203;6517](https://github.com/nats-io/nats-server/issues/6517)) WebSockets - Fixed a couple cases where memory may not be reclaimed from Flate compressors correctly after a WebSocket client disconnect or error scenario ([#&#8203;6451](https://github.com/nats-io/nats-server/issues/6451)) Tests - Unit tests have been improved ([#&#8203;6406](https://github.com/nats-io/nats-server/issues/6406), [#&#8203;6447](https://github.com/nats-io/nats-server/issues/6447), [#&#8203;6472](https://github.com/nats-io/nats-server/issues/6472), [#&#8203;6524](https://github.com/nats-io/nats-server/issues/6524)) ##### Complete Changes </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjQuMyIsInVwZGF0ZWRJblZlciI6IjM3LjQyNC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
kjuulh added 1 commit 2025-02-26 02:11:04 +01:00
Update module github.com/nats-io/nats-server/v2 to v2.10.26
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
031d99ccb1
kjuulh scheduled this pull request to auto merge when all checks succeed 2025-02-26 02:11:04 +01:00
Author
Owner

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 5 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.22.0 -> 1.23.0
github.com/klauspost/compress v1.17.11 -> v1.18.0
github.com/nats-io/nkeys v0.4.9 -> v0.4.10
golang.org/x/crypto v0.32.0 -> v0.34.0
golang.org/x/sys v0.29.0 -> v0.30.0
golang.org/x/time v0.9.0 -> v0.10.0
### ℹ Artifact update notice ##### File name: go.mod In order to perform the update(s) described in the table above, Renovate ran the `go get` command, which resulted in the following additional change(s): - 5 additional dependencies were updated - The `go` directive was updated for compatibility reasons Details: | **Package** | **Change** | | :------------------------------ | :---------------------- | | `go` | `1.22.0` -> `1.23.0` | | `github.com/klauspost/compress` | `v1.17.11` -> `v1.18.0` | | `github.com/nats-io/nkeys` | `v0.4.9` -> `v0.4.10` | | `golang.org/x/crypto` | `v0.32.0` -> `v0.34.0` | | `golang.org/x/sys` | `v0.29.0` -> `v0.30.0` | | `golang.org/x/time` | `v0.9.0` -> `v0.10.0` |
kjuulh merged commit 031d99ccb1 into main 2025-02-26 02:11:10 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kjuulh/ceen#67
No description provided.