Commit Graph

6322 Commits

Author SHA1 Message Date
Ivan Kozlovic
a41af2bdcb Merge pull request #3463 from nats-io/jnm/fix_mapping_split
[FIXED] Edge condition handling in {{Split()}} subject mapping function
2022-09-09 14:39:19 -06:00
Ivan Kozlovic
6e729f13bf Merge pull request #3464 from nats-io/split_tests
Split more tests to speed up Travis run
2022-09-09 14:22:09 -06:00
jnmoyne
a1f90b8776 Fixes mishandling of an edge condition in the {{Split()}} subject mapping function 2022-09-09 12:42:03 -07:00
Ivan Kozlovic
29224c8ea9 Split more tests to speed up Travis run
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-09 12:45:48 -06:00
Ivan Kozlovic
925f57ccc2 Bump version to 2.9.1-beta
As per the release process, bumping the version to next update
with beta suffix once the release is out.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-09 10:17:26 -06:00
Ivan Kozlovic
517d9b382d Merge pull request #3460 from nats-io/release_2_9_0
Release v2.9.0
2022-09-09 08:45:32 -06:00
Ivan Kozlovic
b979556556 Release v2.9.0
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-09 08:23:48 -06:00
Matthias Hanel
f7cb5b1f0d changed format of JSClusterNoPeers error (#3459)
* changed format of JSClusterNoPeers error

This error was introduced in #3342 and reveals to much information
This change gets rid of cluster names and peer counts.

All other counts where changed to booleans,
which are only included in the output when the filter was hit.

In addition, the set of not matching tags is included.
Furthermore, the static error description in server/errors.json 
is moved into selectPeerError

sample errors:
1) no suitable peers for placement, tags not matched ['cloud:GCP', 'country:US']"
2) no suitable peers for placement, insufficient storage

Signed-off-by: Matthias Hanel <mh@synadia.com>
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Co-authored-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-08 18:25:48 -07:00
Ivan Kozlovic
50d62cede3 Merge pull request #3458 from nats-io/add_s390x_arch
[ADDED] Architecture s390x in goreleaser.yml file
2022-09-08 16:57:24 -06:00
Ivan Kozlovic
d4f2b179dd [ADDED] Architecture s390x in goreleaser.yml file
[ci skip]

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-08 16:49:59 -06:00
Derek Collison
fdf52554c7 Bump to 2.9.0-RC.19
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-08 12:08:48 -07:00
Derek Collison
d979937bbd Merge pull request #3456 from nats-io/max-bytes-pull
[IMPROVED] Pull request logic
2022-09-08 12:08:10 -07:00
Derek Collison
dedf21d45d Fix for issue #3455
When hitting max ack pending from getNextMsg would remove one shots incorrectly.

Signed-off-by: Derek Collison <derek@nats.io>
2022-09-08 11:56:57 -07:00
Derek Collison
b32814d5fd Better accounting for max-bytes for pull consumers
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-08 11:56:57 -07:00
Ivan Kozlovic
ae0d808f5b Merge pull request #3457 from nats-io/cleanup_tests
Fixed some tests
2022-09-08 12:24:07 -06:00
Ivan Kozlovic
6fba6c8188 Merge pull request #3454 from nats-io/js_stream_info_pagination
Adds pagination to stream info
2022-09-08 12:23:41 -06:00
jnmoyne
95c1946231 Implements pagination for JS Stream Info requests 2022-09-08 10:45:20 -07:00
Ivan Kozlovic
b69ffe244e Fixed some tests
Code change:
- Do not start the processMirrorMsgs and processSourceMsgs go routine
if the server has been detected to be shutdown. This would otherwise
leave some go routine running at the end of some tests.
- Pass the fch and qch to the consumerFileStore's flushLoop otherwise
in some tests this routine could be left running.

Tests changes:
- Added missing defer NATS connection close
- Added missing defer server shutdown

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-08 11:28:23 -06:00
Ivan Kozlovic
c008410c43 Merge pull request #3452 from mschneider82/expire-display
server: expire display Never instead of 1970
2022-09-08 08:33:20 -06:00
Matthias Schneider
a58a7bf1ec server: expire display Never instead of 1970 2022-09-08 10:03:04 +02:00
Derek Collison
a7744026e1 Bump to 2.9.0-RC.18
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-07 19:35:56 -07:00
Ivan Kozlovic
c19d3907d3 Merge pull request #3451 from nats-io/js_fix_migrate_ephemerals
JetStream: R1 durables were incorrectly migrated on shutdown
2022-09-07 19:50:16 -06:00
Ivan Kozlovic
8c1c6951dc JetStream: R1 durables were incorrectly migrated on shutdown
This could happen for stream with R>1 but with a durable that
has an override of R=1.

Fixed a test to make sure assets have an elected leader.

Also fixed a gateway test that would cause a data race.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-07 19:49:16 -06:00
Derek Collison
6c3902e2c9 Merge pull request #3448 from nats-io/leaderless-tweak-2
Use lostQuorum default versus live for reporting.
2022-09-07 16:18:03 -07:00
Derek Collison
53453932a8 Need to wait on cluster ready
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-07 16:07:09 -07:00
Derek Collison
c3203a3bb5 Use lostQuorum default versus live for reporting.
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-07 13:56:38 -07:00
Derek Collison
8355417f91 Merge pull request #3447 from nats-io/pdp/more-certs-reissuance
TLS testdata automation & reissuance
2022-09-07 13:49:37 -07:00
Phil Pennock
4ffc0336a2 TLS testdata: invoked regenerate_rdns_svid.sh 2022-09-07 16:33:37 -04:00
Phil Pennock
0ae8af7986 TLS testdata: automate more cert issuance 2022-09-07 16:33:28 -04:00
Derek Collison
dcd3162169 Merge pull request #3446 from nats-io/leaderless-tweak
Tweak lost quorum reporting
2022-09-07 11:01:37 -07:00
Derek Collison
b86e941ce4 tweak lost quorum reporting
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-07 10:57:01 -07:00
Derek Collison
e3e092d5f3 Merge pull request #3445 from nats-io/js-group-leaderless
Suppress leaderless claims if JetStream just started.
2022-09-07 09:02:28 -07:00
Derek Collison
fbf2233e4a Only complain about leaderless group with previous leader if we know jetstream has been running for some threshold.
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-07 08:47:55 -07:00
Derek Collison
a4b6b2041f Bump to 2.9.0-RC.17
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-06 17:02:13 -07:00
Ivan Kozlovic
fbc7c25520 Merge pull request #3435 from nats-io/mon-js-reserved-stats
js: add per account reserved mem/store bytes
2022-09-06 18:01:22 -06:00
Waldemar Quevedo
46d73eddae js: add per account reserved mem/store bytes
Signed-off-by: Waldemar Quevedo <wally@nats.io>
2022-09-06 16:43:10 -07:00
Derek Collison
cf517e45b0 Merge pull request #3442 from nats-io/pull-noack-ok
NoAck allowed now on pull consumers
2022-09-06 15:20:00 -07:00
Derek Collison
84b95be56e NoAck allowed now on pull consumers
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-06 15:19:17 -07:00
Derek Collison
e4a6b6bc94 Merge pull request #3441 from nats-io/no-auto-direct-get
Do not auto-promote direct get functionality.
2022-09-06 13:35:46 -07:00
Derek Collison
9c3bd17059 Updates to tests
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-06 13:33:39 -07:00
Derek Collison
b850a95d4c Remove auto-promotion of direct get. Force stream config to set AllowDirect to true.
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-06 13:33:39 -07:00
Derek Collison
f190b6b6f4 Upgrade packages
Signed-off-by: Derek Collison <derek@nats.io>
2022-09-06 13:33:39 -07:00
Ivan Kozlovic
8a71c642c6 Merge pull request #3439 from mprimi/nats-pub-benchmark
NATS Publish benchmark
2022-09-06 11:24:06 -06:00
Marco Primi
e498781921 NATS Publish benchmark 2022-09-06 09:52:45 -07:00
Ivan Kozlovic
35d7e9f280 Merge pull request #3440 from nats-io/fix_1066
[FIXED] JetStream: Restarted queue subscriptions may not receive msgs
2022-09-06 09:16:45 -06:00
Ivan Kozlovic
16eb2af0ec [FIXED] JetStream: Restarted queue subscriptions may not receive msgs
The server was not properly handling queue subscriptions internal
notifications which could lead to messages not being delivered
to applications using a queue group to consume from a JetStream
consumer after they were restarted.

Resolves #1066

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-05 16:38:43 -06:00
Ivan Kozlovic
434bc34713 Merge pull request #3436 from nats-io/fix_lexer_convenient_number
Fixed lexer changes made in #3434
2022-09-03 20:37:38 -06:00
Ivan Kozlovic
6ebbb4a41a Fixed lexer changes made in #3434
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-03 20:02:25 -06:00
Ivan Kozlovic
1a9b3c49c0 Merge pull request #3434 from nats-io/fix_3431
[FIXED] Parsing of strings starting with numbers and K/G/etc.. suffix
2022-09-02 20:51:00 -06:00
Ivan Kozlovic
86d20aa5e6 [FIXED] Parsing of strings starting with numbers and K/G/etc.. suffix
If a configuration variable starts with numbers and has a character
that such as K/k/G/g/etc.. it would assume that it was a number
(expressed in Kb, Gb, etc..).

This PR checks that if the special characters are not the suffix,
that is, the variable does not end after those characters, then
the parsing will treat the whole thing as a string.

Resolves #3431

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-02 18:15:04 -06:00