Derek Collison
2fb2ced712
Removed unused functions
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-13 16:28:24 -05:00
Derek Collison
be3514bfdc
Do not auto remap
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-13 16:26:26 -05:00
Derek Collison
e1dd41e326
Do not fail to start with small cluster sizes.
...
Short ciruit full wait for leaders if we were a leadership xfer of preferred.
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-13 16:26:26 -05:00
Waldemar Quevedo
93fd0f60f5
reload: Allow re-enabling JS after it was disabled
...
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2021-03-12 17:19:34 -08:00
Derek Collison
a4e84ad781
Merge pull request #1995 from wallyqs/cluster-size-check
...
raft: Fixes to cluster size check for streams
2021-03-12 05:59:51 -06:00
Waldemar Quevedo
60817932a6
raft: Fixes to cluster size check for streams
...
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2021-03-11 23:28:57 -08:00
Matthias Hanel
efdb80cc48
More unit test fixes
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-12 01:51:28 -05:00
Matthias Hanel
6a0debbb71
more timeout changes
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-12 00:52:58 -05:00
Matthias Hanel
b316cccfd1
Fixed a quorum formation issue that caused truncation
...
When a new leader is elected it has to give everyone a chance to reply,
so that we can observe rejections with higher term.
The maximum election timeout is 7.5 seconds.
The new behavior of waiting for the election timeout caused unit tests
to fail. Hence upping the timeout there as well.
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-11 19:44:47 -05:00
Ivan Kozlovic
4af86becc7
Merge pull request #1993 from nats-io/remove-peer
...
Lost quorum changes for streams
2021-03-11 08:20:03 -07:00
Derek Collison
d5ab019abb
RC8
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-11 07:43:56 -05:00
Derek Collison
2b2a776411
Disable flaky tests for now
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-11 07:11:05 -05:00
Derek Collison
299f44cddf
This changes our behaviors for streams and peer removals in several ways.
...
First we no longer try to auto-remap stream assignments on peer removals from the system.
We also now can always respond to stream info requests if at least a member is running.
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-11 06:52:28 -05:00
Derek Collison
b757214ea6
Merge pull request #1991 from nats-io/js-test-timeout-4
...
Increasing test timeout
2021-03-10 21:50:19 -06:00
Ivan Kozlovic
6600c223bb
Merge pull request #1989 from nats-io/sources
...
Make source and mirror consumers direct.
2021-03-10 20:39:54 -07:00
Derek Collison
01404b3dc9
Protect against cluster and meta being gone
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-10 22:33:39 -05:00
Ivan Kozlovic
738527a37c
Bump version
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-03-10 19:36:49 -07:00
Ivan Kozlovic
84fbcdcd34
Remove internal retries for mirrors and sources
...
We let the go routine do it.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-03-10 15:47:19 -07:00
Derek Collison
c783bf1bed
Tweak flow control and slow start
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-10 17:30:25 -05:00
Ivan Kozlovic
27f51d4028
Fix ephemeral consumer delete in single cluster
...
Also remove retry of sources/mirror in the setSourceConsumer() itself
when not getting a response.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-03-10 15:16:31 -07:00
Matthias Hanel
cab415cf61
Increasing test timeout
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-10 11:52:21 -05:00
Derek Collison
709335f1c2
Bump to RC7.4
2021-03-10 07:18:43 -05:00
Derek Collison
263f4452c3
Delete no longer needed
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-10 07:15:58 -05:00
Derek Collison
f95b6481d2
Make source and mirror consumers direct, meaning they are not mapped by the metaleader.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-10 07:12:48 -05:00
Waldemar Quevedo
a295be12d4
Merge pull request #1987 from nats-io/js-restart
...
Disable JS on restart if on invalid state
2021-03-10 02:18:19 -08:00
Waldemar Quevedo
d338e9ae30
Disable JS on restart if on invalid state
...
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2021-03-10 01:40:32 -08:00
Matthias Hanel
5a3c5720b1
Merge pull request #1984 from nats-io/fix-connect-flapper
...
Fix unit test that received an extra connect message
2021-03-09 20:51:35 -05:00
Matthias Hanel
32c686d77d
Merge pull request #1986 from nats-io/js-test-timeout-3
...
Increasing test timeout
2021-03-09 20:51:25 -05:00
Matthias Hanel
e554d54b87
Increasing test timeout
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-09 19:44:15 -05:00
Matthias Hanel
137e450137
Increasing the timeout of waitOnClusterReady
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-09 18:37:11 -05:00
Matthias Hanel
9bfea58bd2
Fix unit test that received an extra connect message
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-09 15:52:31 -05:00
Ivan Kozlovic
52c4ab60f6
Merge pull request #1982 from nats-io/fix_idle_hbs_and_js_remote_unsubs
...
Fixed consumer idle hearbeats and JS route/GWs unsubscribes
2021-03-09 13:23:25 -07:00
Ivan Kozlovic
ccec4a6ab1
Fixed consumer idle hearbeats and JS route/GWs unsubscribes
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-03-09 12:08:47 -07:00
Waldemar Quevedo
86a64fbc46
Updates to JS consumer errors
...
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2021-03-09 09:46:28 -08:00
Waldemar Quevedo
5656ce5ace
Merge pull request #1958 from nats-io/consumer-ack-pending-pull
...
Prevent pull batch larger than max ack pending
2021-03-09 07:50:01 -08:00
Derek Collison
ea9abc5ef8
Wait longer for response
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-09 05:41:00 -06:00
Derek Collison
e5e8205fac
Need to make sure order of clseq as stamped also make it to the propose chan.
...
However we do not want to hold the actual stream lock.
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-09 00:34:33 -06:00
Derek Collison
2a48cb17b0
Merge pull request #1979 from nats-io/waitOnStreamCurrent-timeout
...
Increasing unit test timeout for waitOnStreamCurrent from 10 to 30 sec
2021-03-08 20:05:53 -07:00
Matthias Hanel
bea37b089c
fixing crash when disabling already shut down client
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-08 19:57:18 -05:00
Matthias Hanel
fdcebf5c3a
Increasing unit test timeout for waitOnStreamCurrent from 10 to 30 sec
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-03-08 19:17:36 -05:00
Ivan Kozlovic
4d1fc3a449
Merge pull request #1974 from nats-io/pae
...
Memory cache for commits and WAL size constraints.
2021-03-08 16:43:20 -07:00
Ivan Kozlovic
57af977548
Stabilized stream sources under restart
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-03-08 16:41:02 -07:00
Derek Collison
513cb061e3
Bump Version
2021-03-08 15:43:15 -06:00
Derek Collison
467614ea87
Make sure to check for old messages during processsing.
...
Also changed the way we detect old messages.
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-08 15:42:03 -06:00
Derek Collison
673543c180
Modified flow control for clustered mode.
...
Set channels into and out of RAFT layers to block.
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-08 12:58:57 -06:00
Waldemar Quevedo
3e61c2e5b1
Prevent pull batch size larger than max ack pending
...
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2021-03-08 08:55:47 -08:00
Waldemar Quevedo
278c0efc8a
Fix check from next request msg
...
Signed-off-by: Waldemar Quevedo <wally@synadia.com >
2021-03-07 00:12:31 -08:00
Derek Collison
c22627d4c1
Make sure to look in the WAL if not found in pae
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-06 18:01:00 -06:00
Derek Collison
5fe9ba5e94
Switched to fast state
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-06 09:00:15 -08:00
Derek Collison
31df41700b
Protect against divzero
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-03-06 08:54:19 -08:00