Commit Graph

6897 Commits

Author SHA1 Message Date
Derek Collison
3c7a11c32e Merge branch 'main' into dev 2023-02-08 19:07:35 +02:00
Neil
9f5e1509b9 Merge pull request #3852 from nats-io/neil/fstests
File store subtests
2023-02-08 16:49:20 +00:00
Neil Twigg
9e8a5bfa3b File store subtests 2023-02-08 09:55:49 +00:00
Phil Pennock
2e3d342893 Merge pull request #3855 from nats-io/pdp/yaml-engineering-prep1.20
YAML engineering: quote go version string
2023-02-07 18:09:12 -05:00
Phil Pennock
2ac72d92bf YAML engineering: quote go version string
We're currently using Go 1.19; we'll switch to 1.20 when the NATS Maintainers
make the call to switch.  Prepare by making sure that 1.20 won't turn into 1.2
instead, by quoting the string to be updated and adding a warning.
2023-02-07 17:32:20 -05:00
Waldemar Quevedo
bdf7fc540c Merge pull request #3849 from nats-io/bump-2-9-15
Bump v2.9.15-beta
2023-02-06 14:20:37 -06:00
Byron Ruth
dd96f9b572 Bump v2.9.15-beta
Signed-off-by: Byron Ruth <byron@nats.io>
2023-02-06 14:43:42 -05:00
Waldemar Quevedo
74ae59a48c Merge pull request #3847 from nats-io/release-2-9-14
Release v2.9.14
2023-02-06 13:41:21 -06:00
Byron Ruth
8db9ca6d7b Release v2.9.14
Signed-off-by: Byron Ruth <byron@nats.io>
2023-02-06 14:17:25 -05:00
Derek Collison
a4bdc11cd7 Merge branch 'main' into dev 2023-02-06 22:19:49 +04:00
Derek Collison
525410127b Merge pull request #3846 from nats-io/consumer-snapshot-logic
Revert consumer snapshot logic
2023-02-06 11:19:29 -07:00
Derek Collison
6a2063f5b3 Revert logic
Signed-off-by: Derek Collison <derek@nats.io>
2023-02-06 22:14:37 +04:00
Derek Collison
3fe85e6cc4 Merge branch 'main' into dev 2023-02-06 21:57:49 +04:00
Derek Collison
c1a6f3ecad Merge pull request #3845 from nats-io/update-filter
[FIXED] Updating consumer filter subject possible panic and deadlock.
2023-02-06 10:55:59 -07:00
Derek Collison
b611e37e95 For updating a consumer filter subject make sure locking ordere correct and that our sublist is present.
Signed-off-by: Derek Collison <derek@nats.io>
2023-02-06 21:34:48 +04:00
Derek Collison
0ffce191cd Bump to 2.9.14-beta
Signed-off-by: Derek Collison <derek@nats.io>
2023-02-04 22:26:19 -08:00
Derek Collison
f7615acb7d Merge branch 'main' into dev 2023-02-04 22:23:50 -08:00
Derek Collison
f4a80838d2 Merge pull request #3844 from nats-io/snapshots-fix
[FIXED] Snapshots Issue
2023-02-04 23:20:08 -07:00
Derek Collison
b22ed47a26 Use fast state in case many interior deletes and small fix for staticcheck
Signed-off-by: Derek Collison <derek@nats.io>
2023-02-04 13:55:41 -08:00
Derek Collison
9c02be2409 Various fixes for snapshots.
Due to bug, in rare circumstances could write an empty snapshot for aplied == 0. This would cause a spinning at the raft layer.

1. Allow Truncate() to also properly do a reset of the store when terms were only mismatch.
2. During testing fixed memstore truncate and also made sure per subject info was also cleaned up.
3. Then added fix to detect a bad snapshot on initialization and remove.
4. Do not allow snapshots for applied == 0.

Signed-off-by: Derek Collison <derek@nats.io>
2023-02-04 13:46:06 -08:00
Waldemar Quevedo
6d94b4181f Merge pull request #3840 from nats-io/bump-2.9.13-beta
Bump 2.9.13-beta
2023-02-02 13:06:19 -06:00
Byron Ruth
a56dcc60c2 Bump 2.9.13-beta
Signed-off-by: Byron Ruth <byron@nats.io>
2023-02-02 14:01:49 -05:00
Waldemar Quevedo
194d9cee38 Merge pull request #3839 from nats-io/release-2-9-12
Release v2.9.12
2023-02-02 12:55:38 -06:00
Byron Ruth
035edeaecb Release v2.9.12
Signed-off-by: Byron Ruth <byron@nats.io>
2023-02-02 13:26:59 -05:00
Derek Collison
2c4ec09cc7 Merge branch 'main' into dev 2023-02-02 11:01:50 -07:00
Derek Collison
5d9a3a10bd Merge pull request #3838 from nats-io/jarema/fix-consumers-after-purge
Fix current consumers not getting messages after purge
2023-02-02 07:48:00 -08:00
Tomasz Pietrek
46af979871 Fix current consumers not getting messages after purge
Until now, purge updated all consumers sequences
even if purge subject was only a subset of given consumer filter.
Because of that, even messages from not purged subjects were not fetched
or properly accounted for existing consumers.

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
2023-02-02 16:27:32 +01:00
Derek Collison
4744ff3478 Bump to 2.9.12-RC.3
Signed-off-by: Derek Collison <derek@nats.io>
2023-02-01 22:46:25 -07:00
Derek Collison
13e7908c5d Bump to 2.10.0-beta.15
Signed-off-by: Derek Collison <derek@nats.io>
2023-02-01 22:45:38 -07:00
Derek Collison
fad24fb604 Merge branch 'main' into dev 2023-02-01 22:44:38 -07:00
Derek Collison
73d389e41c Merge pull request #3837 from nats-io/snapshot-fix
[FIXED] Do not let !NeedSnapshot() avoid snapshots and compaction.
2023-02-01 21:44:10 -08:00
Derek Collison
e9a983c802 Do not let !NeedSnapshot() avoid snapshots and compaction.
Signed-off-by: Derek Collison <derek@nats.io>
2023-02-01 22:05:25 -07:00
Derek Collison
76e93fc955 Merge branch 'main' into dev 2023-01-31 15:26:02 -07:00
Waldemar Quevedo
d40c4c6fb3 Merge pull request #3835 from nats-io/go-1.19.5
Bump to Go 1.19.5
2023-01-31 15:30:24 -06:00
Byron Ruth
163743ab3f Bump to Go 1.19.5
Signed-off-by: Byron Ruth <byron@nats.io>
2023-01-31 15:43:16 -05:00
Derek Collison
42cdc4e39d Merge branch 'main' into dev 2023-01-31 10:10:29 -08:00
Derek Collison
cb743aef87 Merge pull request #3834 from nats-io/pkg-updates
[UPDATED] Package updates
2023-01-31 10:05:00 -08:00
Derek Collison
390fd02918 Updates to tests for updated Go client changes
Signed-off-by: Derek Collison <derek@nats.io>
2023-01-31 09:47:36 -08:00
Derek Collison
12a49859e9 Update pkg dependencies
Signed-off-by: Derek Collison <derek@nats.io>
2023-01-31 09:33:01 -08:00
Derek Collison
7607b17844 Fix for test
Signed-off-by: Derek Collison <derek@nats.io>
2023-01-30 20:14:39 -08:00
Derek Collison
2d6b316efd Merge branch 'main' into dev 2023-01-30 20:07:26 -08:00
Derek Collison
1252653c16 Merge pull request #3829 from nats-io/jarema/fix-message-after-update
Fix Consumer not getting messages after filter update
2023-01-30 19:59:32 -08:00
Derek Collison
d9aa69c332 Bump to 2.9.12-RC.2
Signed-off-by: Derek Collison <derek@nats.io>
2023-01-30 19:56:53 -08:00
Derek Collison
aaacca8549 Merge branch 'main' into dev 2023-01-30 19:54:37 -08:00
Derek Collison
e0798d26eb Merge pull request #3831 from nats-io/snapshots
Minor fixes and optimizations for snapshots.
2023-01-30 19:53:22 -08:00
Derek Collison
740ec2f85e Merge pull request #3832 from nats-io/deadlock-fix
[FIXED] Deadlock on dataloss when holding mb lock.
2023-01-30 19:49:51 -08:00
Derek Collison
598e27243f Fix possible deadlock on dataloss
Signed-off-by: Derek Collison <derek@nats.io>
2023-01-30 19:10:19 -08:00
Derek Collison
6058056e3b Minor fixes and optimizations for snapshots.
We were snappshotting more then needed, so double check that we should be doing this at the stream and consumer level.
At the raft level, we should have always been compacting the WAL to last+1, so made that consistent. Also fixed bug that would not skip last if more items behind the snapshot.

Signed-off-by: Derek Collison <derek@nats.io>
2023-01-30 17:54:18 -08:00
Derek Collison
e7d7313640 Merge pull request #3830 from nats-io/shutdown-fix
Fix for isGroupLeaderless when JS not available (due to shutdown)
2023-01-30 17:18:33 -08:00
Waldemar Quevedo
13372508e2 Fix for isGroupLeaderless when JS not available (due to shutdown)
Signed-off-by: Waldemar Quevedo <wally@nats.io>
2023-01-30 15:29:42 -08:00