Update module github.com/nats-io/nats-server/v2 to v2.10.23 #59

Merged
kjuulh merged 1 commits from renovate/all into main 2024-12-11 02:16: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.22 -> v2.10.23

Release Notes

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

v2.10.23

Compare Source

Changelog

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

Go Version
Dependencies
Added

JetStream

  • Support for responding to forwarded proposals (for future use, #​6157)

Windows

  • New ca_certs_match option has been added in the tls block for searching the certificate store for only certificates matching the specified CAs (#​5115)
  • New cert_match_skip_invalid option has been added in the tls block for ignoring certificates that have expired or are not valid yet (#​6042)
  • The cert_match_by option can now be set to thumbprint, allowing an SHA1 thumbprint to be specified in cert_match (#​6042, #​6047)
Improved

JetStream

  • Reduced the number of allocations in consumers from get-next requests and when returning some error codes (#​6039)
  • Metalayer recovery at startup will now more reliably group assets for creation/update/deletion and handle pending consumers more reliably, reducing the chance of ghost consumers and misconfigured streams happening after restarts (#​6066, #​6069, #​6088, #​6092)
  • Creation of filtered consumers is now considerably faster with the addition of a new multi-subject num-pending calculation (#​6089, #​6112)
  • Consumer backoff should now be correctly respected with multiple in-flight deliveries to clients (#​6104)
  • Add node10 node size to stree, providing better memory utilisation for some subject spaces, particularly those that are primarily numeric or with numeric tokens (#​6106)
  • Some JetStream log lines have been made more consistent (#​6065)
  • File-backed Raft groups will now use the same sync intervals as the filestore, including when sync always is in use (#​6041)
  • Metalayer snapshots will now always be attempted on shutdown (#​6067)
  • Consumers will now detect if an ack is received past the stream last sequence and will no longer register pre-acks from a snapshot if this happens, reducing memory usage (#​6109)
  • Reduced copies and number of allocations when generating headers for republished messages (#​6127)
  • Adjusted the spread of filestore sync timers (#​6128)
  • Reduced the number of allocations in Raft group send queues, improving performance (#​6132)
  • Improvements to Raft append entry handling and log consistency (#​5661, #​5689, #​5714, #​5957, #​6027, #​6073)
  • Improvements to Raft stepdown behaviour (#​5666, #​5344, #​5717)
  • Improvements to Raft elections and vote handling (#​5671, #​6056)
  • Improvements to Raft term handling (#​5684, #​5792, #​5975, #​5848, #​6060)
  • Improvements to Raft catchups (#​5987, #​6038, #​6072)
  • Improvements to Raft snapshot handling (#​6053, #​6055)
  • Reduced the overall metalayer snapshot frequency by increasing the minimum interval and no longer pre-empting consumer deletes (#​6165)
  • Consumer info requests for non-existent consumers will no longer be relayed, reducing overall load on the metaleader (#​6176)
  • The metaleader will now log if it takes a long time to perform a metalayer snapshot (#​6178)
  • Unnecessary client and subject information will no longer be included in the meta snapshots, reducing the size and encoding time (#​6185)
  • Sourcing consumers for R1 streams will now be set up inline when the stream is recovered (#​6219)
  • Introduced additional jitter to the timer for writing stream state, to smooth out sudden spikes in I/O (#​6220)
Fixed

General

  • Load balancing queue groups from leaf nodes in a cluster (#​6043)

JetStream

  • Invalidate the stream state when a drift between the tracking states has been detected (#​6034)
  • Fixed a panic in the subject tree when checking for full wildcards (#​6049)
  • Snapshot processing should no longer spin when there is no leader (#​6050)
  • Replicated stream message framing can no longer overflow with extremely long subjects, headers or reply subjects (#​6052)
  • Don’t replace the leader’s snapshot when shutting down, potentially causing a desync (#​6053)
  • Consumer start sequence when specifying an optional start time has been fixed (#​6082)
  • Raft snapshots will no longer be incorrectly removed when truncating the log back to applied (#​6055)
  • Raft state will no longer be deleted if creating a stream/consumer failed because the server was shutting down (#​6061)
  • Fixed a panic when shutting down whilst trying to set up the metagroup (#​6075)
  • Raft entries that we cannot be sure were applied during a shutdown will no longer be reported as applied (#​6087)
  • Corrected an off-by-one error in the run-length encoding of interior deletes, which could incorrectly remove an extra message (#​6111)
  • Don’t process duplicate stream assignment responses when the stream is being reassigned due to placement issues (#​6121)
  • Corrected use of the stream mutex when checking interest (#​6122)
  • Raft entries for consumers that we cannot be sure were applied during a shutdown will no longer be reported as applied (#​6133)
  • Consistent state update behavior between file store and memory store, including a fixed integer underflow (#​6147)
  • No longer send a state snapshot when becoming a consumer leader as it may not include all applied state (#​6151)
  • Do not install snapshots on shutdown from outside the monitor goroutines as it may race with upper layer state (#​6153)
  • The consumer Backoff configuration option now correctly checks the MaxDelivery constraint (#​6154)
  • Consumer check floor will no longer surpass the store ack floor (#​6146)
  • Replicated consumers will no longer update their delivered state until quorum is reached, fixing some drifts that can occur on a leader change (#​6139)
  • Resolved a deadlock when removing the leader from the peer set (#​5912)
  • Don’t delete disk state if a stream or consumer creation fails during shutdown (#​6061)
  • The metalayer will no longer generate and send snapshots when switching leaders, reducing the chance that snapshots can be sent with stale assignments (#​5700)
  • When restarting a Raft group, wait for previous goroutines to shut down, fixing a race condition (#​5832)
  • Correctly empty the Raft snapshots directory for in-memory assets (#​6169)
  • A race condition when accessing the stream assignments has been fixed (#​6173)
  • Subject state will now be correctly cleared when compacting in-memory streams, fixing some potential replica drift issues (#​6187)
  • Stream-level catchups no longer return more than they should (#​6213)

Leafnodes

  • Fixed queue distribution where a leafnode expressed interest on behalf of a gateway in complex setups (#​6126)
  • A number of leafnode interest propagation issues have been fixed, making it possible to distinguish leaf subscriptions from local routed subscriptions (#​6161)
  • Credential files containing CRLF line endings will no longer error (#​6175)

WebSockets

  • Ensure full writes are made when compression is in use (#​6091)

Windows

  • Using the LocalMachine certificate store is now possible from a non-administrator user (#​6019)

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.22` -> `v2.10.23` | --- ### Release Notes <details> <summary>nats-io/nats-server (github.com/nats-io/nats-server/v2)</summary> ### [`v2.10.23`](https://github.com/nats-io/nats-server/releases/tag/v2.10.23) [Compare Source](https://github.com/nats-io/nats-server/compare/v2.10.22...v2.10.23) #### 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.4 ([#&#8203;6228](https://github.com/nats-io/nats-server/issues/6228)) ##### Dependencies - golang.org/x/crypto v0.30.0 ([#&#8203;6230](https://github.com/nats-io/nats-server/issues/6230)) - golang.org/x/sys v0.27.0 ([#&#8203;6229](https://github.com/nats-io/nats-server/issues/6229)) - golang.org/x/time v0.8.0 ([#&#8203;6105](https://github.com/nats-io/nats-server/issues/6105)) - github.com/nats-io/nkeys v0.4.8 ([#&#8203;6192](https://github.com/nats-io/nats-server/issues/6192)) ##### Added JetStream - Support for responding to forwarded proposals (for future use, [#&#8203;6157](https://github.com/nats-io/nats-server/issues/6157)) Windows - New `ca_certs_match` option has been added in the `tls` block for searching the certificate store for only certificates matching the specified CAs ([#&#8203;5115](https://github.com/nats-io/nats-server/issues/5115)) - New `cert_match_skip_invalid` option has been added in the `tls` block for ignoring certificates that have expired or are not valid yet ([#&#8203;6042](https://github.com/nats-io/nats-server/issues/6042)) - The `cert_match_by` option can now be set to `thumbprint`, allowing an SHA1 thumbprint to be specified in `cert_match` ([#&#8203;6042](https://github.com/nats-io/nats-server/issues/6042), [#&#8203;6047](https://github.com/nats-io/nats-server/issues/6047)) ##### Improved JetStream - Reduced the number of allocations in consumers from get-next requests and when returning some error codes ([#&#8203;6039](https://github.com/nats-io/nats-server/issues/6039)) - Metalayer recovery at startup will now more reliably group assets for creation/update/deletion and handle pending consumers more reliably, reducing the chance of ghost consumers and misconfigured streams happening after restarts ([#&#8203;6066](https://github.com/nats-io/nats-server/issues/6066), [#&#8203;6069](https://github.com/nats-io/nats-server/issues/6069), [#&#8203;6088](https://github.com/nats-io/nats-server/issues/6088), [#&#8203;6092](https://github.com/nats-io/nats-server/issues/6092)) - Creation of filtered consumers is now considerably faster with the addition of a new multi-subject num-pending calculation ([#&#8203;6089](https://github.com/nats-io/nats-server/issues/6089), [#&#8203;6112](https://github.com/nats-io/nats-server/issues/6112)) - Consumer backoff should now be correctly respected with multiple in-flight deliveries to clients ([#&#8203;6104](https://github.com/nats-io/nats-server/issues/6104)) - Add node10 node size to stree, providing better memory utilisation for some subject spaces, particularly those that are primarily numeric or with numeric tokens ([#&#8203;6106](https://github.com/nats-io/nats-server/issues/6106)) - Some JetStream log lines have been made more consistent ([#&#8203;6065](https://github.com/nats-io/nats-server/issues/6065)) - File-backed Raft groups will now use the same sync intervals as the filestore, including when sync always is in use ([#&#8203;6041](https://github.com/nats-io/nats-server/issues/6041)) - Metalayer snapshots will now always be attempted on shutdown ([#&#8203;6067](https://github.com/nats-io/nats-server/issues/6067)) - Consumers will now detect if an ack is received past the stream last sequence and will no longer register pre-acks from a snapshot if this happens, reducing memory usage ([#&#8203;6109](https://github.com/nats-io/nats-server/issues/6109)) - Reduced copies and number of allocations when generating headers for republished messages ([#&#8203;6127](https://github.com/nats-io/nats-server/issues/6127)) - Adjusted the spread of filestore sync timers ([#&#8203;6128](https://github.com/nats-io/nats-server/issues/6128)) - Reduced the number of allocations in Raft group send queues, improving performance ([#&#8203;6132](https://github.com/nats-io/nats-server/issues/6132)) - Improvements to Raft append entry handling and log consistency ([#&#8203;5661](https://github.com/nats-io/nats-server/issues/5661), [#&#8203;5689](https://github.com/nats-io/nats-server/issues/5689), [#&#8203;5714](https://github.com/nats-io/nats-server/issues/5714), [#&#8203;5957](https://github.com/nats-io/nats-server/issues/5957), [#&#8203;6027](https://github.com/nats-io/nats-server/issues/6027), [#&#8203;6073](https://github.com/nats-io/nats-server/issues/6073)) - Improvements to Raft stepdown behaviour ([#&#8203;5666](https://github.com/nats-io/nats-server/issues/5666), [#&#8203;5344](https://github.com/nats-io/nats-server/issues/5344), [#&#8203;5717](https://github.com/nats-io/nats-server/issues/5717)) - Improvements to Raft elections and vote handling ([#&#8203;5671](https://github.com/nats-io/nats-server/issues/5671), [#&#8203;6056](https://github.com/nats-io/nats-server/issues/6056)) - Improvements to Raft term handling ([#&#8203;5684](https://github.com/nats-io/nats-server/issues/5684), [#&#8203;5792](https://github.com/nats-io/nats-server/issues/5792), [#&#8203;5975](https://github.com/nats-io/nats-server/issues/5975), [#&#8203;5848](https://github.com/nats-io/nats-server/issues/5848), [#&#8203;6060](https://github.com/nats-io/nats-server/issues/6060)) - Improvements to Raft catchups ([#&#8203;5987](https://github.com/nats-io/nats-server/issues/5987), [#&#8203;6038](https://github.com/nats-io/nats-server/issues/6038), [#&#8203;6072](https://github.com/nats-io/nats-server/issues/6072)) - Improvements to Raft snapshot handling ([#&#8203;6053](https://github.com/nats-io/nats-server/issues/6053), [#&#8203;6055](https://github.com/nats-io/nats-server/issues/6055)) - Reduced the overall metalayer snapshot frequency by increasing the minimum interval and no longer pre-empting consumer deletes ([#&#8203;6165](https://github.com/nats-io/nats-server/issues/6165)) - Consumer info requests for non-existent consumers will no longer be relayed, reducing overall load on the metaleader ([#&#8203;6176](https://github.com/nats-io/nats-server/issues/6176)) - The metaleader will now log if it takes a long time to perform a metalayer snapshot ([#&#8203;6178](https://github.com/nats-io/nats-server/issues/6178)) - Unnecessary client and subject information will no longer be included in the meta snapshots, reducing the size and encoding time ([#&#8203;6185](https://github.com/nats-io/nats-server/issues/6185)) - Sourcing consumers for R1 streams will now be set up inline when the stream is recovered ([#&#8203;6219](https://github.com/nats-io/nats-server/issues/6219)) - Introduced additional jitter to the timer for writing stream state, to smooth out sudden spikes in I/O ([#&#8203;6220](https://github.com/nats-io/nats-server/issues/6220)) ##### Fixed General - Load balancing queue groups from leaf nodes in a cluster ([#&#8203;6043](https://github.com/nats-io/nats-server/issues/6043)) JetStream - Invalidate the stream state when a drift between the tracking states has been detected ([#&#8203;6034](https://github.com/nats-io/nats-server/issues/6034)) - Fixed a panic in the subject tree when checking for full wildcards ([#&#8203;6049](https://github.com/nats-io/nats-server/issues/6049)) - Snapshot processing should no longer spin when there is no leader ([#&#8203;6050](https://github.com/nats-io/nats-server/issues/6050)) - Replicated stream message framing can no longer overflow with extremely long subjects, headers or reply subjects ([#&#8203;6052](https://github.com/nats-io/nats-server/issues/6052)) - Don’t replace the leader’s snapshot when shutting down, potentially causing a desync ([#&#8203;6053](https://github.com/nats-io/nats-server/issues/6053)) - Consumer start sequence when specifying an optional start time has been fixed ([#&#8203;6082](https://github.com/nats-io/nats-server/issues/6082)) - Raft snapshots will no longer be incorrectly removed when truncating the log back to applied ([#&#8203;6055](https://github.com/nats-io/nats-server/issues/6055)) - Raft state will no longer be deleted if creating a stream/consumer failed because the server was shutting down ([#&#8203;6061](https://github.com/nats-io/nats-server/issues/6061)) - Fixed a panic when shutting down whilst trying to set up the metagroup ([#&#8203;6075](https://github.com/nats-io/nats-server/issues/6075)) - Raft entries that we cannot be sure were applied during a shutdown will no longer be reported as applied ([#&#8203;6087](https://github.com/nats-io/nats-server/issues/6087)) - Corrected an off-by-one error in the run-length encoding of interior deletes, which could incorrectly remove an extra message ([#&#8203;6111](https://github.com/nats-io/nats-server/issues/6111)) - Don’t process duplicate stream assignment responses when the stream is being reassigned due to placement issues ([#&#8203;6121](https://github.com/nats-io/nats-server/issues/6121)) - Corrected use of the stream mutex when checking interest ([#&#8203;6122](https://github.com/nats-io/nats-server/issues/6122)) - Raft entries for consumers that we cannot be sure were applied during a shutdown will no longer be reported as applied ([#&#8203;6133](https://github.com/nats-io/nats-server/issues/6133)) - Consistent state update behavior between file store and memory store, including a fixed integer underflow ([#&#8203;6147](https://github.com/nats-io/nats-server/issues/6147)) - No longer send a state snapshot when becoming a consumer leader as it may not include all applied state ([#&#8203;6151](https://github.com/nats-io/nats-server/issues/6151)) - Do not install snapshots on shutdown from outside the monitor goroutines as it may race with upper layer state ([#&#8203;6153](https://github.com/nats-io/nats-server/issues/6153)) - The consumer `Backoff` configuration option now correctly checks the `MaxDelivery` constraint ([#&#8203;6154](https://github.com/nats-io/nats-server/issues/6154)) - Consumer check floor will no longer surpass the store ack floor ([#&#8203;6146](https://github.com/nats-io/nats-server/issues/6146)) - Replicated consumers will no longer update their delivered state until quorum is reached, fixing some drifts that can occur on a leader change ([#&#8203;6139](https://github.com/nats-io/nats-server/issues/6139)) - Resolved a deadlock when removing the leader from the peer set ([#&#8203;5912](https://github.com/nats-io/nats-server/issues/5912)) - Don’t delete disk state if a stream or consumer creation fails during shutdown ([#&#8203;6061](https://github.com/nats-io/nats-server/issues/6061)) - The metalayer will no longer generate and send snapshots when switching leaders, reducing the chance that snapshots can be sent with stale assignments ([#&#8203;5700](https://github.com/nats-io/nats-server/issues/5700)) - When restarting a Raft group, wait for previous goroutines to shut down, fixing a race condition ([#&#8203;5832](https://github.com/nats-io/nats-server/issues/5832)) - Correctly empty the Raft snapshots directory for in-memory assets ([#&#8203;6169](https://github.com/nats-io/nats-server/issues/6169)) - A race condition when accessing the stream assignments has been fixed ([#&#8203;6173](https://github.com/nats-io/nats-server/issues/6173)) - Subject state will now be correctly cleared when compacting in-memory streams, fixing some potential replica drift issues ([#&#8203;6187](https://github.com/nats-io/nats-server/issues/6187)) - Stream-level catchups no longer return more than they should ([#&#8203;6213](https://github.com/nats-io/nats-server/issues/6213)) Leafnodes - Fixed queue distribution where a leafnode expressed interest on behalf of a gateway in complex setups ([#&#8203;6126](https://github.com/nats-io/nats-server/issues/6126)) - A number of leafnode interest propagation issues have been fixed, making it possible to distinguish leaf subscriptions from local routed subscriptions ([#&#8203;6161](https://github.com/nats-io/nats-server/issues/6161)) - Credential files containing CRLF line endings will no longer error ([#&#8203;6175](https://github.com/nats-io/nats-server/issues/6175)) WebSockets - Ensure full writes are made when compression is in use ([#&#8203;6091](https://github.com/nats-io/nats-server/issues/6091)) Windows - Using the `LocalMachine` certificate store is now possible from a non-administrator user ([#&#8203;6019](https://github.com/nats-io/nats-server/issues/6019)) Tests - A number of unit tests have been improved ([#&#8203;6086](https://github.com/nats-io/nats-server/issues/6086), [#&#8203;6096](https://github.com/nats-io/nats-server/issues/6096), [#&#8203;6098](https://github.com/nats-io/nats-server/issues/6098), [#&#8203;6097](https://github.com/nats-io/nats-server/issues/6097), [#&#8203;5691](https://github.com/nats-io/nats-server/issues/5691), [#&#8203;5707](https://github.com/nats-io/nats-server/issues/5707), [#&#8203;5991](https://github.com/nats-io/nats-server/issues/5991), [#&#8203;6107](https://github.com/nats-io/nats-server/issues/6107), [#&#8203;6183](https://github.com/nats-io/nats-server/issues/6183), [#&#8203;6218](https://github.com/nats-io/nats-server/issues/6218)) ##### 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 2024-12-11 02:16:04 +01:00
Update module github.com/nats-io/nats-server/v2 to v2.10.23
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
cba026f182
kjuulh scheduled this pull request to auto merge when all checks succeed 2024-12-11 02:16: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):

  • 4 additional dependencies were updated

Details:

Package Change
github.com/nats-io/nkeys v0.4.7 -> v0.4.8
golang.org/x/crypto v0.28.0 -> v0.30.0
golang.org/x/sys v0.26.0 -> v0.28.0
golang.org/x/time v0.7.0 -> v0.8.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): - 4 additional dependencies were updated Details: | **Package** | **Change** | | :------------------------- | :--------------------- | | `github.com/nats-io/nkeys` | `v0.4.7` -> `v0.4.8` | | `golang.org/x/crypto` | `v0.28.0` -> `v0.30.0` | | `golang.org/x/sys` | `v0.26.0` -> `v0.28.0` | | `golang.org/x/time` | `v0.7.0` -> `v0.8.0` |
kjuulh merged commit cba026f182 into main 2024-12-11 02:16:10 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kjuulh/ceen#59
No description provided.