Skip to content

Commit

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

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

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/nats-io/nats-server/v2](https://github.com/nats-io/nats-server)
| `v2.10.12` -> `v2.10.18` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fnats-io%2fnats-server%2fv2/v2.10.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fnats-io%2fnats-server%2fv2/v2.10.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fnats-io%2fnats-server%2fv2/v2.10.12/v2.10.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fnats-io%2fnats-server%2fv2/v2.10.12/v2.10.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://github.com/nats-io/nats-server/compare/v2.10.17...v2.10.18)

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

##### Dependencies

- github.com/nats-io/jwt v2.5.8
([#&#8203;5618](https://github.com/nats-io/nats-server/issues/5618))
- github.com/minio/highwayhash v1.0.3
([#&#8203;5627](https://github.com/nats-io/nats-server/issues/5627))
- golang.org/x/crypto v0.25.0
([#&#8203;5627](https://github.com/nats-io/nats-server/issues/5627))
- golang.org/x/sys v0.22.0
([#&#8203;5627](https://github.com/nats-io/nats-server/issues/5627))

##### Improved

Embedded

- Export server function to initiate “lame duck mode” when embedding
NATS
([#&#8203;5660](https://github.com/nats-io/nats-server/issues/5660))

JetStream

- CPU spike during recalculation of first message in the memory store
([#&#8203;5629](https://github.com/nats-io/nats-server/issues/5629))

##### Fixed

JetStream

- Fix duplicate callbacks on full wildcard match
([#&#8203;5610](https://github.com/nats-io/nats-server/issues/5610))
- Multiple fixes for the filestore per-subject state
([#&#8203;5616](https://github.com/nats-io/nats-server/issues/5616))
- Fix checkSkipFirstBlock which could return a negative index if the
first block in the per-subject index is outdated
([#&#8203;5630](https://github.com/nats-io/nats-server/issues/5630))
- Don't ack messages if consumer is filtered and they were not
applicable
([#&#8203;5639](https://github.com/nats-io/nats-server/issues/5639),
[#&#8203;5612](https://github.com/nats-io/nats-server/issues/5612),
[#&#8203;5638](https://github.com/nats-io/nats-server/issues/5638))
- Protect against possible panic in the filestore where the stree index
is nil
([#&#8203;5662](https://github.com/nats-io/nats-server/issues/5662))
- Prevent panic when shutting down a server immediately after starting
it
([#&#8203;5663](https://github.com/nats-io/nats-server/issues/5663))

##### Complete Changes

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

[Compare
Source](https://github.com/nats-io/nats-server/compare/v2.10.16...v2.10.17)

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

##### Dependencies

- golang.org/x/sys v0.21.0
([#&#8203;5508](https://github.com/nats-io/nats-server/issues/5508))
- golang.org/x/crypto v0.24.0
([#&#8203;5509](https://github.com/nats-io/nats-server/issues/5509))
- github.com/klauspost/compress v1.17.9
([#&#8203;5538](https://github.com/nats-io/nats-server/issues/5538))
- github.com/nats-io/nats.go v1.36.0
([#&#8203;5538](https://github.com/nats-io/nats-server/issues/5538))

##### Added

Monitoring

- Experimental `/raftz` monitoring endpoint for retrieving internal Raft
group state for diagnostic purposes
([#&#8203;5530](https://github.com/nats-io/nats-server/issues/5530))

##### Improved

Core

- Reorder struct fields in stree for improved memory alignment
([#&#8203;5517](https://github.com/nats-io/nats-server/issues/5517))

JetStream

- Improve performance of calculating num-pending and interest state of a
stream
([#&#8203;5476](https://github.com/nats-io/nats-server/issues/5476))
- Improve leadership change signaling
([#&#8203;5504](https://github.com/nats-io/nats-server/issues/5504),
[#&#8203;5505](https://github.com/nats-io/nats-server/issues/5505))
- Improved memory-based stream behavior during server restarts
([#&#8203;5506](https://github.com/nats-io/nats-server/issues/5506))
- Reset election timer when leaving observer mode enabling quicker
leadership hand-off
([#&#8203;5516](https://github.com/nats-io/nats-server/issues/5516))
- Ensure ack processing is consistent and correct between leader and
followers for replicated consumers
([#&#8203;5524](https://github.com/nats-io/nats-server/issues/5524))
- Use per-subject info to speed up load-last filestore operations with
wildcard filters
([#&#8203;5546](https://github.com/nats-io/nats-server/issues/5546))
- Populate missing per-subject info after skipping blocks when
calculating filtered pending
([#&#8203;5545](https://github.com/nats-io/nats-server/issues/5545))
- Reduced time taken to process consumer deletes when there is a large
gap between the consumer ack floor and the stream last sequence
([#&#8203;5547](https://github.com/nats-io/nats-server/issues/5547))
- No longer retrieve the WAL state unnecessarily when installing Raft
snapshots
([#&#8203;5552](https://github.com/nats-io/nats-server/issues/5552))
- Increased filestore block and per-subject info cache expiry times to
help improve performance on sparse streams
([#&#8203;5568](https://github.com/nats-io/nats-server/issues/5568))
- Reduce allocations in isMatch in filestore/memstore
([#&#8203;5573](https://github.com/nats-io/nats-server/issues/5573))
- Improved handling of out-of-date first blocks in per-subject info
entries
([#&#8203;5577](https://github.com/nats-io/nats-server/issues/5577))
- Use stree for message block subject indexing instead of hashmaps
([#&#8203;5559](https://github.com/nats-io/nats-server/issues/5559))
- Avoid loading last message blocks on LoadNextMsg miss
([#&#8203;5584](https://github.com/nats-io/nats-server/issues/5584))
- Add node48 node size to stree, providing better memory utilisation for
some subject spaces
([#&#8203;5585](https://github.com/nats-io/nats-server/issues/5585))
- Logging message when exceeding JetStream account limits now prints the
account
([#&#8203;5597](https://github.com/nats-io/nats-server/issues/5597))

Monitoring

- Rate-limit statsz updates which reduces load for very large clusters
([#&#8203;5470](https://github.com/nats-io/nats-server/issues/5470),
[#&#8203;5485](https://github.com/nats-io/nats-server/issues/5485))
Thanks to [@&#8203;wjordan](https://github.com/wjordan) for the report
and contribution!

##### Changed

MQTT

- Do not wait for JS responses when disconnecting the session
([#&#8203;5575](https://github.com/nats-io/nats-server/issues/5575))

##### Fixed

Accounts

- Import/export cycle detection
([#&#8203;5494](https://github.com/nats-io/nats-server/issues/5494))
Thanks to [@&#8203;semakasyrok](https://github.com/semakasyrok) for
the contribution!
- Allow callout users to be revoked
([#&#8203;5555](https://github.com/nats-io/nats-server/issues/5555),
[#&#8203;5561](https://github.com/nats-io/nats-server/issues/5561))
- Fixed a data race when updating payload limits from JWT claims
([#&#8203;5593](https://github.com/nats-io/nats-server/issues/5593))

Core

- Allow client kick to also kick leafnode connections
([#&#8203;5587](https://github.com/nats-io/nats-server/issues/5587))
- Fix imports sometimes not being available for a client after server
restarts
([#&#8203;5588](https://github.com/nats-io/nats-server/issues/5588),
[#&#8203;5589](https://github.com/nats-io/nats-server/issues/5589))

JetStream

- Avoid panic on corrupted TAV file
([#&#8203;5464](https://github.com/nats-io/nats-server/issues/5464))
- Performance regression in `LoadNextMsg` with very sparse or no
messages
([#&#8203;5475](https://github.com/nats-io/nats-server/issues/5475))
- Stepdown candidate when append-entry is ahead of last log term
([#&#8203;5481](https://github.com/nats-io/nats-server/issues/5481))
- Fix possible redelivery after successful ack during rollout restarts
([#&#8203;5482](https://github.com/nats-io/nats-server/issues/5482))
- Fix returning maximum consumers limit reached on some consumer updates
([#&#8203;5489](https://github.com/nats-io/nats-server/issues/5489))
- Fix last sequence stream reset on server restart
([#&#8203;5497](https://github.com/nats-io/nats-server/issues/5497))
- Fix data between creating a consumer and determining cluster state
([#&#8203;5501](https://github.com/nats-io/nats-server/issues/5501))
- Prevent interleaving of setting/unsetting observer states
([#&#8203;5503](https://github.com/nats-io/nats-server/issues/5503))
- Fix accounting for consumers with a different replication factor than
the parent stream
([#&#8203;5521](https://github.com/nats-io/nats-server/issues/5521))
- Fix potential segfault if `mset.mirror` was nil when calculating the
last loaded message
([#&#8203;5522](https://github.com/nats-io/nats-server/issues/5522))
- Follower stores no longer inherit the redelivered consumer delivered
sequence which could break ack gap fill
([#&#8203;5533](https://github.com/nats-io/nats-server/issues/5533))
- Direct Raft proposals will no longer bypass the internal proposal
queue which could cause incorrect interleaving of state
([#&#8203;5543](https://github.com/nats-io/nats-server/issues/5543))
- Audit streams that capture `$JS.>`, `$JS.API.>`, `$JSC.>` and `$SYS.>`
subjects are now only allowed if `NoAck` is set, avoiding potential
misconfiguration that could affect the JetStream API, with the exception
of the more specific `$JS.EVENT.>` and `$SYS.ACCOUNT.>` as these were
allowed before
([#&#8203;5548](https://github.com/nats-io/nats-server/issues/5548),
[#&#8203;5556](https://github.com/nats-io/nats-server/issues/5556))
- Streams from failed snapshot restores are now cleaned up correctly,
fixing potential false positive warnings on `/healthz` after a failed
restore
([#&#8203;5549](https://github.com/nats-io/nats-server/issues/5549))
- Ensure that internal system clients used by Raft groups are always
cleaned up correctly, fixing a potential memory leak
([#&#8203;5566](https://github.com/nats-io/nats-server/issues/5566))
Thanks to
[@&#8203;slice-srinidhis](https://github.com/slice-srinidhis) for the
report!
- Fixed a potential panic when updating stream sources on an existing
stream
([#&#8203;5571](https://github.com/nats-io/nats-server/issues/5571))
- Fixed panic when creating a stream with an incorrect mapping
destination
([#&#8203;5570](https://github.com/nats-io/nats-server/issues/5570),
[#&#8203;5571](https://github.com/nats-io/nats-server/issues/5571))
- Fixed returning error when trying to update a stream that has sources
with bad subject transforms
([#&#8203;5574](https://github.com/nats-io/nats-server/issues/5574))
- Fixed a bug that would return “no message found” for last_per_subject
([#&#8203;5578](https://github.com/nats-io/nats-server/issues/5578))
- Correctly leave Raft observer state after applies were paused, i.e.
due to a catch-up in progress
([#&#8203;5586](https://github.com/nats-io/nats-server/issues/5586))
- JetStream no longer leaks memory when creating and deleting Raft
groups
([#&#8203;5600](https://github.com/nats-io/nats-server/issues/5600))
- Fixed a potential panic in consumer ack queue handling
([#&#8203;5601](https://github.com/nats-io/nats-server/issues/5601))
- Fixed data race in runAsLeader
([#&#8203;5604](https://github.com/nats-io/nats-server/issues/5604))

Leafnodes

- Prevent potential message duplication for queue-group subscriptions
([#&#8203;5519](https://github.com/nats-io/nats-server/issues/5519))
Thanks to [@&#8203;pcsegal](https://github.com/pcsegal) for the
report!

Monitoring

- Ensure consistency of the delivered stream sequence in `/jsz` filtered
consumer reporting
([#&#8203;5528](https://github.com/nats-io/nats-server/issues/5528))

##### Chores

Config

- Clarify comment on re-use of config `Options` type for embedded mode
([#&#8203;5472](https://github.com/nats-io/nats-server/issues/5472))
Thanks to [@&#8203;robinkb](https://github.com/robinkb) for the report
and contribution!

JetStream

- Added additional memory-based Raft tests
([#&#8203;5515](https://github.com/nats-io/nats-server/issues/5515))

##### Complete Changes

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

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

> \[!WARNING]
> A possible regression may result in a server panic at startup when
`tav.idx` files were incorrectly truncated down to zero bytes. You can
work around this problem by deleting `tav.idx` files that are zero bytes
in length before starting the server. Zero-byte files could exist as a
result of a previous server crash before a successful file sync to disk
occurred.

##### Go Version

- 1.22.3
([#&#8203;5438](https://github.com/nats-io/nats-server/issues/5438))

##### Dependencies

- github.com/nats-io/jwt/v2 v2.5.6
([#&#8203;5328](https://github.com/nats-io/nats-server/issues/5328))
- golang.org/x/sys v0.20.0
([#&#8203;5388](https://github.com/nats-io/nats-server/issues/5388))
- golang.org/x/crypto v0.23.0
([#&#8203;5413](https://github.com/nats-io/nats-server/issues/5413))

##### Added

- Added Left and Right subject mapping operations
([#&#8203;5337](https://github.com/nats-io/nats-server/issues/5337))
Thanks to [@&#8203;sspates](https://github.com/sspates) for the
contribution!
- Add a `/expvarz` monitoring endpoint
([#&#8203;5374](https://github.com/nats-io/nats-server/issues/5374))

##### Improved

Accounts

- Change `AccountResolver()` to use read lock to prevent contention
([#&#8203;5351](https://github.com/nats-io/nats-server/issues/5351))
- Improve muxed routes with large subject space
([#&#8203;5399](https://github.com/nats-io/nats-server/issues/5399))

Gateway

- Outbound may fail to detect stale connection
([#&#8203;5356](https://github.com/nats-io/nats-server/issues/5356))
Thanks to [@&#8203;wjordan](https://github.com/wjordan) for the
report!

JetStream

- Optimize stream subject matching implementation
([#&#8203;5316](https://github.com/nats-io/nats-server/issues/5316),
[#&#8203;5324](https://github.com/nats-io/nats-server/issues/5324),
[#&#8203;5329](https://github.com/nats-io/nats-server/issues/5329),
[#&#8203;5342](https://github.com/nats-io/nats-server/issues/5342),
[#&#8203;5353](https://github.com/nats-io/nats-server/issues/5353))
- Improve filestore LoadNextMsg performance
([#&#8203;5401](https://github.com/nats-io/nats-server/issues/5401))
- Prevent blocking writes on meta state filestore flush
([#&#8203;5333](https://github.com/nats-io/nats-server/issues/5333))
- Add logging to measure `writeFullState` and
`enforceMsgPerSubjectLimit`
([#&#8203;5340](https://github.com/nats-io/nats-server/issues/5340))
- Do not hold filestore lock on msg block loads when looking up the
first sequence for subject
([#&#8203;5363](https://github.com/nats-io/nats-server/issues/5363))
- Improve various stream sourcing and mirror behaviors and performance
([#&#8203;5366](https://github.com/nats-io/nats-server/issues/5366),
[#&#8203;5372](https://github.com/nats-io/nats-server/issues/5372),
[#&#8203;5379](https://github.com/nats-io/nats-server/issues/5379),
[#&#8203;5389](https://github.com/nats-io/nats-server/issues/5389))
- Increase the compression threshold for Raft traffic
([#&#8203;5371](https://github.com/nats-io/nats-server/issues/5371))
- Put a maximum idle flush time for the filestore
([#&#8203;5370](https://github.com/nats-io/nats-server/issues/5370))
- Updated subject state expiration
([#&#8203;5377](https://github.com/nats-io/nats-server/issues/5377))
- Simplify writing the full state to index.db
([#&#8203;5378](https://github.com/nats-io/nats-server/issues/5378))
- Added in separate last subject timestamp to track access
([#&#8203;5380](https://github.com/nats-io/nats-server/issues/5380))
- Check consumer leader status without locks
([#&#8203;5386](https://github.com/nats-io/nats-server/issues/5386))
- Various Raft improvements with limited to no state
([#&#8203;5427](https://github.com/nats-io/nats-server/issues/5427))
- Improved consumer with AckAll performance of first ack with large
first stream sequence
([#&#8203;5446](https://github.com/nats-io/nats-server/issues/5446))
- Various stream catchup improvements
([#&#8203;5454](https://github.com/nats-io/nats-server/issues/5454))

WebSocket

- Improve generating INFO data to send to clients
([#&#8203;5405](https://github.com/nats-io/nats-server/issues/5405))

##### Fixed

Config

- Fix to properly deal with block scopes in lexer
([#&#8203;5406](https://github.com/nats-io/nats-server/issues/5406),
[#&#8203;5431](https://github.com/nats-io/nats-server/issues/5431),
[#&#8203;5436](https://github.com/nats-io/nats-server/issues/5436))

JetStream

- Fix potential deadlock if a panic occurs during `calculateSyncRequest`
([#&#8203;5321](https://github.com/nats-io/nats-server/issues/5321))
- Fix corner cases of subject matching
([#&#8203;5318](https://github.com/nats-io/nats-server/issues/5318),
[#&#8203;5339](https://github.com/nats-io/nats-server/issues/5339))
Thanks to [@&#8203;mihaitodor](https://github.com/mihaitodor) for the
report!
- Prevent stepping down for old election terms
([#&#8203;5314](https://github.com/nats-io/nats-server/issues/5314))
- Prevent WAL truncation during catch-up until after peerstate/snapshot
check
([#&#8203;5330](https://github.com/nats-io/nats-server/issues/5330))
- Fix various delivery counter logic
([#&#8203;5338](https://github.com/nats-io/nats-server/issues/5338),
[#&#8203;5361](https://github.com/nats-io/nats-server/issues/5361))
- Reset election timeout only on granted vote request
([#&#8203;5315](https://github.com/nats-io/nats-server/issues/5315))
- Ensure stream catchup syncs after server crash and restart
([#&#8203;5362](https://github.com/nats-io/nats-server/issues/5362))
- Prevent race condition for mirroring a consumer
([#&#8203;5369](https://github.com/nats-io/nats-server/issues/5369))
- Ensure messages are removed after consumer updates occur on
interest-based streams
([#&#8203;5384](https://github.com/nats-io/nats-server/issues/5384))
Thanks to [@&#8203;MauriceVanVeen](https://github.com/MauriceVanVeen)
for the report and contribution!
- Cleanup messages on interest stream after consumer interest changes
([#&#8203;5385](https://github.com/nats-io/nats-server/issues/5385))
Thanks to [@&#8203;tyler-eon](https://github.com/tyler-eon) for the
report and [@&#8203;MauriceVanVeen](https://github.com/MauriceVanVeen)
for the contribution!
- Fix potential redelivery of acked messages during server restarts
([#&#8203;5419](https://github.com/nats-io/nats-server/issues/5419))
- Hold onto tombstones for previous blocks on compact
([#&#8203;5426](https://github.com/nats-io/nats-server/issues/5426))
- Fixes for rescaling streams with sources
([#&#8203;5428](https://github.com/nats-io/nats-server/issues/5428))

WebSocket

- Fix data races during shutdown
([#&#8203;5398](https://github.com/nats-io/nats-server/issues/5398))

##### Chores

- Various test improvements
([#&#8203;5319](https://github.com/nats-io/nats-server/issues/5319),
[#&#8203;5332](https://github.com/nats-io/nats-server/issues/5332),
[#&#8203;5341](https://github.com/nats-io/nats-server/issues/5341))
- Document field names
([#&#8203;5359](https://github.com/nats-io/nats-server/issues/5359))

##### Complete Changes

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

[Compare
Source](https://github.com/nats-io/nats-server/compare/v2.10.12...v2.10.14)

#### Changelog

(Note there was no 2.10.13 version 🙂)

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

##### Dependencies

- github.com/nats-io/nats.go v1.34.1
([#&#8203;5271](https://github.com/nats-io/nats-server/issues/5271))
- golang.org/x/crypto v0.22.0
([#&#8203;5283](https://github.com/nats-io/nats-server/issues/5283))

##### Improved

Auth

- Improve clone behavior to prevent unintended references
([#&#8203;5246](https://github.com/nats-io/nats-server/issues/5246))
Thanks to [Trail Of Bits](https://trailofbits.com/) for the report!
- Apply constant-time evaluation of non-bcrypt passwords
([#&#8203;5247](https://github.com/nats-io/nats-server/issues/5247))
Thanks to [Trail Of Bits](https://trailofbits.com/) for the report!

JetStream

- Reduce lock contention when looking up stream metadata
([#&#8203;5223](https://github.com/nats-io/nats-server/issues/5223))
- Optimize matching a subject when applying per subject message limits
([#&#8203;5228](https://github.com/nats-io/nats-server/issues/5228))
- Optimize waiting queue for pull consumers to reduce excessive memory
and GC pressure
([#&#8203;5233](https://github.com/nats-io/nats-server/issues/5233))
- Improve error handling in filestore to prevent duplicate nonces being
used and ignored errors
([#&#8203;5248](https://github.com/nats-io/nats-server/issues/5248))
Thanks to [Trail Of Bits](https://trailofbits.com/) for the report!
- Improve interest and workqueue state tracking to prevent stranded
messages during concurrent consumer acks and stream deletes
([#&#8203;5270](https://github.com/nats-io/nats-server/issues/5270))
- Introduce store method to push down and optimize multi-filter subject
matching used by consumers
([#&#8203;5274](https://github.com/nats-io/nats-server/issues/5274))
Thanks to [@&#8203;svenfoo](https://github.com/svenfoo) for the
report!
- Various improvements and fixes for clustered interest-based streams
and associated consumers
([#&#8203;5287](https://github.com/nats-io/nats-server/issues/5287))
- Return errors and/or adding logging for rare filestore conditions
([#&#8203;5298](https://github.com/nats-io/nats-server/issues/5298))
- When explicitly syncing to the filesystem, hold the message block lock
to prevent possible downstream corruption
([#&#8203;5301](https://github.com/nats-io/nats-server/issues/5301),
[#&#8203;5303](https://github.com/nats-io/nats-server/issues/5303))

##### Fixed

OS

- Fix for race checkptr panic on macOS/Darwin on Go 1.22
([#&#8203;5265](https://github.com/nats-io/nats-server/issues/5265))

Connections

- Address possible memory leak due to connections not be released
([#&#8203;5244](https://github.com/nats-io/nats-server/issues/5244))
Thanks to [@&#8203;davidzhao](https://github.com/davidzhao) for the
report!

JetStream

- Fix incorrect subject overlapping checks that could lead to multiple
consumers or streams bound to the same subjects
([#&#8203;5224](https://github.com/nats-io/nats-server/issues/5224))
- Improve situations that could result in orphan messages in streams
([#&#8203;5227](https://github.com/nats-io/nats-server/issues/5227))
- Protect against corrupt message block when doing indexing
([#&#8203;5238](https://github.com/nats-io/nats-server/issues/5238))
Thanks to [@&#8203;kylemcc](https://github.com/kylemcc) for the
report!
- Fix consumer config check of max deliver when backoff is set
([#&#8203;5242](https://github.com/nats-io/nats-server/issues/5242))
- Ignore Nats-Expected-\* headers from source stream
([#&#8203;5256](https://github.com/nats-io/nats-server/issues/5256))
Thanks to [@&#8203;ramonberrutti](https://github.com/ramonberrutti)
for the report and contribution!
- Add missing check that could result an extended purge or compact to
fail in memory-based streams
([#&#8203;5264](https://github.com/nats-io/nats-server/issues/5264))
- Fix issue that could result in skipping valid messages when loading
them from the filestore
([#&#8203;5266](https://github.com/nats-io/nats-server/issues/5266))
- Use cluster-scoped lock when processing a leader change
([#&#8203;5267](https://github.com/nats-io/nats-server/issues/5267))
- Fix missing unlocks in filestore and streams in certain error
conditions
([#&#8203;5276](https://github.com/nats-io/nats-server/issues/5276))
Thanks to [Trail Of Bits](https://trailofbits.com/) for the report!
- Ensure lock is held for the duration of a filestore truncate
([#&#8203;5279](https://github.com/nats-io/nats-server/issues/5279))
- Fix race condition when checking for the stream interest state
([#&#8203;5290](https://github.com/nats-io/nats-server/issues/5290))
- Ensure dangling NRG directories are cleaned up when the in-memory
stream/consumer are deleted
([#&#8203;5291](https://github.com/nats-io/nats-server/issues/5291))
- Perform a standard stream purge when ack floor is higher than the last
known state
([#&#8203;5293](https://github.com/nats-io/nats-server/issues/5293))
- Handle concurrent creation of workqueue consumers that could result in
overlapping interest
([#&#8203;5295](https://github.com/nats-io/nats-server/issues/5295))
Thanks to [@&#8203;LautaroJayat](https://github.com/LautaroJayat) for
the report!
- Fix possible case of multiple deliveries of the same message that
cause the delivery count decreasing
([#&#8203;5305](https://github.com/nats-io/nats-server/issues/5305))

Monitoring

- Fix JSZ account filtering behavior when requesting stream details
([#&#8203;5229](https://github.com/nats-io/nats-server/issues/5229))

OCSP

- Fix stapling during gateway reconnect and configuration reload
([#&#8203;5208](https://github.com/nats-io/nats-server/issues/5208))

##### Chores

- Fix incorrect function names in comments
([#&#8203;5237](https://github.com/nats-io/nats-server/issues/5237),
[#&#8203;5289](https://github.com/nats-io/nats-server/issues/5289))
Thanks to [@&#8203;depthlending](https://github.com/depthlending) and
[@&#8203;needsure](https://github.com/needsure) for the contributions!
- Improve workqueue stream sourcing tests
([#&#8203;5112](https://github.com/nats-io/nats-server/issues/5112))
- Speed-up tests and fixup lint reports
([#&#8203;5258](https://github.com/nats-io/nats-server/issues/5258))
- Improve hardened systemd configuration example
([#&#8203;5272](https://github.com/nats-io/nats-server/issues/5272))
- Refactor LoadNextMsgMulti store tests to guard against drift
([#&#8203;5275](https://github.com/nats-io/nats-server/issues/5275),
[#&#8203;5277](https://github.com/nats-io/nats-server/issues/5277))
- Rename orphan messages and replicas test cases
([#&#8203;5292](https://github.com/nats-io/nats-server/issues/5292))

##### 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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/infratographer/x).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Aug 8, 2024
1 parent ab127be commit 142083d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ require (
github.com/labstack/echo/v4 v4.12.0
github.com/labstack/gommon v0.4.2
github.com/lib/pq v1.10.9
github.com/nats-io/nats-server/v2 v2.10.12
github.com/nats-io/nats.go v1.34.1
github.com/nats-io/nats-server/v2 v2.10.18
github.com/nats-io/nats.go v1.36.0
github.com/pressly/goose/v3 v3.19.2
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
Expand Down Expand Up @@ -84,19 +84,19 @@ require (
github.com/google/go-cmp v0.6.0 // indirect
github.com/hashicorp/hcl/v2 v2.13.0 // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/klauspost/compress v1.17.7 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mfridman/interpolate v0.0.2 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/minio/highwayhash v1.0.3 // indirect
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect
github.com/moby/patternmatcher v0.6.0 // indirect
github.com/moby/sys/sequential v0.5.0 // indirect
github.com/moby/sys/user v0.1.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.5.5 // indirect
github.com/nats-io/jwt/v2 v2.5.8 // indirect
github.com/nats-io/nkeys v0.4.7 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
Expand Down
22 changes: 11 additions & 11 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg=
github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA=
github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM=
github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
Expand Down Expand Up @@ -246,8 +246,8 @@ github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwp
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
github.com/mfridman/interpolate v0.0.2 h1:pnuTK7MQIxxFz1Gr+rjSIx9u7qVjf5VOoM/u6BbAxPY=
github.com/mfridman/interpolate v0.0.2/go.mod h1:p+7uk6oE07mpE/Ik1b8EckO0O4ZXiGAfshKBWLUM9Xg=
github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=
github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
github.com/minio/highwayhash v1.0.3 h1:kbnuUMoHYyVl7szWjSxJnxw11k2U709jqFPPmIUyD6Q=
github.com/minio/highwayhash v1.0.3/go.mod h1:GGYsuwP/fPD6Y9hMiXuapVvlIUEhFhMTh0rxU3ik1LQ=
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM=
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
Expand All @@ -267,12 +267,12 @@ 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.5.5 h1:ROfXb50elFq5c9+1ztaUbdlrArNFl2+fQWP6B8HGEq4=
github.com/nats-io/jwt/v2 v2.5.5/go.mod h1:ZdWS1nZa6WMZfFwwgpEaqBV8EPGVgOTDHN/wTbz0Y5A=
github.com/nats-io/nats-server/v2 v2.10.12 h1:G6u+RDrHkw4bkwn7I911O5jqys7jJVRY6MwgndyUsnE=
github.com/nats-io/nats-server/v2 v2.10.12/go.mod h1:H1n6zXtYLFCgXcf/SF8QNTSIFuS8tyZQMN9NguUHdEs=
github.com/nats-io/nats.go v1.34.1 h1:syWey5xaNHZgicYBemv0nohUPPmaLteiBEUT6Q5+F/4=
github.com/nats-io/nats.go v1.34.1/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8=
github.com/nats-io/jwt/v2 v2.5.8 h1:uvdSzwWiEGWGXf+0Q+70qv6AQdvcvxrv9hPM0RiPamE=
github.com/nats-io/jwt/v2 v2.5.8/go.mod h1:ZdWS1nZa6WMZfFwwgpEaqBV8EPGVgOTDHN/wTbz0Y5A=
github.com/nats-io/nats-server/v2 v2.10.18 h1:tRdZmBuWKVAFYtayqlBB2BuCHNGAQPvoQIXOKwU3WSM=
github.com/nats-io/nats-server/v2 v2.10.18/go.mod h1:97Qyg7YydD8blKlR8yBsUlPlWyZKjA7Bp5cl3MUE9K8=
github.com/nats-io/nats.go v1.36.0 h1:suEUPuWzTSse/XhESwqLxXGuj8vGRuPRoG7MoRN/qyU=
github.com/nats-io/nats.go v1.36.0/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8=
github.com/nats-io/nkeys v0.4.7 h1:RwNJbbIdYCoClSDNY7QVKZlyb/wfT6ugvFCiKy6vDvI=
github.com/nats-io/nkeys v0.4.7/go.mod h1:kqXRgRDPlGy7nGaEDMuYzmiJCIAAWDK0IMBtDmGD0nc=
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
Expand Down Expand Up @@ -491,7 +491,6 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand All @@ -510,6 +509,7 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM=
golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
Expand Down

0 comments on commit 142083d

Please sign in to comment.