Skip to content

Commit

Permalink
fix(deps): update module github.com/nats-io/nats-server/v2 to v2.10.1 (
Browse files Browse the repository at this point in the history
…#106)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/nats-io/nats-server/v2](https://togithub.com/nats-io/nats-server)
| require | minor | `v2.9.17` -> `v2.10.1` |

---

### Release Notes

<details>
<summary>nats-io/nats-server
(github.com/nats-io/nats-server/v2)</summary>

###
[`v2.10.1`](https://togithub.com/nats-io/nats-server/releases/tag/v2.10.1)

[Compare
Source](https://togithub.com/nats-io/nats-server/compare/v2.10.0...v2.10.1)

#### 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
([#&#8203;4565](https://togithub.com/nats-io/nats-server/issues/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
([#&#8203;4564](https://togithub.com/nats-io/nats-server/issues/4564))
- Ensure stream-specified consumer limits are correctly applied in
combination with the explicit ack policy
([#&#8203;4567](https://togithub.com/nats-io/nats-server/issues/4567))

##### Complete Changes

###
[`v2.10.0`](https://togithub.com/nats-io/nats-server/releases/tag/v2.10.0)

[Compare
Source](https://togithub.com/nats-io/nats-server/compare/v2.9.22...v2.10.0)

#### 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
([#&#8203;3671](https://togithub.com/nats-io/nats-server/issues/3671))

Auth

- Authorization callout extension for delegating to external auth
providers
([#&#8203;3719](https://togithub.com/nats-io/nats-server/issues/3719),
[#&#8203;3784](https://togithub.com/nats-io/nats-server/issues/3784),
[#&#8203;3799](https://togithub.com/nats-io/nats-server/issues/3799),
[#&#8203;3864](https://togithub.com/nats-io/nats-server/issues/3864),
[#&#8203;3987](https://togithub.com/nats-io/nats-server/issues/3987),
[#&#8203;4501](https://togithub.com/nats-io/nats-server/issues/4501),
[#&#8203;4544](https://togithub.com/nats-io/nats-server/issues/4544))

Builds

- Add early build support for NetBSD
([#&#8203;3526](https://togithub.com/nats-io/nats-server/issues/3526))
Thanks to
[@&#8203;MatthiasPetermann](https://togithub.com/MatthiasPetermann) for
the contribution!
- Add early build support for IBM z/OS
([#&#8203;4209](https://togithub.com/nats-io/nats-server/issues/4209))
Thanks to [@&#8203;v1gnesh](https://togithub.com/v1gnesh) for the
contribution!

Cluster

- Multiple routes and ability to have per-account routes to reduce
head-of-line blocking in clustered setups
([#&#8203;4001](https://togithub.com/nats-io/nats-server/issues/4001),
[#&#8203;4183](https://togithub.com/nats-io/nats-server/issues/4183),
[#&#8203;4414](https://togithub.com/nats-io/nats-server/issues/4414))
- Support for S2 compression of traffic over route connections
([#&#8203;4115](https://togithub.com/nats-io/nats-server/issues/4115),
[#&#8203;4137](https://togithub.com/nats-io/nats-server/issues/4137))

Config

- Reload server config by sending a message in the system account to
`$SYS.REQ.SERVER.{server-id}.RELOAD`
([#&#8203;4307](https://togithub.com/nats-io/nats-server/issues/4307))

Embedded

- Add `ConnectionDeadline` field to `User` to force server disconnect
after deadline
([#&#8203;3580](https://togithub.com/nats-io/nats-server/issues/3580),
[#&#8203;3674](https://togithub.com/nats-io/nats-server/issues/3674))

Leafnode

- Add TLSHandshakeFirst option to perform a TLS handshake before sending
connection info
([#&#8203;4119](https://togithub.com/nats-io/nats-server/issues/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
([#&#8203;4167](https://togithub.com/nats-io/nats-server/issues/4167),
[#&#8203;4230](https://togithub.com/nats-io/nats-server/issues/4230))
- Allow remotes from same server binding to same hub account
([#&#8203;4259](https://togithub.com/nats-io/nats-server/issues/4259))

Logging

- Add `logfile_max_num` server config field to auto-rotate files
([#&#8203;4548](https://togithub.com/nats-io/nats-server/issues/4548))

JetStream

- Add stream subject transforms
([#&#8203;3814](https://togithub.com/nats-io/nats-server/issues/3814),
[#&#8203;3823](https://togithub.com/nats-io/nats-server/issues/3823),
[#&#8203;3827](https://togithub.com/nats-io/nats-server/issues/3827),
[#&#8203;4035](https://togithub.com/nats-io/nats-server/issues/4035),
[#&#8203;4354](https://togithub.com/nats-io/nats-server/issues/4354),
[#&#8203;4400](https://togithub.com/nats-io/nats-server/issues/4400),
[#&#8203;4403](https://togithub.com/nats-io/nats-server/issues/4403),
[#&#8203;4512](https://togithub.com/nats-io/nats-server/issues/4512))
- Add freeform `metadata` field to stream and consumer configs
([#&#8203;3797](https://togithub.com/nats-io/nats-server/issues/3797))
- Add support for consumers filtering on multiple subjects
([#&#8203;3500](https://togithub.com/nats-io/nats-server/issues/3500),
[#&#8203;3865](https://togithub.com/nats-io/nats-server/issues/3865),
[#&#8203;4008](https://togithub.com/nats-io/nats-server/issues/4008),
[#&#8203;4129](https://togithub.com/nats-io/nats-server/issues/4129),
[#&#8203;4188](https://togithub.com/nats-io/nats-server/issues/4188))
- Add original timestamp as header to republished message
([#&#8203;3933](https://togithub.com/nats-io/nats-server/issues/3933))
Thanks to [@&#8203;amorey](https://togithub.com/amorey) for the
contribution!
- Allow republish for mirroring/sourcing streams
([#&#8203;4010](https://togithub.com/nats-io/nats-server/issues/4010))
- Add optional S2 stream compression for file store-backed streams
([#&#8203;4004](https://togithub.com/nats-io/nats-server/issues/4004),
[#&#8203;4072](https://togithub.com/nats-io/nats-server/issues/4072))
- Add file store ability to re-encrypt with new encryption keys
([#&#8203;4296](https://togithub.com/nats-io/nats-server/issues/4296))
- Add embedded option to disable JetStream ASCII art at startup
([#&#8203;4261](https://togithub.com/nats-io/nats-server/issues/4261))
Thanks to [@&#8203;renevo](https://togithub.com/renevo) for the
contribution!
- Add ability to configure `first_seq` when creating streams
([#&#8203;4322](https://togithub.com/nats-io/nats-server/issues/4322),
[#&#8203;4345](https://togithub.com/nats-io/nats-server/issues/4345))
- Add `sync_internal` option to JetStream config
([#&#8203;4483](https://togithub.com/nats-io/nats-server/issues/4483))

Monitoring

- Add `unique_tag` field in `/jsz` and `/varz` endpoints
([#&#8203;3617](https://togithub.com/nats-io/nats-server/issues/3617))
- Add `$SYS.REQ.SERVER.PING.IDZ` NATS endpoint for basic server info
([#&#8203;3663](https://togithub.com/nats-io/nats-server/issues/3663))
- Add `$SYS.REQ.SERVER.<id>.PROFILEZ` NATS endpoint for requesting
debugging profiles
([#&#8203;3774](https://togithub.com/nats-io/nats-server/issues/3774))
- Add subscription count to `/statz` endpoint
([#&#8203;3875](https://togithub.com/nats-io/nats-server/issues/3875))
- Add Raft query parameter to `/jsz` to include Raft group info
([#&#8203;3914](https://togithub.com/nats-io/nats-server/issues/3914))
- Add `slow_consumer_stats` to the `/varz` endpoint
([#&#8203;4330](https://togithub.com/nats-io/nats-server/issues/4330))

MQTT

- Add support for QoS2 exactly-once delivery
([#&#8203;4349](https://togithub.com/nats-io/nats-server/issues/4349),
[#&#8203;4440](https://togithub.com/nats-io/nats-server/issues/4440))

Reload

- Match `--signal` PIDs with globular-style expression
([#&#8203;4370](https://togithub.com/nats-io/nats-server/issues/4370))
Thanks to [@&#8203;jevolk](https://togithub.com/jevolk) for the
contribution!

Subject Mapping

- Add ability to remove wildcard tokens in subject transforms
([#&#8203;4152](https://togithub.com/nats-io/nats-server/issues/4152))
- Allows cluster filtering in account subject mapping
([#&#8203;4175](https://togithub.com/nats-io/nats-server/issues/4175))

System Services

- Add `$SYS.REQ.SERVER.<id>.KICK` NATS endpoint to disconnect a client
by `id` or by `name` from the target server
([#&#8203;4298](https://togithub.com/nats-io/nats-server/issues/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
([#&#8203;4298](https://togithub.com/nats-io/nats-server/issues/4298))

Windows

- Add NATS_STARTUP_DELAY env for configurable startup time
([#&#8203;3743](https://togithub.com/nats-io/nats-server/issues/3743))
Thanks to [@&#8203;Alberic-Hardis](https://togithub.com/Alberic-Hardis)
for the contribution!

##### Improved

Leafnodes

- Add jitter to leafnode reconnections
([#&#8203;4398](https://togithub.com/nats-io/nats-server/issues/4398))

Logging

- Add account, stream and consumer name to consumer alignment cleanup
warning
([#&#8203;3666](https://togithub.com/nats-io/nats-server/issues/3666))
Thanks to [@&#8203;ch629](https://togithub.com/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
([#&#8203;4070](https://togithub.com/nats-io/nats-server/issues/4070),
[#&#8203;4071](https://togithub.com/nats-io/nats-server/issues/4071),
[#&#8203;4075](https://togithub.com/nats-io/nats-server/issues/4075),
[#&#8203;4284](https://togithub.com/nats-io/nats-server/issues/4284),
[#&#8203;4520](https://togithub.com/nats-io/nats-server/issues/4520),
[#&#8203;4553](https://togithub.com/nats-io/nats-server/issues/4553))
- Improve signaling mechanism for consumers to improve performance and
reduce latency
([#&#8203;3706](https://togithub.com/nats-io/nats-server/issues/3706))
- Allow edit of Stream RePublish
([#&#8203;3811](https://togithub.com/nats-io/nats-server/issues/3811))
- Add batch completed status to pull consumers
([#&#8203;3822](https://togithub.com/nats-io/nats-server/issues/3822))
- Improve behavior of stream source consumer creation or config updates
on leadership change
([#&#8203;4009](https://togithub.com/nats-io/nats-server/issues/4009))
- Record the stream and consumer info timestamps
([#&#8203;4133](https://togithub.com/nats-io/nats-server/issues/4133))
- Allow switching between limits and interest retention policies
([#&#8203;4361](https://togithub.com/nats-io/nats-server/issues/4361))
- Improve performance of deleting blocks
([#&#8203;4371](https://togithub.com/nats-io/nats-server/issues/4371))
- Update the way meta indexing is handled for filestore, significantly
reducing time to recover streams at startup
([#&#8203;4450](https://togithub.com/nats-io/nats-server/issues/4450),
[#&#8203;4481](https://togithub.com/nats-io/nats-server/issues/4481))
- Add self-healing mechanism to detect and delete orphaned Raft groups
([#&#8203;4510](https://togithub.com/nats-io/nats-server/issues/4510))
- Improve monitoring of consumers that need to be cleaned up
([#&#8203;4536](https://togithub.com/nats-io/nats-server/issues/4536))

MQTT

- Optimize retained messages by using KV semantics instead of holding
retained messages in memory
([#&#8203;4199](https://togithub.com/nats-io/nats-server/issues/4199),
[#&#8203;4228](https://togithub.com/nats-io/nats-server/issues/4228))
- Support for topics with `.` character
([#&#8203;4243](https://togithub.com/nats-io/nats-server/issues/4243))
Thanks to [@&#8203;petedavis](https://togithub.com/petedavis) and
[@&#8203;telemac](https://togithub.com/telemac) for the reports!
- Set the `RETAIN` flag when delivering to new subscriptions and clear
the flag in all other conditions
([#&#8203;4443](https://togithub.com/nats-io/nats-server/issues/4443))

Profiling

- Annotate CPU and goroutine profiles with additional asset information
to assist with debugging
([#&#8203;4204](https://togithub.com/nats-io/nats-server/issues/4204))
- Remove unused block profile rate
([#&#8203;4402](https://togithub.com/nats-io/nats-server/issues/4402))

Subject Mapping

- Subject transform validation and error reporting
([#&#8203;4202](https://togithub.com/nats-io/nats-server/issues/4202))

##### Fixed

Accounts

- Fix data race when updating accounts
([#&#8203;4435](https://togithub.com/nats-io/nats-server/issues/4435),
[#&#8203;4550](https://togithub.com/nats-io/nats-server/issues/4550),
[#&#8203;4561](https://togithub.com/nats-io/nats-server/issues/4561))
Thanks to [@&#8203;hspaay](https://togithub.com/hspaay) for the report!

Clients

- Check if client connection name was already set when storing it
([#&#8203;3824](https://togithub.com/nats-io/nats-server/issues/3824))

Leafnode

- Data race during validation and setup
([#&#8203;4194](https://togithub.com/nats-io/nats-server/issues/4194))

JetStream

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

OSCP

- Fixed local issuer determination for OCSP Staple
([#&#8203;4355](https://togithub.com/nats-io/nats-server/issues/4355))

Routes

- Update LastActivity on connect for routes
([#&#8203;4415](https://togithub.com/nats-io/nats-server/issues/4415))

##### Complete Changes

###
[`v2.9.22`](https://togithub.com/nats-io/nats-server/releases/tag/v2.9.22)

[Compare
Source](https://togithub.com/nats-io/nats-server/compare/v2.9.21...v2.9.22)

#### 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
([#&#8203;4423](https://togithub.com/nats-io/nats-server/issues/4423))
Thanks to [@&#8203;mdawar](https://togithub.com/mdawar) for the
contribution!

JetStream

- Improve consumer scaling reliability with filters and cluster restart
([#&#8203;4404](https://togithub.com/nats-io/nats-server/issues/4404))
- Send event on lame duck mode (LDM) to avoid placing assets on shutting
down nodes
([#&#8203;4405](https://togithub.com/nats-io/nats-server/issues/4405))
- Skip filestore tombstones if downgrade from 2.10 occurs
([#&#8203;4452](https://togithub.com/nats-io/nats-server/issues/4452))
- Adjust delivered and waiting count when consumer message delivery
fails
([#&#8203;4472](https://togithub.com/nats-io/nats-server/issues/4472))

##### Fixed

Config

- Allow empty configs and fix JSON compatibility
([#&#8203;4394](https://togithub.com/nats-io/nats-server/issues/4394),
[#&#8203;4418](https://togithub.com/nats-io/nats-server/issues/4418))
- Remove TLS OCSP debug log on reload
([#&#8203;4453](https://togithub.com/nats-io/nats-server/issues/4453))

Monitoring

- Fix Content-Type header when /healthz is not 200 OK
([#&#8203;4437](https://togithub.com/nats-io/nats-server/issues/4437))
Thanks to [@&#8203;mdawar](https://togithub.com/mdawar) for the
contribution!
- Fix server /connz idle time sorting
([#&#8203;4463](https://togithub.com/nats-io/nats-server/issues/4463))
Thanks to [@&#8203;mdawar](https://togithub.com/mdawar) for the
contribution!
- Interface conversion bug which could cause a panic when calling
/ipqueuesz endpoint
([#&#8203;4477](https://togithub.com/nats-io/nats-server/issues/4477))

Leafnode

- Fix race condition which could affect propagating interest over
leafnode connections
([#&#8203;4464](https://togithub.com/nats-io/nats-server/issues/4464))

JetStream

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

##### Complete Changes

###
[`v2.9.21`](https://togithub.com/nats-io/nats-server/releases/tag/v2.9.21)

[Compare
Source](https://togithub.com/nats-io/nats-server/compare/v2.9.20...v2.9.21)

#### 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
([#&#8203;4362](https://togithub.com/nats-io/nats-server/issues/4362),
backported from 2.10)
- Add bi-directional fetch, cache, and verification of CA OCSP Response
for LEAF connections
([#&#8203;4362](https://togithub.com/nats-io/nats-server/issues/4362),
backported from 2.10)

See [ADR-38 OCSP Peer
Verification](https://togithub.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-38.md)

General

- Add UTC log timestamp option
([#&#8203;4331](https://togithub.com/nats-io/nats-server/issues/4331),
backported from 2.10)

##### Improved

JetStream

- Don't error to server logs if message was deleted for consumer
([#&#8203;4328](https://togithub.com/nats-io/nats-server/issues/4328))
- Improve publish performance for zero-interest subjects
([#&#8203;4359](https://togithub.com/nats-io/nats-server/issues/4359))
Thanks to [@&#8203;antlad](https://togithub.com/antlad) for reporting
the issue!
- Sync and reset message rejected count to ensure replicas don’t
incorrectly discard messages
([#&#8203;4365](https://togithub.com/nats-io/nats-server/issues/4365),
[#&#8203;4366](https://togithub.com/nats-io/nats-server/issues/4366))

##### Fixed

General

- Leaking memory on usage of `getHash()`
([#&#8203;4329](https://togithub.com/nats-io/nats-server/issues/4329))
Thanks to [@&#8203;VuongUranus](https://togithub.com/VuongUranus) for
reporting the issue!
- Server reload with highly active accounts and service imports could
cause panic or dataloss
([#&#8203;4327](https://togithub.com/nats-io/nats-server/issues/4327))
- Fix detection of an unusable configuration file
([#&#8203;4358](https://togithub.com/nats-io/nats-server/issues/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
([#&#8203;4360](https://togithub.com/nats-io/nats-server/issues/4360))

OCSP

- Fix local-determination of issuer CA at startup
([#&#8203;4362](https://togithub.com/nats-io/nats-server/issues/4362))
- Remove constraint that all (super)cluster node peers must be issued by
the same CA
([#&#8203;4362](https://togithub.com/nats-io/nats-server/issues/4362))

Embedded

- Don't require TLS for in-process client connection
([#&#8203;4323](https://togithub.com/nats-io/nats-server/issues/4323))

JetStream

- Fix serializability guarantee for concurrent publish when using
expected-last-subject-sequence
([#&#8203;4319](https://togithub.com/nats-io/nats-server/issues/4319))
- Report correct consumer count in paged list response
([#&#8203;4339](https://togithub.com/nats-io/nats-server/issues/4339))
- Fix not validating single token filtered consumer
([#&#8203;4338](https://togithub.com/nats-io/nats-server/issues/4338))
- Fix stream recovery of message block with sequence gaps
([#&#8203;4344](https://togithub.com/nats-io/nats-server/issues/4344))
- Fix panic when re-calculating first sequence of SimpleState info
([#&#8203;4346](https://togithub.com/nats-io/nats-server/issues/4346))
- Fix stream store accounting drift
([#&#8203;4357](https://togithub.com/nats-io/nats-server/issues/4357))

##### Complete Changes

###
[`v2.9.20`](https://togithub.com/nats-io/nats-server/releases/tag/v2.9.20)

[Compare
Source](https://togithub.com/nats-io/nats-server/compare/v2.9.19...v2.9.20)

#### Changelog

##### Go Version

-   1.19.11

##### Added

Windows

- Backport 2.10 support for native Windows certificate store
([#&#8203;4268](https://togithub.com/nats-io/nats-server/issues/4268))

##### Improved

Accounts

- Allow advisories to be exported/imported across accounts
([#&#8203;4302](https://togithub.com/nats-io/nats-server/issues/4302))

JetStream

- Optimize consumer create time on streams with a large number of blocks
([#&#8203;4269](https://togithub.com/nats-io/nats-server/issues/4269))

##### Fixed

Gateways

- Protect possible data race when reloading accounts
([#&#8203;4274](https://togithub.com/nats-io/nats-server/issues/4274))

Leafnodes

- Prevent zombie subscriptions which could lead to silent data loss when
using queue subscriptions
([#&#8203;4299](https://togithub.com/nats-io/nats-server/issues/4299))

WebSocket

- Prevent reporting `tls_required` when `tls_available` is not set
([#&#8203;4264](https://togithub.com/nats-io/nats-server/issues/4264))

JetStream

- Prevent corrupting streams actively being restored during health check
([#&#8203;4277](https://togithub.com/nats-io/nats-server/issues/4277))
Thank you [@&#8203;vitush93](https://togithub.com/vitush93) for the
report!
- Prevent encrypted data attempting to be decrypted with an empty key
([#&#8203;4301](https://togithub.com/nats-io/nats-server/issues/4301))

MQTT

- Ensure republished messages from streams are received by MQTT
subscriptions
([#&#8203;4303](https://togithub.com/nats-io/nats-server/issues/4303))

##### Complete Changes

###
[`v2.9.19`](https://togithub.com/nats-io/nats-server/releases/tag/v2.9.19)

[Compare
Source](https://togithub.com/nats-io/nats-server/compare/v2.9.18...v2.9.19)

#### Changelog

##### Go Version

-   1.19.10

##### Improved

JetStream

- Improve resource utilization when creating mirrors on very
high-sequence streams
([#&#8203;4249](https://togithub.com/nats-io/nats-server/issues/4249))

##### Fixed

WebSocket

- Ensure INFO properties are populated based on the WebSocket listener
when enabled
([#&#8203;4255](https://togithub.com/nats-io/nats-server/issues/4255))
Thanks to [@&#8203;Envek](https://togithub.com/Envek) for reporting the
issue!

##### Complete Changes

###
[`v2.9.18`](https://togithub.com/nats-io/nats-server/releases/tag/v2.9.18)

[Compare
Source](https://togithub.com/nats-io/nats-server/compare/v2.9.17...v2.9.18)

#### Changelog

##### Go Version

-   1.19.10

##### Dependency Updates

- golang.org/x/crypto v0.9.0
([#&#8203;4236](https://togithub.com/nats-io/nats-server/issues/4236))
- golang.org/x/sys v0.8.0
([#&#8203;4236](https://togithub.com/nats-io/nats-server/issues/4236))
- github.com/nats-io/nats.go v1.27.0
([#&#8203;4239](https://togithub.com/nats-io/nats-server/issues/4239))

##### Improved

Monitoring

- Optimize /statsz locking and sending in standalone mode
([#&#8203;4235](https://togithub.com/nats-io/nats-server/issues/4235))

JetStream

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

##### Fixed

General

- Fix a variety of potential panic scenarios
([#&#8203;4214](https://togithub.com/nats-io/nats-server/issues/4214))
Thanks to [@&#8203;Zamony](https://togithub.com/Zamony) and
[@&#8203;artemseleznev](https://togithub.com/artemseleznev) for the
contribution!

Leadnode

- Daisy chained leafnodes could have unreliable interest propagation
([#&#8203;4207](https://togithub.com/nats-io/nats-server/issues/4207))
- Properly distribute requests to queue groups across leafnodes
([#&#8203;4231](https://togithub.com/nats-io/nats-server/issues/4231))

JetStream

- Killed server on restart could render encrypted stream unrecoverable
([#&#8203;4210](https://togithub.com/nats-io/nats-server/issues/4210))
Thanks to [@&#8203;BhatheyBalaji](https://togithub.com/BhatheyBalaji)
for the report!
- Fix a few data races detected internal testing
([#&#8203;4211](https://togithub.com/nats-io/nats-server/issues/4211))
- Process extended purge operations correctly when being replayed
([#&#8203;4212](https://togithub.com/nats-io/nats-server/issues/4212),
[#&#8203;4213](https://togithub.com/nats-io/nats-server/issues/4213))
Thanks to [@&#8203;MauriceVanVeen](https://togithub.com/MauriceVanVeen)
for the report and contribution!

##### Complete Changes

</details>

---

### 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/infratographer/x).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTUuMiIsInVwZGF0ZWRJblZlciI6IjM3LjAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Sep 28, 2023
1 parent 91c1358 commit bf059eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
github.com/labstack/echo/v4 v4.11.1
github.com/labstack/gommon v0.4.0
github.com/lib/pq v1.10.9
github.com/nats-io/nats-server/v2 v2.9.17
github.com/nats-io/nats-server/v2 v2.10.1
github.com/nats-io/nats.go v1.30.2
github.com/pressly/goose/v3 v3.15.0
github.com/spf13/cobra v1.7.0
Expand Down Expand Up @@ -82,7 +82,7 @@ require (
github.com/moby/sys/sequential v0.5.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/nats-io/jwt/v2 v2.4.1 // indirect
github.com/nats-io/jwt/v2 v2.5.2 // indirect
github.com/nats-io/nkeys v0.4.5 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,10 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
github.com/nats-io/jwt/v2 v2.4.1 h1:Y35W1dgbbz2SQUYDPCaclXcuqleVmpbRa7646Jf2EX4=
github.com/nats-io/jwt/v2 v2.4.1/go.mod h1:24BeQtRwxRV8ruvC4CojXlx/WQ/VjuwlYiH+vu/+ibI=
github.com/nats-io/nats-server/v2 v2.9.17 h1:gFpUQ3hqIDJrnqog+Bl5vaXg+RhhYEZIElasEuRn2tw=
github.com/nats-io/nats-server/v2 v2.9.17/go.mod h1:eQysm3xDZmIjfkjr7DuD9DjRFpnxQc2vKVxtEg0Dp6s=
github.com/nats-io/jwt/v2 v2.5.2 h1:DhGH+nKt+wIkDxM6qnVSKjokq5t59AZV5HRcFW0zJwU=
github.com/nats-io/jwt/v2 v2.5.2/go.mod h1:24BeQtRwxRV8ruvC4CojXlx/WQ/VjuwlYiH+vu/+ibI=
github.com/nats-io/nats-server/v2 v2.10.1 h1:MIJ614dhOIdo71iSzY8ln78miXwrYvlvXHUyS+XdKZQ=
github.com/nats-io/nats-server/v2 v2.10.1/go.mod h1:3PMvMSu2cuK0J9YInRLWdFpFsswKKGUS77zVSAudRto=
github.com/nats-io/nats.go v1.30.2 h1:aloM0TGpPorZKQhbAkdCzYDj+ZmsJDyeo3Gkbr72NuY=
github.com/nats-io/nats.go v1.30.2/go.mod h1:dcfhUgmQNN4GJEfIb2f9R7Fow+gzBF4emzDHrVBd5qM=
github.com/nats-io/nkeys v0.4.5 h1:Zdz2BUlFm4fJlierwvGK+yl20IAKUm7eV6AAZXEhkPk=
Expand Down

0 comments on commit bf059eb

Please sign in to comment.