Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module github.com/nats-io/nats-server/v2 to v2.10.7 #343

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 26, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
github.com/nats-io/nats-server/v2 replace minor v2.8.3 -> v2.10.7

Release Notes

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

v2.10.7

Compare Source

Changelog

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

Go Version
  • 1.21.5
Dependencies
  • github.com/klauspost/compress v1.17.4
  • golang.org/x/crypto v0.16.0
  • golang.org/x/sys v0.15.0
  • golang.org/x/time v0.5.0
Improved

JetStream

  • Increase minimum interval for full index.db state writes to reduce contention for high-speed ingest in large streams (#​4858)
Fixed

JetStream

  • Corruption of per-subject tracking on recover of bad or missing index.db (#​4851) Thanks to @​oscarwcl for the report!
  • Prevent GetSeqFromTime panic in memstore if the last sequence was deleted (#​4853) Thanks to @​andreib1 for the report!
  • Protect against bad consumer state and high-memory usage during rollback (#​4857)
Complete Changes

v2.10.6

Compare Source

Changelog

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

Go Version
  • 1.21.4
Dependencies
  • github.com/klauspost/compress v1.17.3
Improved

JetStream

  • Added in internal filestore state checks on write and recover (#​4804)
  • Reduce memory usage for streams with a large subject space (#​4806)
  • Only gather subject filters if we need them (#​4820) Thanks to @​svenfoo for the contribution!
  • Add pre-check when expected-last-subject-sequence header is present (#​4827)
  • Avoid resetting WAL in RAFT layer if we already processed the message (#​4830)

Monitoring

  • Remove ocsp_peer_cache from varz response when not applicable (#​4829)
Fixed

JetStream

  • Only drop firstSeq under DiscardOld policy (#​4802) Thanks to @​davidmcote for the report and contribution!
  • Do not allow consumers to be updated if they have been deleted (#​4818) Thanks to @​matevzmihalic for the report!
  • Fix potential race when starting the consumer monitor (#​4828)
  • Fix race condition in debug print (#​4833)

MQTT

  • Fix typo in README (#​4791) Thanks to @​testwill for the contribution!
  • Improved large number of MQTT clients on reconnect with retain messages and larger scoped subscriptions (#​4810)

WebSockets

  • Fix potential data race in overlapping re-use of buffers (#​4811) Thanks to @​oscarwcl for the report!
Complete Changes

v2.10.5

Compare Source

Changelog

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

Go Version
  • 1.21.4
Dependencies
  • golang.org/x/crypto v0.15.0
  • golang.org/x/sys v0.14.0
  • golang.org/x/time v0.4.0
  • github.com/nats-io/jwt/v2 v2.5.3
Improved

General

  • Remove places where using time.After could cause GC pressure (#​4756)

JetStream

  • Remove unused Observer const, add unit test to check observer applies (#​4727)
  • Throttle writeFullState from separate goroutine (#​4731)
  • Reduce memory usage with lots of subjects in filestore (#​4742)
  • Resiliency when doing lots of conditional updates to a KV and restarting servers (#​4764)
  • ​​General stability and consistency improvements for clustered streams with failure offsets during server restarts (#​4777)
  • Improve code comments for Raft subsystem (#​4724)
  • Optimize linear scan when looking by comparing the first seq in a block (#​4780)
  • Move filestore cleanup to separate goroutine to make non-blocking (#​4782)
  • Move deletion of filestore files to separate goroutine to make non-blocking (#​4783)

Monitoring

  • Better check for standalone mode when determining to send statsz (#​4757)

MQTT

  • Add "clean" flag in trace message (#​4740)

WebSocket

  • ​​Check for /leafnode suffix path on leaf WebSocket connection (#​4774)
Fixed

Accounts

  • Fix panic in JWT permissions template handling (#​4730)

Leafnode

  • Fix subpath concatenation used for WebSocket remote connect URL (#​4770) Thanks to @​yoadey for the report!

JetStream

  • Remove the state check in the runAs loops except for runAsLeader (#​4725)
  • Make sure to properly remove meta files for filestore after conversion from 2.9.x to 2.10.x (#​4733)
  • Make sure we check limits when scaling up a stream (#​4738)
  • Improve estimation on full state allocations to avoid reallocations in filestore (#​4743)
  • Make access to message block first and last sequence consistently use atomics (#​4744)
  • Fix DiscardNew exceed bytes calculation (#​4772) Thanks to @​MauriceVanVeen for the contribution! Thanks to @​davidmcote for the report!
  • Fix data race and possible panic when compacting (#​4773, #​4776)
  • Fix panic in fileStore.Stop() (#​4779)

MQTT

  • Rapid load-balanced (re-)CONNECT to cluster causes races (#​4734)
  • Potential deadlock between JS API and mqttDeliverMsgCbQoS0 (#​4760)

WebSocket

  • Partial writes may lead to disconnect (#​4755)
Complete Changes

v2.10.4

Compare Source

Changelog

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

CVEs
  • CVE-2023-46129 - nkeys: xkeys seal encryption used fixed key for all encryption
Go Version
  • 1.21.3
Dependencies
  • github.com/nats-io/nats.go v1.31.0
  • github.com/nats-io/nkeys v0.4.6
  • github.com/klauspost/compress v1.17.2
  • golang.org/x/crypto v0.14.0
  • golang.org/x/sys v0.13.0
Added

JetStream

  • Report Raft group name in stream and consumer info responses (#​4661)

MQTT

  • Add config options to disable QoS 2 support (#​4705)

TLS

  • Add opt-in TLS handshake first for client connections (#​4642)
Improved

Dependencies

JetStream

  • Add internal pprof labels as metadata to the stream config for improved debuggability (#​4662)
  • Stricter management of Raft state, which should improve recovery from a leaderless state (#​4684)
  • Avoid unnecessary reallocations when writing the full filestore state to disk (#​4687)
  • Improve recovery of blocks that are being updated midway (#​4692)
  • Recycle filestore buffers on rebuild and write out full state prior to snapshotting (#​4699)
  • Extend AckTerm advisory event to support a reason (#​4697)
  • Improve time to select skip list and starting sequence number for deliver last by subject (#​4712, #​4713) Thanks to @​StanEgo for the report!
  • Optimize loading messages on last by subject if max messages per subject is one (#​4714)

MQTT

  • No longer require a server name to be set for a standalone server (#​4679)

Routes

  • Remove unnecessary account lookups for pinned accounts (#​4686)
  • Upgrade non-solicited routes if present in config (#​4701, #​4708)

Systemd

  • Use correct network target to prevent host-dependent race conditions when establishing external connections (#​4676)
Fixed

Configuration

  • Fix possible panic during configuration reload during a server shutdown (#​4666)

Exports/imports

  • Prevent service import from duplicating MSG as HMSG with a remapped subject (#​4678) Thanks to @​izwerg for the report!

JetStream

  • Fix panic if store error occurs when requesting consumer info (#​4669)
  • Fix incorrect calculation of num pending with a filtered subject (#​4693) Thanks to @​a-h for the report!
  • Prevent purge of entire stream when targeting a sequence of 1 (#​4698) Thanks to @​john-bagatta for the report!
  • Ensure there is a valid messages queue prior to processing within a mirror (#​4700)
  • Avoid concurrent consumer setLeader calls resulting in chance of multiple leaders (#​4703)

MQTT

Windows

  • Ensure signal handler is stopped when shutting down on Windows to prevent goroutine leak (#​4690)
Complete Changes

v2.10.3

Compare Source

Changelog

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

Go Version
  • 1.21.3
Fixed

JetStream

  • Reclaim more space with streams having many interior deletes during compaction with compression enabled (#​4645)
  • Fixed updating a non unique consumer on workqueue stream not returning an error. Thanks to @​mdawar for the contribution (#​4654)
  • Stream / KV lookups fail after decreasing history size (#​4656)
  • Only mark fs as dirty vs full write on mb compaction (#​4657)

MQTT

  • Fix crash in MQTT layer with outgoing PUBREL header (#​4646)
Complete Changes

v2.10.2

Compare Source

Changelog

Downgrade compatibility note

2.10.x brings on-disk storage changes which bring significant performance improvements. Upgrade existing server versions will handle the new storage format transparently. However, if a downgrade from 2.10.x occurs, the old version will not understand the format on disk with the exception 2.9.22 and any subsequent patch releases for 2.9. So if you upgrade from 2.9.x to 2.10.0 and then need to downgrade for some reason, it must be back to 2.9.22+ to ensure the stream data can be read correctly.

Go Version
  • 1.21.2
Dependencies
  • github.com/nats-io/nats.go v1.30.2
Added

Profiling

  • Add prof_block_rate config option for configuring the block profile (#​4587)
  • Add more pprof labels to consumers, sources, and mirrors (#​4609)
Improved

Core

  • Reduce contention when pattern matching subjects when the sublist cache is disabled (#​4586)
  • Various service import reply optimizations (#​4591)
  • Remove unnecessary lock on subscription list if cache is disabled (#​4594)

Docs

  • Fix links in various repo markdown files (#​4590) Thanks to @​jdhenke for the contribution!

Leafnodes

  • Set S2 writer concurrency to 1 rather than the default of GOMAXPROCS to improve performance (#​4570)

JetStream

  • Make install snapshot errors rate limited when catching up (#​4574)
  • Log a warning on reset if bad stream state is detected (#​4583)
  • Change some contended locks to atomic swap operations (#​4585)
  • Log a warning if filestore recovery fails on the happy path (#​4599)
  • Ensure concurrent stream of the same stream does not return not found (#​4600)
  • Add additional markers for indicating unflushed state (#​4601)
  • Log a warning when subject skew is detected in the filestore (#​4606)
  • Reduce contention for a high number of connections in JetStream enabled account (#​4613)
  • Reduce contention in the consumer info API (#​4615)
  • Reduce contention and increase throughput of replica synchronization (#​4621)

Systemd

  • Update systemd scripts to use SIGUSR2 (lame duck model) for shutdown (#​4603)

WebSocket

  • Minimize memory growth for compressed WebSocket connections (#​4620)
  • Significantly reduce allocations in WebSocket interface (#​4623)
Fixed

Accounts

  • Fix inversion of lock on startup when setting up the account resolver (#​4588)
  • Prevent bypassing authorization block when enabling system account access in accounts block (#​4605) Thanks to @​alexherington for the report!

Leafnodes

  • Prevent a leafnode cluster from receiving a message multiple times in a queue subscription (#​4578) Thanks to @​pcsegal for the report!

JetStream

  • Fix possible panic due to message block unlock occurring prematurely (#​4571)
  • Guard against an accounting error resulting in a negative message count (#​4575)
  • Skip enabling direct gets if no commits (#​4576)
  • In lame duck mode, shutdown JetStream at the start to signal transfer of leadership if the leader (#​4579)
  • Fix possible stream assignment race condition (#​4589)
  • Fix race condition during leader failover scenarios resulting in potential duplicate messages being sourced (#​4592)
  • Respond with “not found” for consumer info if consumer is closed (#​4610)
  • Prevent processing of consumer assignments after JetStream shutdown occurs (#​4625)
  • Fix possibly lookup misses when MaxMsgsPerSubject=1 leading to excess messages in stream (#​4631)

MQTT

  • Fix PUBREL header incompatibility (#​4616)

Routes

  • Fix potential of pinned accounts not establishing a route on connect (#​4602)
Complete Changes

v2.10.1

Compare Source

Changelog

Downgrade compatibility note

2.10.x brings on-disk storage changes which bring significant performance improvements. Upgrade existing server versions will handle the new storage format transparently. However, if a downgrade from 2.10.x occurs, the old version will not understand the format on disk with the exception 2.9.22 and any subsequent patch releases for 2.9. So if you upgrade from 2.9.x to 2.10.0 and then need to downgrade for some reason, it must be back to 2.9.22+ to ensure the stream data can be read correctly.

Go Version
  • 1.21.1
Fixed

Leafnode

  • Fix TLS handshake being prevented if remote (leaf) does not have a TLS block configured (#​4565)

JetStream

  • Ensure a single filter in new consumer SubjectFilters or stream SubjectTransforms block uses the extended consumer subject format as it did with SubjectFilter (#​4564)
  • Ensure stream-specified consumer limits are correctly applied in combination with the explicit ack policy (#​4567)
Complete Changes

v2.10.0

Compare Source

Changelog

Downgrade compatibility note

2.10.0 brings on-disk storage changes which bring significant performance improvements. Upgrade existing server versions will handle the new storage format transparently. However, if a downgrade from 2.10.0 occurs, the old version will not understand the format on disk with the exception 2.9.22 and any subsequent patch releases for 2.9. So if you upgrade from 2.9.x to 2.10.0 and then need to downgrade for some reason, it must be back to 2.9.22+ to ensure the stream data can be read correctly.

Go Version
  • 1.21.1
Dependencies
  • github.com/nats-io/nats.go v1.29.0
  • github.com/nats-io/jwt/v2 v2.5.2
  • github.com/nats-io/nkeys v0.4.5
  • github.com/klauspost/compress v1.17.0
  • golang.org/x/crypto v0.13.0
Added

Accounts

  • Add $SYS.REQ.USER.INFO NATS endpoint for user info (#​3671)

Auth

Builds

Cluster

  • Multiple routes and ability to have per-account routes to reduce head-of-line blocking in clustered setups (#​4001, #​4183, #​4414)
  • Support for S2 compression of traffic over route connections (#​4115, #​4137)

Config

  • Reload server config by sending a message in the system account to $SYS.REQ.SERVER.{server-id}.RELOAD (#​4307)

Embedded

  • Add ConnectionDeadline field to User to force server disconnect after deadline (#​3580, #​3674)

Leafnode

  • Add TLSHandshakeFirst option to perform a TLS handshake before sending connection info (#​4119)
  • Support S2 compression of traffic over leafnode connections where the default now is s2_auto to compress relative to the RTT of the hub (#​4167, #​4230)
  • Allow remotes from same server binding to same hub account (#​4259)

Logging

  • Add logfile_max_num server config field to auto-rotate files (#​4548)

JetStream

Monitoring

  • Add unique_tag field in /jsz and /varz endpoints (#​3617)
  • Add $SYS.REQ.SERVER.PING.IDZ NATS endpoint for basic server info (#​3663)
  • Add $SYS.REQ.SERVER.<id>.PROFILEZ NATS endpoint for requesting debugging profiles (#​3774)
  • Add subscription count to /statz endpoint (#​3875)
  • Add Raft query parameter to /jsz to include Raft group info (#​3914)
  • Add slow_consumer_stats to the /varz endpoint (#​4330)

MQTT

Reload

  • Match --signal PIDs with globular-style expression (#​4370) Thanks to @​jevolk for the contribution!

Subject Mapping

  • Add ability to remove wildcard tokens in subject transforms (#​4152)
  • Allows cluster filtering in account subject mapping (#​4175)

System Services

  • Add $SYS.REQ.SERVER.<id>.KICK NATS endpoint to disconnect a client by id or by name from the target server (#​4298)
  • Add $SYS.REQ.SERVER.<id>.LDM NATS endpoint that sends a “lame duck mode” message to a client by id or name on the target server (#​4298)

Windows

Improved

Leafnodes

  • Add jitter to leafnode reconnections (#​4398)

Logging

  • Add account, stream and consumer name to consumer alignment cleanup warning (#​3666) Thanks to @​ch629 for the contribution!

JetStream

  • Significant optimisations and reduced memory impact for replicated streams with a large number of interior deletes (common in large KVs), considerably reducing the amount of CPU and memory required to create stream snapshots and smoothing out publish latencies (#​4070, #​4071, #​4075, #​4284, #​4520, #​4553)
  • Improve signaling mechanism for consumers to improve performance and reduce latency (#​3706)
  • Allow edit of Stream RePublish (#​3811)
  • Add batch completed status to pull consumers (#​3822)
  • Improve behavior of stream source consumer creation or config updates on leadership change (#​4009)
  • Record the stream and consumer info timestamps (#​4133)
  • Allow switching between limits and interest retention policies (#​4361)
  • Improve performance of deleting blocks (#​4371)
  • Update the way meta indexing is handled for filestore, significantly reducing time to recover streams at startup (#​4450, #​4481)
  • Add self-healing mechanism to detect and delete orphaned Raft groups (#​4510)
  • Improve monitoring of consumers that need to be cleaned up (#​4536)

MQTT

  • Optimize retained messages by using KV semantics instead of holding retained messages in memory (#​4199, #​4228)
  • Support for topics with . character (#​4243) Thanks to @​petedavis and @​telemac for the reports!
  • Set the RETAIN flag when delivering to new subscriptions and clear the flag in all other conditions (#​4443)

Profiling

  • Annotate CPU and goroutine profiles with additional asset information to assist with debugging (#​4204)
  • Remove unused block profile rate (#​4402)

Subject Mapping

  • Subject transform validation and error reporting (#​4202)
Fixed

Accounts

Clients

  • Check if client connection name was already set when storing it (#​3824)

Leafnode

  • Data race during validation and setup (#​4194)

JetStream

  • Check for invalid stream name in sources (#​4222)
  • Stream config update idempotency (#​4292)
  • Seqset encode bug that could cause bad stream state snapshots (#​4348)
  • Ensure stream assignment is set when checking replica count and updating retention (#​4391)
  • Hold lock when enforcing message limit on startup (#​4469)
  • Fix filestore data race on hash during snapshots (#​4470)
  • Use write lock for memory store filtered state (#​4498)
  • Fix data race on stream’s clustered filestore sequence (#​4508)
  • Fix possible panic when recalculating the first sequence of a subject (#​4530) Thanks to @​aldiesel for the report!
  • Fix leaking timers in stream sources resulting in runaway CPU usage (#​4532)
  • Fix possible panic when consumer is not closed (#​4541)
  • Fix data race when accessing consumer assignment (#​4547)
  • Fix data race when changing stream retention policy (#​4551)
  • Fix data race when loading the next message in memory-based streams (#​4552)
  • Prevent forward proposals in consumers after scaling down a stream (#​4556)

OSCP

  • Fixed local issuer determination for OCSP Staple (#​4355)

Routes

  • Update LastActivity on connect for routes (#​4415)
Complete Changes

v2.9.24

Compare Source

Changelog

Go Version
  • 1.20.11
Improved

JetStream

  • Stricter management of Raft state, which should improve recovery from a leaderless state (#​4684 backport via #​4737)
  • Remove unused Observer const, add unit test to check observer applies (#​4727 backport via #​4737)
Fixed

Accounts

  • Fix panic in JWT permissions template handling (#​4730 backport via #​4759)

WebSocket

Complete Changes

v2.9.23

Compare Source

Changelog

Go Version
  • 1.20.10
Fixed

Accounts

  • Prevent bypassing authorization block when enabling system account access in accounts block (#​4605). Backport from v2.10.2

Leafnodes

  • Prevent a leafnode cluster from receiving a message multiple times in a queue subscription (#​4578). Backport from v2.10.2

JetStream

  • Hold lock when calculating the first message for subject in a message block (#​4531). Backport from v2.10.0
  • Add self-healing mechanism to detect and delete orphaned Raft groups (#​4647). Backport from v2.10.0
  • Prevent forward proposals in consumers after scaling down a stream (#​4647). Backport from v2.10.0
  • Fix race condition during leader failover scenarios resulting in potential duplicate messages being sourced (#​4592). Backport from v2.10.2
Complete Changes

v2.9.22

Compare Source

Changelog

Go Version
  • 1.20.8 (updated out-of-cycle since Go 1.19 is now EOL)
Dependencies
  • github.com/nats-io/jwt/v2 v2.5.0
  • golang.org/x/crypto v0.12.0
  • golang.org/x/sys v0.11.0
Improved

Monitoring

  • CORS Allow-Origin passthrough for monitoring server (#​4423) Thanks to @​mdawar for the contribution!

JetStream

  • Improve consumer scaling reliability with filters and cluster restart (#​4404)
  • Send event on lame duck mode (LDM) to avoid placing assets on shutting down nodes (#​4405)
  • Skip filestore tombstones if downgrade from 2.10 occurs (#​4452)
  • Adjust delivered and waiting count when consumer message delivery fails (#​4472)
Fixed

Config

Monitoring

  • Fix Content-Type header when /healthz is not 200 OK (#​4437) Thanks to @​mdawar for the contribution!
  • Fix server /connz idle time sorting (#​4463) Thanks to @​mdawar for the contribution!
  • Interface conversion bug which could cause a panic when calling /ipqueuesz endpoint (#​4477)

Leafnode

  • Fix race condition which could affect propagating interest over leafnode connections (#​4464)

JetStream

  • Fix possible deadlock in checking for drift in the usage reporting when storing a message (#​4411)
  • Durable pull consumers could get cleaned up incorrectly on leader change (#​4412)
  • Moving an R1 stream could sometimes lose all messages (#​4413)
  • Prevent peer-remove of an R1 stream which could result in the stream becoming orphaned (#​4420)
  • Ensure consumer ack pending is less than max ack pending on state restore (#​4427)
  • Ensure to reset election timer when catching up (#​4428) Thanks to @​yuzhou-nj for the report!
  • Auto step-down Raft leader if an entry is missing on a catchup request (#​4432)
  • Fix PurgeEx with keep having deletes in blocks (#​4431)
  • Update global subject index when message blocks expire (#​4439)
  • Ensure max messages per subject is respected after update (#​4446) Thanks to @​anthonyjacques20 for the report!
  • Ignore and remove empty message blocks on rebuild (#​4447)
  • Fix possible accounting discrepancy on message write (#​4455)
  • Fix potential message duplication from stream sources when downgrading from 2.10 (#​4454)
  • Check for checksum violations for all records before sequence processing (#​4465)
  • Fix message block accounting (#​4473)
Complete Changes

v2.9.21

Compare Source

Changelog

Go Version
  • 1.19.12
Dependencies
  • github.com/klauspost/compress v1.16.7
  • github.com/nats-io/nats.go v1.28.0
  • go.uber.org/automaxprocs v1.5.3
  • golang.org/x/crypto v0.11.0
  • golang.org/x/sys v0.10.0
Added

OCSP

  • Add fetch, cache, and verification of client CA's OCSP Response for NATS, WebSocket, and MQTT client mTLS connections (#​4362, backported from 2.10)
  • Add bi-directional fetch, cache, and verification of CA OCSP Response for LEAF connections (#​4362, backported from 2.10)

See ADR-38 OCSP Peer Verification

General

  • Add UTC log timestamp option (#​4331, backported from 2.10)
Improved

JetStream

  • Don't error to server logs if message was deleted for consumer (#​4328)
  • Improve publish performance for zero-interest subjects (#​4359) Thanks to @​antlad for reporting the issue!
  • Sync and reset message rejected count to ensure replicas don’t incorrectly discard messages (#​4365, #​4366)
Fixed

General

  • Leaking memory on usage of getHash() (#​4329) Thanks to @​VuongUranus for reporting the issue!
  • Server reload with highly active accounts and service imports could cause panic or dataloss (#​4327)
  • Fix detection of an unusable configuration file (#​4358)
    • NOTE: as a side effect of this fix, the server will no longer startup with an empty config file
  • Fix a few system service imports going missing after configuration reload (#​4360)

OCSP

  • Fix local-determination of issuer CA at startup (#​4362)
  • Remove constraint that all (super)cluster node peers must be issued by the same CA (#​4362)

Embedded

  • Don't require TLS for in-process client connection (#​4323)

JetStream

  • Fix serializability guarantee for concurrent publish when using expected-last-subject-sequence (#​4319)
  • Report correct consumer count in paged list response (#​4339)
  • Fix not validating single token filtered consumer (#​4338)
  • Fix stream recovery of message block with sequence gaps (#​4344)
  • Fix panic when re-calculating first sequence of SimpleState info (#​4346)
  • Fix stream store accounting drift (#​4357)
Complete Changes

v2.9.20

Compare Source

Changelog

Go Version
  • 1.19.11
Added

Windows

  • Backport 2.10 support for native Windows certificate store (#​4268)
Improved

Accounts

  • Allow advisories to be exported/imported across accounts (#​4302)

JetStream

  • Optimize consumer create time on streams with a large number of blocks (#​4269)
Fixed

Gateways

  • Protect possible data race when reloading accounts (#​4274)

Leafnodes

  • Prevent zombie subscriptions which could lead to silent data loss when using queue subscriptions (#​4299)

WebSocket

  • Prevent reporting tls_required when tls_available is not set (#​4264)

JetStream

  • Prevent corrupting streams actively being restored during health check (#​4277) Thank you @​vitush93 for the report!
  • Prevent encrypted data attempting to be decrypted with an empty key (#​4301)

MQTT

  • Ensure republished messages from streams are received by MQTT subscriptions (#​4303)
Complete Changes

v2.9.19

Compare Source

Changelog

Go Version
  • 1.19.10
Improved

JetStream

  • Improve resource utilization when creating mirrors on very high-sequence streams (#​4249)
Fixed

WebSocket

  • Ensure INFO properties are populated based on the WebSocket listener when enabled (#​4255) Thanks to @​Envek for reporting the issue!
Complete Changes

v2.9.18

Compare Source

Changelog

Go Version
  • 1.19.10
Dependency Updates
  • golang.org/x/crypto v0.9.0 (#​4236)
  • golang.org/x/sys v0.8.0 (#​4236)
  • github.com/nats-io/nats.go v1.27.0 (#​4239)
Improved

Monitoring

  • Optimize /statsz locking and sending in standalone mode (#​4235)

JetStream

  • Apply ack floor check only for interest-based streams (#​4206)
  • Improved efficiency and reduced CPU usage of the consumer ack floor check, particularly when the stream first sequence is a large number (#​4226)
  • Improve clean-up phase of R1 consumers on server restart for name reuse (#​4216)
  • Optimize “last message lookups” by subject (KV get operations) for small messages (#​4232) Thanks to @​jjthiessen for reporting the issue!
  • Only enable JetStream account updates in clustered mode (#​4233) Thanks to @​tpihl for reporting the issue!
Fixed

General

Leadnode

  • Daisy chained leafnodes could have unreliable interest propagation (#​4207)
  • Properly distribute requests to queue groups across leafnodes (#​4231)

JetStream

Complete Changes

v2.9.17

Compare Source

Changelog

Go Version
  • 1.19.9
Dependency Updates
  • github.com/klauspost/compress v1.16.5 (#​4088)
Improved

Core

  • Additional optimizations to outbound queues, reducing memory footprint (#​4084, #​4093, #​4139)
  • Use faster flate compression library for WebSocket transport compression (#​4087)

Leafnodes

  • Optimize subscription interest propagation for large leafnode fleet (#​4117, #​4135)

Monitoring

  • Support sorting by RTT for /connz (#​4157)

Resolver

  • Improve signaling for missing account lookups (#​4151)

JetStream

  • Optimized determining if a stream snapshot is required (#​4074)
  • Run periodic check for consumer “ack floor” drift on leader (#​4086)
  • Optimize leadership transfer during a stream migration (#​4104)
  • Improve how clustered consumer state is hydrated on startup (#​4107)
  • Add operation type to panic messages for improved debugging (#​4108)
  • Improve health check to repair stalled assets periodically (#​4116, #​4172)
  • Remove unnecessary filestore lock to improve I/O performance (#​4123)
  • Various Raft leadership improvements (#​4126, #​4142, #​4143, #​4145)
  • Improve accuracy of account usage (#​4131)
  • Clean up old Raft groups when streams are reset (#​4177)
Fixed

General

  • Fix various names in comments (#​4099) Thanks to @​cuishuang for the contribution!
  • Fix various typos in comments (#​4169) Thanks to @​savion1024 for the contribution!
  • Update tests to reflect the server.Start() call no longer blocks (#​4111) Thanks to @​lheiskan for reporting the issue!
  • Fix race condition in config reload with gateway sublist check (#​4127)
  • Track all remote servers in a NATS system with different domains (#​4159)

Core

  • Fix premature closing in WebSocket transport due to outbound queue changes (#​4084)
  • Fix subscription interest for config-based accounts during config reload (#​4130)
  • Use monotonic time for measuring durations internally (#​4132, #​4154, #​4163)

Monitoring

  • Service import reporting for /accountz when mapping to local subjects (#​4158)

JetStream

  • Fix formatting of Raft debug log (#​4090)
  • Prevent failure of /healthz in single server mode on failed snapshot restore (#​4100)
  • Ensure a stream Raft node has fully stopped and resources freed (#​4118)
  • Fix case where R1 streams are orphaned and can’t scale up (#​4146)
  • Protect against out of bounds access on usage updates (#​4164)
  • Fix state rebuild where the first block is truncated and missing index info ([#​4166](

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner October 26, 2023 11:55
@renovate renovate bot added dependencies Pull requests that update a dependency file renovate PR created by RenovateBot labels Oct 26, 2023
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch from 005eb0a to 6f1029a Compare October 28, 2023 05:38
@renovate renovate bot changed the title Update module github.com/nats-io/nats-server/v2 to v2.10.3 Update module github.com/nats-io/nats-server/v2 to v2.10.4 Oct 28, 2023
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch from 6f1029a to 2b799e0 Compare November 10, 2023 02:48
@renovate renovate bot changed the title Update module github.com/nats-io/nats-server/v2 to v2.10.4 Update module github.com/nats-io/nats-server/v2 to v2.10.5 Nov 10, 2023
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch 2 times, most recently from 794a74d to 5e6121a Compare November 29, 2023 16:02
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch 2 times, most recently from 7b45707 to b1a0cb8 Compare December 2, 2023 05:53
@renovate renovate bot changed the title Update module github.com/nats-io/nats-server/v2 to v2.10.5 Update module github.com/nats-io/nats-server/v2 to v2.10.6 Dec 2, 2023
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch 8 times, most recently from 2e686c2 to 43d9b11 Compare December 6, 2023 23:00
@renovate renovate bot changed the title Update module github.com/nats-io/nats-server/v2 to v2.10.6 Update module github.com/nats-io/nats-server/v2 to v2.10.7 Dec 6, 2023
@Gacko Gacko enabled auto-merge (squash) December 7, 2023 18:21
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch 2 times, most recently from c57f347 to d053038 Compare December 7, 2023 18:24
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch 2 times, most recently from 5dced97 to 9e9d41e Compare December 7, 2023 18:33
Copy link
Contributor Author

renovate bot commented Dec 7, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: downloading k8s.io/apimachinery v0.26.1
go: downloading github.com/giantswarm/microkit v1.0.0
go: downloading github.com/giantswarm/operatorkit/v7 v7.1.0
go: downloading github.com/giantswarm/microerror v0.4.0
go: downloading github.com/giantswarm/micrologger v1.0.0
go: downloading github.com/spf13/viper v1.18.0
go: downloading github.com/giantswarm/microendpoint v1.0.0
go: downloading github.com/giantswarm/apiextensions/v6 v6.4.1
go: downloading github.com/giantswarm/k8sclient/v7 v7.0.1
go: downloading k8s.io/client-go v0.26.1
go: downloading github.com/giantswarm/certs/v3 v3.1.1
go: downloading github.com/giantswarm/tenantcluster/v5 v5.0.0
go: downloading sigs.k8s.io/controller-runtime v0.14.1
go: downloading github.com/giantswarm/errors v0.3.0
go: downloading k8s.io/api v0.26.1
go: downloading k8s.io/kubectl v0.26.1
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/google/gofuzz v1.2.0
go: downloading k8s.io/klog/v2 v2.90.0
go: downloading sigs.k8s.io/structured-merge-diff/v4 v4.2.3
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/go-kit/kit v0.12.0
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/prometheus/client_golang v1.14.0
go: downloading github.com/go-kit/log v0.2.1
go: downloading github.com/go-logr/logr v1.2.3
go: downloading github.com/go-stack/stack v1.8.1
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/sagikazarmark/locafero v0.4.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/spf13/afero v1.11.0
go: downloading github.com/spf13/cast v1.6.0
go: downloading github.com/giantswarm/versionbundle v1.0.0
go: downloading github.com/giantswarm/backoff v1.0.0
go: downloading k8s.io/apiextensions-apiserver v0.26.1
go: downloading golang.org/x/sync v0.5.0
go: downloading github.com/giantswarm/to v0.4.0
go: downloading github.com/patrickmn/go-cache v2.1.0+incompatible
go: downloading k8s.io/utils v0.0.0-20230115233650-391b47cb4029
go: downloading github.com/evanphx/json-patch/v5 v5.6.0
go: downloading github.com/evanphx/json-patch v5.6.0+incompatible
go: downloading golang.org/x/net v0.19.0
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading github.com/spf13/cobra v1.6.1
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading k8s.io/cli-runtime v0.26.1
go: downloading sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd
go: downloading github.com/json-iterator/go v1.1.12
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/prometheus/client_model v0.3.0
go: downloading github.com/prometheus/common v0.39.0
go: downloading github.com/prometheus/procfs v0.9.0
go: downloading golang.org/x/sys v0.15.0
go: downloading google.golang.org/protobuf v1.31.0
go: downloading github.com/go-logfmt/logfmt v0.5.1
go: downloading github.com/sourcegraph/conc v0.3.0
go: downloading golang.org/x/exp v0.0.0-20230905200255-921286631fa9
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/pelletier/go-toml/v2 v2.1.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/coreos/go-semver v0.3.1
go: downloading gopkg.in/resty.v1 v1.12.0
go: downloading github.com/cenkalti/backoff/v4 v4.2.0
go: downloading github.com/imdario/mergo v0.3.13
go: downloading golang.org/x/term v0.15.0
go: downloading golang.org/x/time v0.5.0
go: downloading github.com/giantswarm/exporterkit v1.0.0
go: downloading github.com/getsentry/sentry-go v0.25.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading k8s.io/kube-openapi v0.0.0-20230123231816-1cb3ae25d79a
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading golang.org/x/oauth2 v0.15.0
go: downloading github.com/google/gnostic v0.6.9
go: downloading github.com/inconshreveable/mousetrap v1.1.0
go: downloading sigs.k8s.io/kustomize/api v0.12.1
go: downloading sigs.k8s.io/kustomize/kyaml v0.13.9
go: downloading k8s.io/component-base v0.26.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading gomodules.xyz/jsonpatch/v2 v2.2.0
go: downloading github.com/google/uuid v1.4.0
go: downloading github.com/chai2010/gettext-go v1.0.2
go: downloading github.com/MakeNowJust/heredoc v1.0.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.0
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d
go: downloading go.uber.org/multierr v1.9.0
go: downloading google.golang.org/appengine v1.6.7
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading github.com/go-errors/errors v1.4.2
go: downloading github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de
go: downloading github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7
go: downloading github.com/peterbourgon/diskv v2.0.1+incompatible
go: downloading github.com/go-openapi/jsonreference v0.20.2
go: downloading github.com/go-openapi/swag v0.22.3
go: downloading github.com/google/go-cmp v0.5.9
go: downloading github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae
go: downloading go.uber.org/atomic v1.9.0
go: downloading github.com/emicklei/go-restful/v3 v3.10.1
go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
go: downloading github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00
go: downloading github.com/xlab/treeprint v1.1.0
go: downloading github.com/google/btree v1.0.1
go: downloading github.com/go-openapi/jsonpointer v0.19.6
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/josharian/intern v1.0.0
go: downloading github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1
go: downloading go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5
go: downloading github.com/moby/spdystream v0.2.0
go: github.com/nats-io/jwt/[email protected] used for two different module paths (github.com/nats-io/jwt and github.com/nats-io/jwt/v2)

@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch from 9e9d41e to fdee645 Compare December 7, 2023 20:44
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch 2 times, most recently from aa5f910 to 9ebdeb4 Compare December 8, 2023 09:19
@renovate renovate bot force-pushed the renovate/github.com-nats-io-nats-server-v2-2.x branch from 9ebdeb4 to bba47d9 Compare December 8, 2023 12:27
@Gacko Gacko merged commit dd766b7 into master Dec 8, 2023
5 checks passed
@Gacko Gacko deleted the renovate/github.com-nats-io-nats-server-v2-2.x branch December 8, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file renovate PR created by RenovateBot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant