Derek Collison
d0a7a8169a
Merge branch 'main' into force-consumer-replicas
2023-01-26 08:35:49 -08:00
Derek Collison
461aad17a5
Merge pull request #3820 from nats-io/issue-3791
...
[FIXED] Select consumer peer(s) from active peers only.
2023-01-26 08:27:11 -08:00
Derek Collison
b238323b0c
Merge pull request #3818 from nats-io/issue-3636-2
...
[FIXED] Properly process updates on a stream on restart.
2023-01-26 08:26:07 -08:00
Derek Collison
e15eb22ca6
When we create a consumer with less replicas then the stream, make sure to select from online peers.
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-25 20:08:04 -08:00
Derek Collison
a5cbd0b029
Fixed a bug that would not properly process updates on a stream on restart.
...
During restart if the stream existed but was also in a meta-snapshot delivered by the leader we would not process the update properly.
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-25 18:16:33 -08:00
Derek Collison
4a3c27a251
Fix MQTT test for consumer replica override.
...
This was ill-advised by me, not understanding that the messages stream for MQTT was interested policy based.
Interest policy based streams require consumers to match the replica count.
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-25 17:58:57 -08:00
Derek Collison
bcd53ba53a
Merge pull request #3808 from nats-io/jarema/fix-not-assigning-sig-sub
...
Assign signal subscription to consumer when created
2023-01-24 07:12:53 -08:00
Tomasz Pietrek
c89883b6aa
Fix assigning signal subscription to consumer
...
Signed-off-by: Tomasz Pietrek <tomasz@nats.io >
2023-01-24 12:26:22 +01:00
Derek Collison
f62d929018
Consumer must match replica of parent stream if interest based policy.
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-23 20:16:42 -08:00
Derek Collison
3380fe1c74
Merge pull request #3806 from nats-io/direct-gets
...
[FIXED] Updating a stream to direct gets would fail direct gets.
2023-01-23 17:29:36 -08:00
Derek Collison
f4ee6530a0
When updating a stream to Direct Gets we were not spinning up subscription endpoint properly.
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-23 16:51:07 -08:00
Derek Collison
185a1f373c
Merge pull request #3805 from nats-io/move_test_to_no_race
...
Move test to "norace_test.go"
2023-01-23 16:31:21 -08:00
Ivan Kozlovic
79ca0c1787
Move test to "norace_test.go"
...
The test TestJetStreamClusterConsumerListPaging was in the
jetstream_cluster_3_test.go and because of `-race` flag would
take more than 440 seconds (7+ minutes) as seen here:
https://app.travis-ci.com/github/nats-io/nats-server/jobs/593984385#L335
Without the `-race` flag, this test takes ~17 seconds.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2023-01-23 17:05:18 -07:00
Derek Collison
4d43bbb3d1
Merge pull request #3801 from nats-io/filtered-deleted
...
[FIXED] Filtered state for all subjects when the first seqs are deleted.
2023-01-23 13:10:09 -08:00
Derek Collison
68b4570226
Fix for filtered state for all subjects when the first sequence(s) are deleted.
...
Discovered doing the optimizations for interior deletes.
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-21 16:01:44 -08:00
Derek Collison
f836b75efe
Merge pull request #3796 from nats-io/issue-3793
...
Update snapshots to numCores and maxProcs after maxrocs.Set()
2023-01-20 13:28:18 -08:00
Derek Collison
2aeb5e2c5a
Update snapshots to numCores and maxProcs after maxrocs.Set()
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-01-20 11:30:43 -08:00
Neil
f2b087c567
Merge pull request #3780 from nats-io/neil/lastsnaphash
...
Use highwayhash for last stream, consumer and cluster snapshots
2023-01-12 16:40:31 +00:00
Neil Twigg
1baa1fbda8
Use highwayhash for last stream, consumer and cluster snapshots
2023-01-12 16:16:14 +00: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
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
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
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
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
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
2808bbe95f
Merge pull request #3756 from nats-io/fix_3734
...
Fix for #3734
2023-01-02 12:52:39 -08: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
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
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
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
51678dd8bf
Merge pull request #3744 from nats-io/fix-3704-compat
...
Add back existing HealthzOptions.JSEnabled field
2022-12-26 08:14:32 -08:00
Byron Ruth
1477b675ff
Add back existing HealthzOptions.JSEnabled field
...
This fixes a backwards incompat change for library usage as well as
using the healthz NATS API which depends on the JSON payload.
Signed-off-by: Byron Ruth <byron@nats.io >
2022-12-26 08:45:22 -05:00
Waldemar Quevedo
d44362f696
Merge pull request #3726 from nats-io/bump-2.9.11
...
Bump version to 2.9.11-beta
2022-12-20 07:59:21 -08:00
Byron Ruth
f6b8d9f422
Bump version to 2.9.11-beta
...
Signed-off-by: Byron Ruth <b@devel.io >
2022-12-20 10:56:55 -05:00
Waldemar Quevedo
4caf6aa03d
Merge pull request #3725 from nats-io/release-2-9-10
...
Prepare for v2.9.10 release
2022-12-20 07:46:27 -08:00
Byron Ruth
b6a19e5199
Prepare for v2.9.10 release
...
Signed-off-by: Byron Ruth <b@devel.io >
2022-12-20 10:33:43 -05:00