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 misc modules - autoclosed #381

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 31, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
alpine final patch 3.18.3 -> 3.18.4
github.com/nats-io/nats-server/v2 replace minor v2.9.21 -> v2.10.3
github.com/prometheus/client_golang require minor v1.16.0 -> v1.17.0
github.com/spf13/viper require minor v1.16.0 -> v1.17.0
github.com/valyala/fasthttp replace minor v1.48.0 -> v1.50.0
golang.org/x/text replace minor v0.12.0 -> v0.13.0
python minor 3.11.4 -> 3.12.0

Release Notes

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

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.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
prometheus/client_golang (github.com/prometheus/client_golang)

v1.17.0

Compare Source

What's Changed

  • [CHANGE] Minimum required go version is now 1.19 (we also test client_golang against new 1.21 version). #​1325
  • [FEATURE] Add support for Created Timestamps in Counters, Summaries and Historams. #​1313
  • [ENHANCEMENT] Enable detection of a native histogram without observations. #​1314
Commits

New Contributors

Full Changelog: prometheus/client_golang@v1.16.0...v1.17.0

spf13/viper (github.com/spf13/viper)

v1.17.0

Compare Source

Major changes

Highlighting some of the changes for better visibility.

Please share your feedback in the Discussion forum. Thanks! ❤️

Minimum Go version: 1.19

Viper now requires Go 1.19

This change ensures we can stay up to date with modern practices and dependencies.

log/slog support [BREAKING]

Viper v1.11.0 added an experimental Logger interface to allow custom implementations (besides jwalterweatherman).

In addition, it also exposed an experimental WithLogger function allowing to set a custom logger.

This release deprecates that interface in favor of log/slog released in Go 1.21.

[!WARNING]
WithLogger accepts an *slog.Logger from now on.

To preserve backwards compatibility with older Go versions, prior to Go 1.21 Viper accepts a *golang.org/x/exp/slog.Logger.

The experimental flag is removed.

New finder implementation [BREAKING]

As of this release, Viper uses a new library to look for files, called locafero.

The new library is better covered by tests and has been built from scratch as a general purpose file finder library.

The implementation is experimental and is hidden behind a finder build tag.

[!WARNING]
The io/fs based implementation (that used to be hidden behind a finder build tag) has been removed.

What's Changed

Exciting New Features 🎉
Enhancements 🚀
Breaking Changes 🛠
Dependency Updates ⬆️
Other Changes

New Contributors

Full Changelog: spf13/viper@v1.16.0...v1.17.0

valyala/fasthttp (github.com/valyala/fasthttp)

v1.50.0

Compare Source

  • 8cc5539 Fix various request timeout issues (Erik Dubbelboer)
  • 34e7da1 Allow connection close for custom streams (#​1603) (Armin Becher)
  • 8236f8d fasthttpproxy: fix doc examples (Oleksandr Redko)
  • 4ec5c5a docs: fix typos in comments and tests (Oleksandr Redko)
  • 9aa666e Enable gocritic linter; fix lint issues (#​1612) (Oleksandr Redko)

v1.49.0

Compare Source

  • 0e99e64 Update golangci-lint and gosec (#​1609) (Erik Dubbelboer)
  • 6aea1e0 fix round2_32, split round2 tests because they depend on sizeof int at compile time (#​1607) (Duncan Overbruck)
  • 4b0e6c7 Update ErrNoMultipartForm (Erik Dubbelboer)
  • 727021a Update security policy (Erik Dubbelboer)
  • 54fdc7a Abstracts the RoundTripper interface and provides a default implement (#​1602) (Tim)
  • e181af1 fasthttpproxy support ipv6 (#​1597) (Pluto)
  • 6eb2249 fix:fasthttp server with tlsConfig (#​1595) (Zhang Xiaopei)
  • 1c85d43 Fix round2 (Erik Dubbelboer)
  • 064124e Avoid nolint:errcheck in header tests (#​1589) (Oleksandr Redko)
  • 0d0bbfe Auto add 'Vary' header after compression (#​1585) (AutumnSun)
  • d229959 Remove unnecessary indent blocks (#​1586) (Oleksandr Redko)
  • 6b68042 Use timeout in TCPDialer to resolveTCPAddrs (#​1582) (un000)

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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • 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 August 31, 2023 07:30
@renovate renovate bot added dependencies Pull requests that update a dependency file renovate PR created by RenovateBot labels Aug 31, 2023
@renovate renovate bot force-pushed the renovate/misc-modules branch 2 times, most recently from 8ca2fc7 to b1292a1 Compare September 6, 2023 22:17
@renovate renovate bot force-pushed the renovate/misc-modules branch 5 times, most recently from 4977149 to af6bea7 Compare September 14, 2023 15:58
@renovate renovate bot force-pushed the renovate/misc-modules branch 8 times, most recently from ddac60a to 3f57e87 Compare September 26, 2023 15:14
@renovate renovate bot force-pushed the renovate/misc-modules branch 3 times, most recently from a1c1bf2 to 75bf4a4 Compare October 3, 2023 04:04
@renovate renovate bot force-pushed the renovate/misc-modules branch 2 times, most recently from 3c171af to 8190c7a Compare October 6, 2023 21:14
@renovate renovate bot force-pushed the renovate/misc-modules branch from 8190c7a to c05568f Compare October 12, 2023 22:48
@renovate renovate bot changed the title Update misc modules Update misc modules - autoclosed Oct 26, 2023
@renovate renovate bot closed this Oct 26, 2023
@renovate renovate bot deleted the renovate/misc-modules branch October 26, 2023 12:27
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.

0 participants