Neil Twigg
1baa1fbda8
Use highwayhash for last stream, consumer and cluster snapshots
2023-01-12 16:16:14 +00:00
Derek Collison
235ce2caed
Merge branch 'main' into dev
2023-01-11 18:34:01 -08:00
Derek Collison
79de3302be
Merge pull request #3777 from peaaceChoi/main
...
Fix some typos in code comment
2023-01-11 18:33:38 -08:00
peaaceChoi
038037381b
Fix some typos in code comment
2023-01-12 10:31:32 +09:00
Derek Collison
b47a012a9d
Merge pull request #3774 from nats-io/neil/profilez
...
Add `profilez` server endpoint
2023-01-11 08:46:36 -08:00
Neil Twigg
68953678bb
Add profilez server endpoint for retrieving pprof profiles
2023-01-11 16:09:09 +00:00
Derek Collison
6a4507ff5b
Merge pull request #3776 from nats-io/jarema/fix-single-token-consumer-filter-check
...
Fix not validating single token filtered consumer
2023-01-11 07:04:12 -08:00
Tomasz Pietrek
86da656fff
Fix not validating single token filtered consumer
...
Signed-off-by: Tomasz Pietrek <tomasz@nats.io >
2023-01-11 15:48:38 +01:00
Derek Collison
c84211aa30
Bump to 2.10.0-beta.10
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-09 11:10:55 -08:00
Derek Collison
2c937ed044
Merge pull request #3733 from nats-io/neil/clientoutbound
...
Refactor client outbound queues
2023-01-09 11:09:52 -08:00
Neil Twigg
e4b6ba2f23
Refactor outbound queues, remove dynamic sizing, add buffer reuse
...
Also try to reduce flakiness of `TestClusterQueueSubs` and `TestCrossAccountServiceResponseTypes`
2023-01-09 09:35:22 +00:00
Waldemar Quevedo
3d5960f069
Merge branch 'main' into dev
...
Signed-off-by: Waldemar Quevedo <wally@nats.io >
2023-01-06 09:47:30 -08:00
Waldemar Quevedo
7d0aa4be5d
Merge pull request #3770 from nats-io/bump-2.9.12-beta
...
Bump to 2.9.12-beta
2023-01-06 09:45:14 -08:00
Byron Ruth
f3c0890a97
Bump to 2.9.12-beta
...
Signed-off-by: Byron Ruth <byron@nats.io >
2023-01-06 12:40:19 -05:00
Waldemar Quevedo
23ffc16f95
Merge pull request #3769 from nats-io/release_2_9_11
...
Release v2.9.11
2023-01-06 09:36:04 -08:00
Byron Ruth
3491f43199
Release v2.9.11
...
Signed-off-by: Byron Ruth <byron@nats.io >
2023-01-06 12:24:36 -05:00
Derek Collison
cf93b05359
Merge branch 'main' into dev
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-06 06:45:22 -08:00
Derek Collison
3b1fe93099
Merge pull request #3768 from nats-io/neil/sublistptrs
...
Deduplicate `*subscription` in `Sublist`
2023-01-06 06:44:08 -08:00
Neil Twigg
d853b0eb89
Deduplicate *subscription in Sublist
2023-01-06 13:19:20 +00:00
Derek Collison
f5d939ec24
Added test for #3636
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-05 10:56:52 -08:00
Derek Collison
9a69172236
Bump to 2.9.11-RC.1
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-05 10:33:47 -08:00
Derek Collison
e21f77ece0
Merge branch 'main' into dev
2023-01-05 10:32:38 -08:00
Derek Collison
b6fd1ab055
Merge pull request #3763 from nats-io/leaf-migrate-update
...
Set and clear observer state for servers with disconnected leafnodes.
2023-01-05 10:32:21 -08:00
Derek Collison
ad53d455f8
When migrating leaders off a server when the leafnode is not connected, also ensure leaders can not return until reconnected.
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-05 08:02:50 -08:00
Derek Collison
b8e805d976
Merge branch 'main' into dev
2023-01-05 07:05:58 -08:00
Derek Collison
1f8e3c36df
Merge pull request #3761 from friedrichwilken/upgrade-dependency-golang.org/x/cryto
...
Upgrade the dependency golang.org/x/crypto to `v0.5.0`.
2023-01-05 07:03:13 -08:00
Friedrich Wilken
735ce64a7f
Upgrade the dependency golang.org/x/crypto to v0.5.0.
2023-01-05 14:53:18 +01:00
Derek Collison
55352f2a7e
Merge branch 'main' into dev
2023-01-04 22:59:09 -08:00
Derek Collison
b9d10add08
Merge pull request #3760 from nats-io/ghost-consumers
...
Ensure we add in new consumers from a meta snapshot from the leader.
2023-01-04 22:58:37 -08:00
Derek Collison
6c5f0a669d
Ensure we add in new consumers from a meta snapshot from the leader.
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-04 22:18:31 -08:00
Derek Collison
2520468399
Bump to v2.10.0-beta.8
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-03 15:40:04 -08:00
Derek Collison
3c889478bd
Merge pull request #3719 from nats-io/auth_callout
...
Authorization Callouts
2023-01-03 15:34:10 -08:00
Derek Collison
00c98a01db
Merge pull request #3743 from Alberic-Hardis/winserviceDelay
...
Set startup time with env NATS_STARTUP_DELAY
2023-01-03 12:43:26 -08:00
Derek Collison
a63929c528
Add in account scoped auth error event. If external auth, supply reason from the callout service.
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-02 17:18:45 -08:00
Derek Collison
6ac99f489c
Merge branch 'main' into dev
2023-01-02 12:53:01 -08:00
Derek Collison
2808bbe95f
Merge pull request #3756 from nats-io/fix_3734
...
Fix for #3734
2023-01-02 12:52:39 -08:00
Alberic Corniere
d21c9fb9b1
Test on windows for the OS service API compliance
2023-01-02 10:43:05 +01:00
Derek Collison
d9cb1e6286
Fix for #3734
...
When a msg blk was not writen correctly, but the idx file was, max bytes for a stream would no longer be honored since the deletion of any messages in that empty block were not being handled properly.
Signed-off-by: Derek Collison <derek@nats.io >
2022-12-31 18:50:46 -08:00
Derek Collison
ff79afef39
Merge branch 'main' into dev
2022-12-30 12:23:23 -08:00
Neil
1d53b47b33
Merge pull request #3754 from nats-io/neil/golangcilint
...
Switch to `golangci-lint`
2022-12-30 20:12:03 +00:00
Neil Twigg
14d0ba1c65
Fix some lint errors after move to golangci-lint
2022-12-30 20:00:08 +00:00
Neil Twigg
7042fc1638
Switch to golangci-lint
2022-12-30 19:46:50 +00:00
Derek Collison
307ea2df3d
Merge branch 'main' into dev
2022-12-30 10:25:22 -08:00
Derek Collison
a9a9b92f6d
Merge pull request #3752 from nats-io/zero_meta
...
Healthz works on single server systems and allow recovery if stream meta not flushed.
2022-12-30 10:24:51 -08:00
Derek Collison
713f632fa7
If a stream's meta was not properly written but the file existed, we could re-add the stream but a subsequent restart would lose the stream again.
...
Also added in healthz for single server systems to make sure all stream directories resulted in recovered streams.
Signed-off-by: Derek Collison <derek@nats.io >
2022-12-29 20:08:56 -08:00
Derek Collison
43c26a49f8
Merge branch 'main' into dev
2022-12-29 15:40:00 -08:00
Derek Collison
71b90673ee
Merge pull request #3751 from nats-io/leaf-wc-fix
...
Fix dup msgs when leafnode binds to account with service imports
2022-12-29 15:39:25 -08:00
Waldemar Quevedo
861f98128a
Remove individual import subs from leafnodes
...
When a leafnode connection is bound to an account where there was already
a wildcard response import subscription to handle the requests (e.g. `_R_.foo.>`),
this would have created message duplicates due to an extra subscription
being created that also matched the wildcard (e.g. `_R_.foo.bar`).
To avoid this condition, we now skip creating the latter extra subscription
for leafnode connections.
Signed-off-by: Waldemar Quevedo <wally@nats.io >
2022-12-29 15:30:17 -08:00
Derek Collison
2daf90493b
Authentication and Authorization callouts for server configuration mode.
...
This adds the ability to augment or override the NATS auth system.
A server will send a signed request to $SYS.REQ.USER.AUTH on the specified account. The request will contain client information, all client options sent to the server, and optionally TLS information and client certificates.
The external auth service will respond with an empty message if not authorized, or a signed User JWT that the user will bind to.
The response can change the account the client will be bound to.
Signed-off-by: Derek Collison <derek@nats.io >
2022-12-28 10:32:45 -08:00
Derek Collison
ec6f303aff
Merge pull request #3748 from nats-io/jarema/fix-tiered-stream-create
...
Default to replicas == 1 in tiered jetStream setup
2022-12-28 10:00:31 -08:00