Derek Collison
73ba2d0b2f
File writes to term and vote and peerstate were in the direct route path and could cause delays.
...
This moves the actual writes to a separate Go routine and also allows multiple writes to
be compressed into one write under load. We only want latest.
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 20:47:31 -08:00
Derek Collison
2d24571e17
Change default sync to 60s
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 20:44:05 -08:00
Derek Collison
57403b1903
When pulling consumer messages if the consumer and the client were on the same server we needed to process local deliver subject.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 19:28:46 -08:00
Derek Collison
3def02a459
check for '\n' at beginning og key
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 17:46:30 -08:00
Derek Collison
75fbcffedb
Make sure it's the exact key
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 14:56:44 -08:00
Derek Collison
36a2cbeff7
Cross account pull consumers would not work correctly due to reply subject rewrite.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 13:33:24 -08:00
Derek Collison
23d7725104
Removed this one due to slow timing now
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 09:16:50 -08:00
Derek Collison
84321f6697
These are slower so need to wait longer
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 08:55:58 -08:00
Derek Collison
78bdc34637
General stability improvements. Fixes to subscription state not cleaning up.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-24 08:44:34 -08:00
Ivan Kozlovic
1652fe62ef
Updates to when do snapshot
...
Remove panic on runAsLeader when not able to subscribe (which happens
on shutdown)
Gateway name access does not need lock since it is immutable. Will
prevent deadlocks in some situations.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-02-23 19:06:07 -07:00
Derek Collison
bb58d455f6
Revert switching to interest only mode
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 18:00:47 -08:00
Derek Collison
ebd522d732
Test cleanup
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 17:20:30 -08:00
Derek Collison
20d250c7cf
Move storage type to own variable for unlocked access, can't change
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 17:20:12 -08:00
Derek Collison
8fe8b835fe
Fixes for flapping tests
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 14:08:17 -08:00
Derek Collison
09e3d26fa3
Add in support for stream mirrors and sources.
...
Add in proper support for stream updates in clustered mode.
Don't send API updates without subjects, caused GW parser errors.
Stream internal loops use their own clients now.
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 10:57:27 -08:00
Derek Collison
dd19f620a9
Does not need receiver
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 10:57:18 -08:00
Derek Collison
6d6a6c07ff
Don't send empty subjects, always put system account in interest only
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 10:57:12 -08:00
Derek Collison
6444038660
Make sure this is GW and leafnode friendly
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 10:57:10 -08:00
Derek Collison
c39641c263
Tweak hb and election times, fix unsubscribe leak
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 10:57:05 -08:00
Derek Collison
0487ce48a4
Spelling
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 10:57:00 -08:00
Derek Collison
a9394d7692
Handle JetStream subjects across GWs
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-23 10:56:24 -08:00
Matthias Hanel
2e4a892c8d
[fixes] crash in checkJetStreamExports when there is no system account
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-02-23 00:42:31 -05:00
Derek Collison
2047b46e54
Updates based on feedback
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-19 11:07:31 -08:00
Derek Collison
fa8a74ceb5
Allow placement directives for metacontroller stepdown to allow placement to new clusters.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-19 10:55:22 -08:00
Ivan Kozlovic
2bd7a4d32e
Merge pull request #1926 from nats-io/mqtt_clustering
...
MQTT clustering
2021-02-19 11:45:19 -07:00
Ivan Kozlovic
7526c76703
Changes to setHeader
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-02-19 10:46:14 -07:00
Ivan Kozlovic
61bd1b8d86
MQTT clustering
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-02-19 08:50:00 -07:00
Ivan Kozlovic
eafc6b7a25
[fixed] LeafNode sending message using stream's import subject.
...
A publish on "a" becomes an LMSG on ">" which
is the stream import's subject. The subscriber on "a" on the other
side did not receive the message.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-02-19 00:11:41 -05:00
Derek Collison
e81b208591
Change for client update in api requests
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-18 20:05:53 -08:00
Derek Collison
cc1edcead7
Bump Version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-18 19:22:46 -08:00
Derek Collison
882ead6504
Merge pull request #1924 from nats-io/sc_interest
...
Cross cluster consumer interest.
2021-02-18 20:13:19 -07:00
Derek Collison
9de18dfefe
Removed unused function
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-18 18:35:44 -08:00
Derek Collison
afea79610a
Consumer interest was not properly handled cross cluster.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-18 18:29:59 -08:00
Derek Collison
048011d7f1
Split vote improvements
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-18 18:29:18 -08:00
Matthias Hanel
b410026319
[fixed] out of range issue in processMsgResults during subject rewrite
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-02-18 16:16:41 -05:00
Derek Collison
d58e68051a
Bump Version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-18 08:52:52 -08:00
Derek Collison
89fe3b05df
various bug fixes, wal/snapshot stability
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-18 08:41:09 -08:00
Derek Collison
700726c75b
Bump Version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-17 20:14:32 -08:00
Derek Collison
e21c7097f3
General stability improvements.
...
Original thought to move to memory based WALs was ill-advised and caused issues with stability around restarts.
Returned to file based but with async flush for the WAL itself.
Also the raft inline catchup has been improved.
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-17 19:56:16 -08:00
Derek Collison
765b9ad57a
Some stability improvements to raft lib and catchup stream processing.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-16 20:30:12 -08:00
Derek Collison
73d819c433
Merge pull request #1916 from nats-io/better_restore
...
Better restore logic
2021-02-16 17:19:02 -07:00
Derek Collison
ddc4cc79d2
Make sure to not process AR when no longer leader
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-16 15:58:46 -08:00
Derek Collison
ddc800174f
Stabilize catchups and snapshot logic
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-16 13:30:02 -08:00
Derek Collison
0dcb006968
Handle AppendEntry reponse inline, lower outstanding on catchup to stabilize
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-16 13:24:09 -08:00
Derek Collison
30cc739797
Increase internal sendq due to JSC
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-16 13:19:13 -08:00
Ivan Kozlovic
8598de6dbe
[FIXED] Gateway's implicit connection not using global user/pass
...
If a gateway is configured with an authorization block containing
username and password and accepts an unknown Gateway connection,
when initiating the outbound connection, it should use the
gateway authorization's user/pass information.
Resolves #1912
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-02-16 10:06:06 -07:00
Derek Collison
7cc49f8c62
Use system account when nil
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-15 08:23:16 -08:00
Derek Collison
82de5a3cf8
Bump Version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-14 19:07:12 -08:00
Derek Collison
4c6e33c9c6
Restoration of streams would possibly block route and client connections.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-14 18:43:40 -08:00
Derek Collison
fcb9be5f6c
Skip perf tests
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-13 14:37:15 -08:00