Ivan Kozlovic
1014041be3
[FIXED] Possible panic due to concurrent access to unlocked map
...
This could happen when a leafnode has permissions set and another
connection (client, etc..) is about to assign a message to the
leafnode while the leafnode itself is receiving messages and they
both check permissions at the same time.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-04-20 21:18:13 -06:00
Derek Collison
a3f66508dd
Merge pull request #2138 from nats-io/ports
...
Use lower ports to not collide with -1s
2021-04-20 20:15:24 -07:00
Derek Collison
e31361e6a2
Use lower ports to not collide with -1s
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-20 20:10:29 -07:00
Derek Collison
518ff9be14
Concurrent multiple durable subscribers would cause unpredictable behaviors.
...
Upgraded to current Go client.
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-20 19:50:24 -07:00
Derek Collison
7ac0ff6674
Merge pull request #2135 from nats-io/panic
...
Check that we have mirror still to not panic and deadlock/hang
2021-04-20 17:13:16 -07:00
Derek Collison
5707c1132c
Move to dynamic ports
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-20 17:08:47 -07:00
Matthias Hanel
4d112af6c1
Fix account resolver lock ordering on shutdown
...
This is benign as the inversion was between start and stop.
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-04-20 20:08:14 -04:00
Derek Collison
ef7a811a71
Check that we have mirror still to not panic and deadlock/hang
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-20 16:41:41 -07:00
Derek Collison
902b9dec12
Merge pull request #2131 from nats-io/updates
...
General Updates and Stability Improvements
2021-04-20 13:52:39 -07:00
Derek Collison
5aa3dd7761
Put back direct consumer subject prefix
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-20 13:35:48 -07:00
Derek Collison
0a3e54c88a
Fix subscription leaks for mirrors and sources for streams as well as flow control subjects for consumers.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-20 12:13:07 -07:00
Jaime Piña
e12181cb83
Return not ready for connection reason
...
Currently, we use ReadyForConnections in server tests to wait for the
server to be ready. However, when this fails we don't get a clue about
why it failed.
This change adds a new unexported method called readyForConnections that
returns an error describing which check failed. The exported
ReadyForConnections version works exactly as before. The unexported
version gets used in internal tests only.
2021-04-20 11:45:08 -07:00
Ivan Kozlovic
9806146e0e
Merge pull request #2127 from nats-io/stream-op-acc
...
Declare required JetStream resources in test
2021-04-20 09:00:23 -06:00
Derek Collison
fe3537d429
Check err
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-20 07:08:10 -07:00
Derek Collison
1d7522581f
2.2.2-beta.8
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-20 06:06:39 -07:00
Derek Collison
2da264c1ec
Randomize cluster and gateway ports
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-19 20:24:25 -07:00
Derek Collison
68ddd519d2
Process upstream missing messages for mirrors better.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-19 20:15:21 -07:00
Derek Collison
820c76d3c8
Fix flapper
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-19 11:43:43 -07:00
Matthias Hanel
b73be52862
[fixed] only become observer if the leaf config has raft not restricted ( #2125 )
...
If a subject in the system accounts leafnode deny_imports matches $NRG.>
then jetstream is explicitly disconnected and the server can become
leader.
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-04-19 13:10:49 -04:00
Derek Collison
6e973a8d59
Bump version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-18 18:48:11 -07:00
Derek Collison
542adc4bc3
Make sure clseq does not fall below lseq
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-18 18:47:33 -07:00
Derek Collison
7adf7bc7d6
Maintain stream sequence properly
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-18 18:38:28 -07:00
Derek Collison
c41c89ad75
Help with flapping tests
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-18 18:35:29 -07:00
Derek Collison
d84af39f16
Make sure source consumers work properly after expiration/purge
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-16 17:28:04 -07:00
Jaime Piña
220c8785fc
Declare required JetStream resources in test
...
Currently, tests that use js-op.conf use dynamic JetStream limits,
calculated from the machine where the test is run. However, this file
also has an account JWT that requires an explicit amount of resources.
This causes some tests to pass on some machine, but not others.
This change explicitly declares the max storage and memory limits
JetStream requires to match the limits specified in the account JWT, so
that the host environment doesn't influence the tests.
2021-04-16 15:21:35 -07:00
Derek Collison
60df8a2fcb
Minimize proposals doing skip msgs
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-16 14:19:29 -07:00
Derek Collison
946335d62f
Increase clients and runtime
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-16 14:18:40 -07:00
Derek Collison
2117d7750a
Use higher timeout for deleting consumer
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-16 14:18:04 -07:00
Derek Collison
1dd7e8c7d1
Increase apply channel size
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-16 14:00:46 -07:00
Derek Collison
d7641b9d38
Move test to norace
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-16 14:00:11 -07:00
Derek Collison
adba4fde5a
Add large stress test, skipped by default
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-16 13:58:32 -07:00
Derek Collison
6a7f3a3153
Cleanup error handling, fix deadlock in test
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-16 13:56:54 -07:00
Derek Collison
8f07929530
2.2.2-beta.5
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-15 17:35:28 -07:00
Matthias Hanel
b3e355c263
[fixed] sub ref count issue across leaf node connections
...
This was caused by not sending subs across leaf node connections in some
cases but sending unsub in all cases. This imbalance caused
subscriptions to go away too soon. (ref count was off)
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-04-15 20:13:57 -04:00
Derek Collison
35bf0e8ce5
Merge pull request #2122 from nats-io/cleanup_tests
...
Cleanup some tests + GetTLSConnectionState() race fix
2021-04-15 13:57:51 -07:00
Ivan Kozlovic
7964f57236
Merge pull request #2123 from nats-io/fix_gw_si
...
Do not propagate service import interest across GW and ROUTES
2021-04-15 12:06:07 -06:00
Ivan Kozlovic
6e1205b660
Cleanup some tests + GetTLSConnectionState() race fix
...
Missing defers
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-04-15 11:37:43 -06:00
Derek Collison
c5917756eb
Merge pull request #2121 from nats-io/mb-close-fix
...
js: msgblock close fix
2021-04-15 10:36:15 -07:00
Ivan Kozlovic
56d0d9ec87
Do not propagate service import interest across GW and ROUTES
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-04-15 11:34:36 -06:00
Waldemar Quevedo
2976a78f57
js: msgblock close fix
...
Also swaps order of cleaning up resource directory in cluster tests.
2021-04-15 09:16:02 -07:00
Derek Collison
f3f04e6442
Fix flapper
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-15 06:34:12 -07:00
Derek Collison
14627434c9
Bump Version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-15 04:53:27 -07:00
Derek Collison
8e82f36c5b
Track removed peers properly
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-14 20:29:09 -07:00
Derek Collison
cf34514f9f
Do not limit expansion of new peers
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-14 18:47:11 -07:00
Ivan Kozlovic
c92cb97ac7
Merge pull request #2117 from nats-io/fix-fail-parent-test
...
Fix calling FailNow in parent test
2021-04-14 16:47:24 -06:00
Derek Collison
466789e307
Cleanup request subscription if no answer
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-14 15:04:22 -07:00
Jaime Piña
1ccb5572ba
Fix calling FailNow in parent test
...
Currently, TestJetStreamClusterMirrorExpirationAndMissingSequences calls
FailNow from the parent test when a subtest fails. This causes an error.
This change calls FailNow to fail the subtest from the subtest itself.
2021-04-14 14:45:11 -07:00
Derek Collison
395728bab9
Allow control messages like heartbeats to pass the old sub test.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-14 14:11:02 -07:00
Derek Collison
ee1775c667
Merge pull request #2111 from nats-io/peers
...
Add in more extensive test on extending hubs with leafnode clusters
2021-04-14 10:48:48 -07:00
Derek Collison
627d20f7d4
Make sure to stop retries for mirror consumers when not leader and through old control messages.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-04-14 10:43:55 -07:00