Commit Graph

6445 Commits

Author SHA1 Message Date
Derek Collison
1a193fe8a6 Updated Go client
Signed-off-by: Derek Collison <derek@nats.io>
2022-10-27 08:55:43 -07:00
Derek Collison
8cc87c988f Bump to 2.9.4-RC.1
Signed-off-by: Derek Collison <derek@nats.io>
2022-10-26 17:52:28 -07:00
Derek Collison
dd707c5e82 Merge pull request #3579 from nats-io/fs-maxmsgsper-restart
[FIXED] MaxMsgPerSubject recovered on corrupt or missing index file.
2022-10-26 18:12:32 -05:00
Derek Collison
6128b83507 On abnormal server exit, for streams or KV with max msgs per subject set we could recover more than N msgs per subject.
This fix allows for recover of correct state on restart when index files are missing or not current.

Signed-off-by: Derek Collison <derek@nats.io>
2022-10-26 16:00:57 -07:00
Tomasz Pietrek
f0219e1d95 Merge pull request #3572 from nats-io/jarema/add-pending-info-to-request-timeout
Added pending messages/bytes info to request statuses and errors
2022-10-26 21:20:20 +02:00
Tomasz Pietrek
ef764598ee Add pending messages/bytes info to request errors and statuses
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
2022-10-26 20:02:11 +02:00
Derek Collison
77d3f37a8c Merge pull request #3578 from nats-io/high-lag
Added warning for high message lag into a clustered stream.
2022-10-25 19:08:35 -05:00
Derek Collison
2241ad089e Make local error since non-fatal for now.
Signed-off-by: Derek Collison <derek@nats.io>
2022-10-25 16:56:10 -07:00
Derek Collison
aa52c2fecf Added warning for high message lag into a clustered stream.
Signed-off-by: Derek Collison <derek@nats.io>
2022-10-25 16:11:35 -07:00
Derek Collison
db13766f18 Merge pull request #3576 from nats-io/signal-pull-consumers
Removed ephemeral consumer migration.
2022-10-25 17:35:35 -05:00
Derek Collison
09a5ce507e Merge pull request #3577 from nats-io/stop-raft
Make sure to stop raft nodes on all monitor exits.
2022-10-25 17:35:22 -05:00
Derek Collison
f0afa49b9f Make sure to stop raft nodes on all monitor exits.
Signed-off-by: Derek Collison <derek@nats.io>
2022-10-25 14:48:28 -07:00
Derek Collison
ff2cd1d7f9 Fixed test and bug that would override consumer replicas.
Signed-off-by: Derek Collison <derek@nats.io>
2022-10-25 14:35:20 -07:00
Derek Collison
15dc72db50 Removed migration of ephemerals, added proper signaling for pul consumers pending requests.
Signed-off-by: Derek Collison <derek@nats.io>
2022-10-25 14:35:20 -07:00
Ivan Kozlovic
e6239f01c2 Merge pull request #3575 from nats-io/js_update_inactive_threshold
[FIXED] JetStream: InactiveThreshold updates not always working
2022-10-25 12:11:28 -06:00
Ivan Kozlovic
39f31b0dbe [FIXED] JetStream: InactivityThreshold updates not always working
This is based of @neilalexander PR #3558.

It ensures that the timer is reset/canceled on configuration
update (by the leader only).

Fixed also the issue with a super-cluster where the delete timer
would always be reset at every gateway interval check.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-25 09:54:01 -06:00
Ivan Kozlovic
1d95fba2b4 Merge pull request #3574 from nats-io/js_cons_create_update_gets_response
[FIXED] JetStream: Update of an R1 consumer would not get a response
2022-10-25 09:45:06 -06:00
Ivan Kozlovic
7ca85e0e80 [FIXED] JetStream: Update of an R1 consumer would not get a response
The update was accepted but the server would not respond to the
client/CLI.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-25 09:04:35 -06:00
Ivan Kozlovic
a4dfc5b4bc Merge pull request #3573 from nats-io/route_impl_reconnect
[FIXED] Solicited route may not retry to reconnect
2022-10-24 12:18:33 -06:00
Ivan Kozlovic
6113c52ae1 [FIXED] Solicited route may not retry to reconnect
Originally, only solicited routes were retried in case of a disconnect,
but that was before gossip protocol was introduced. Since then, two
servers that connect to each other due to gossip should retry to
reconnect if the connection breaks, even if the route is not explicit.
However, server will retry only once or more accurately, ConnectRetries+1.

This PR solves the issue that the reconnect attempt was not initiated
for a "solicited route" that was not explicit.

Maybe related to #3571

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-24 10:39:23 -06:00
Derek Collison
d8ac76450c Merge pull request #3568 from nats-io/fs-acc-err
Make sure to rebuild per subject info on write error
2022-10-18 11:46:49 -07:00
Derek Collison
d97abf0b61 On a write error we rebuild, so update accounting after flush write attempt.
If we had to flush while loading in subject info we would fail there and not properly rebuild state as we did on a failure for flushPending.

Signed-off-by: Derek Collison <derek@nats.io>
2022-10-18 11:39:42 -07:00
Ivan Kozlovic
7041b19d80 Merge pull request #3567 from nats-io/fix_3516
[FIXED] JetStream: "first sequence mismatch" error on catchup with message expiration
2022-10-17 17:18:21 -06:00
Ivan Kozlovic
f8aa3ac11d [FIXED] JetStream: "first sequence mismatch" error on catchup with message expiration
When a server was restarted and expired messages, but the leader had a snapshot that
still had the old messages we would reset complete follower stream state, this fix
just skips over the expired as we prepare the request to the leader.

Resolves #3516

Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-17 17:02:08 -06:00
Derek Collison
37e876c7de Merge pull request #3560 from fantashley/nil-fss-panic
fix: Prevent nil map assignment panic if disk is full
2022-10-17 15:22:58 -07:00
Ivan Kozlovic
4247cf93b2 Merge pull request #3566 from nats-io/js_fix_flapper
Fix a test that would sometimes fail
2022-10-17 12:08:07 -06:00
Ivan Kozlovic
5df93f9c81 Fix a test that would sometimes fail
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-17 11:35:47 -06:00
Ivan Kozlovic
7a5471e5c3 Merge pull request #3565 from nats-io/js_leaf_tests
Added specific tests for using non system extended setup similar to NGS
2022-10-17 10:53:50 -06:00
Ivan Kozlovic
90e9c89594 Added specific tests for using non system extended setup similar to NGS
Signed-off-by: Derek Collison derek@nats.io
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-17 10:42:03 -06:00
Ivan Kozlovic
19ff7f5f7a Merge pull request #3561 from nats-io/fix_3550
[FIXED] JetStream: User given named ephemeral lost after migration
2022-10-14 16:01:44 -06:00
Ivan Kozlovic
bec51ed52b [FIXED] JetStream: User given named ephemeral lost after migration
If an ephemeral was given a name by the user, if the consumer leader
was then shutdown, the ephemeral would be migrated using a server
generated new name instead of keeping the user given name.

Also, in some cases the migration would not even occur. This was
likely due to the fact that RAFT node(s) were shutdown prior to
the ephemeral migration code was invoked.

Resolves #3550

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-14 15:20:45 -06:00
Ashley Nelson
c909847571 Prevent nil map assignment panic if disk is full
If the server is unable to write to disk, there is a failure mode that
results in the fss map being nil when writing message block data to it,
resulting in a panic. This fix checks whether an error is returned by
the function that loads the fss map, and if so, returns an error to
prevent future assignment.
2022-10-14 19:35:39 +00:00
Ivan Kozlovic
0ef889d5cc Merge pull request #3555 from neilalexander/neilalexander/needackunlock
Add missing `RUnlock` in `needAck`
2022-10-14 08:53:37 -06:00
Neil Alexander
ff23c217ea Add missing RUnlock in needAck 2022-10-14 11:54:06 +01:00
Ivan Kozlovic
11cc165c11 Merge pull request #3552 from nats-io/fix_3547
[FIXED] MQTT: Subjects mapping were not handled
2022-10-13 16:30:57 -06:00
Ivan Kozlovic
dde94987ce [FIXED] MQTT: Subjects mapping were not handled
A simple configuration like this:
```
...
mappings = {
  foo: bar
}

mqtt {
   port: 1883
}
```
would cause an MQTT subscription on "bar" to not receive messages
published on "foo".

In otherwords, the subject transformation was not done when parsing
a PUBLISH packet.

This PR also handles the case of service imports where transformation
occurs after the initial publish parsing.

Resolves #3547

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-13 16:00:05 -06:00
Derek Collison
3269c506a8 Merge pull request #3544 from nats-io/readme-logo
Updates to README
2022-10-11 10:03:17 +09:00
Derek Collison
8415f609d7 Updated logo for better aesthetics on dark mode.
Also added in Rethink overview video.

Signed-off-by: Derek Collison <derek@nats.io>
2022-10-11 09:56:47 +09:00
Ivan Kozlovic
04c4cce4e9 Merge pull request #3543 from nats-io/fix_flappers_update_cov_go
Fix some flappers and update Go version for nightly code coverage
2022-10-10 17:28:22 -06:00
Ivan Kozlovic
a98af54d92 Fix some flappers and update Go version for nightly code coverage
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-10 16:42:43 -06:00
Ivan Kozlovic
ccfc818e8b Bump version to v2.9.4-beta as per release instructions
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-10 15:44:44 -06:00
Ivan Kozlovic
25e82d7d99 Merge pull request #3542 from nats-io/release_2_9_3
Release v2.9.3
2022-10-10 14:59:55 -06:00
Ivan Kozlovic
096b82271e Release v2.9.3
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-10 14:52:49 -06:00
Ivan Kozlovic
09b9bf272a Merge pull request #3541 from nats-io/warn_slow_icb
Added warning if internal sub callback takes too long
2022-10-10 14:52:25 -06:00
Ivan Kozlovic
3358247e6b Added warning if internal sub callback takes too long
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-10 14:39:37 -06:00
Ivan Kozlovic
ffc1797867 Merge pull request #3537 from nats-io/js_cons_name
[FIXED] JetStream: User-defined ephemeral Name not used in cluster mode
2022-10-10 14:01:47 -06:00
Ivan Kozlovic
9bd11580e3 [FIXED] JetStream: User-defined ephemeral Name not used in cluster mode
If the user sends a CONSUMER.CREATE request with a configuration that
specifies the name that the user wants for the ephemeral consumer,
this would not work on cluster mode, that is, the server would still
pick a name instead of using the provided one.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-10 13:48:38 -06:00
Ivan Kozlovic
e42260cc80 Merge pull request #3539 from nats-io/js_handle_bad_replicas_count
[FIXED] JetStream: return error on negative replicas count
2022-10-10 13:44:34 -06:00
Ivan Kozlovic
cf71adb9de Merge pull request #3538 from nats-io/fix_import_own_export
[FIXED] Stack overflow when account imports its own export
2022-10-10 13:34:30 -06:00
Ivan Kozlovic
c3adf78702 [FIXED] Stack overflow when account imports its own export
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-10-10 13:20:26 -06:00