Derek Collison
716da693e4
Track peers differently, react to removal entries
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-06 20:11:30 -08:00
Derek Collison
1c79d96de8
user single node info struct
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-06 20:10:29 -08:00
Derek Collison
6d32c307ef
Remove pretty indent for json.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-06 20:09:44 -08:00
Derek Collison
b358773ddf
Force filestore to flush in place by default.
...
Track lost data and truncate message blocks when detecting failures or write errors.
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-06 20:04:47 -08:00
Derek Collison
1622c2b60e
Send serverInfo on remote shutdown and remove mapping entries
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-05 17:21:55 -08:00
Matthias Hanel
7b7543d298
[added] jsz nats and http monitoring endpoint for jetstream ( #1881 )
...
The new endpoints are /jsz on http and "$SYS.REQ.SERVER.PING.JSZ" and "$SYS.REQ.SERVER.%s.JSZ".
$SYS.REQ.ACCOUNT.%s.JSZ will only return info for the particular account
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-02-05 18:46:04 -05:00
Derek Collison
f7ab27f7da
Merge pull request #1889 from nats-io/sc-reassign
...
Make peer reassignment supercluster aware.
2021-02-05 08:48:25 -07:00
Derek Collison
f500527d12
Make peer reassigment supercluster aware.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-05 07:21:00 -08:00
Derek Collison
73d30c615f
Merge pull request #1888 from nats-io/getmsg
...
Make direct message retrieval from stream cluster aware.
2021-02-05 07:42:08 -07:00
Derek Collison
78f549b35b
Make direct message retrieval from stream cluster aware
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-05 06:37:49 -08:00
Derek Collison
04c8fac8f6
Merge pull request #1887 from nats-io/fixes
...
Noticed stream snapshots were being processed on recovery
2021-02-04 13:47:56 -07:00
Derek Collison
493425e8b2
Noticed stream snapshots were being processed on recovery causing high cpu usage and memory usage.
...
Also made consumer Created() UTC.
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-04 12:29:07 -08:00
Derek Collison
0ee93b4976
Merge pull request #1886 from nats-io/double_purge
...
Purge operation replay on restart
2021-02-04 11:37:44 -07:00
Derek Collison
74b1e1f72c
Change the way we decide to compact on purge op replay
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-04 09:45:51 -08:00
Derek Collison
483b07a794
Make sure old purge did what it was supposed to
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-04 07:49:30 -08:00
Derek Collison
c49e3247bb
Purge operations would be replayed on restart regardless if they had already been processed.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-04 07:04:50 -08:00
Derek Collison
d71c845a92
Bump Version [ci skip]
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-03 20:14:13 -08:00
Ivan Kozlovic
226638a49d
Merge pull request #1884 from nats-io/jsc_del_cons_fix
...
Fixed some issues with JS consumers
2021-02-03 20:43:02 -07:00
Ivan Kozlovic
6eeb9d2361
Fixed some issues with JS consumers
...
- Should check if there is interest at top of deleteNotActive timer
callback.
- Use RLock/RUnlock for no interest check
- Remove some checks in cluster mode regarding internal stream/consumers
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-02-03 20:12:06 -07:00
Derek Collison
01ad02ccae
Merge pull request #1883 from nats-io/supercluster
...
First pass at supercluster enablement.
2021-02-03 19:56:36 -07:00
Derek Collison
0b27d174f5
Merge pull request #1882 from nats-io/stream-delete
...
Stream Message delete and purge
2021-02-03 18:29:54 -07:00
Derek Collison
a1e0f7dc1a
First pass at supercluster enablement.
...
This allows metacontrollers to span superclusters. Also includes placement directives for streams. By default they select the request origin cluster.
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-03 17:28:13 -08:00
Derek Collison
dba22d9855
Test for restart after delete
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-03 16:49:38 -08:00
Derek Collison
625e6859a3
Only respond for delete and purge if leader and not recovering.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-03 16:36:32 -08:00
Derek Collison
1c9258f91c
Handle msg delete and stream purge for R=1
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-03 16:30:03 -08:00
Derek Collison
0dfac6b52f
Merge pull request #1880 from nats-io/erase-bug
...
[FIXED] Bug with erased messages and re-indexing the message block cache.
2021-02-03 15:13:51 -07:00
Derek Collison
6baf69889f
Allow NoErase option to deleting a message through the formal API
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-03 14:12:27 -08:00
Derek Collison
eb429022e8
There was a bug when a messages was erased and we expired the cache we would not properly re-index.
...
We need to clear the erase bit to properly set fseq in the cache structure.
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-03 13:58:13 -08:00
Derek Collison
bbada32461
Bump Version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-02 11:48:55 -08:00
Derek Collison
5b5fe496fb
Merge pull request #1877 from nats-io/jsvarz
...
Modified jetstream varz information
2021-02-02 09:59:18 -07:00
Derek Collison
c9e1cbd571
Modified jetstream varz information
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-02 08:35:35 -08:00
Derek Collison
5fca2be35f
Merge pull request #1875 from nats-io/jsc-remove
...
Removing peers from streams and consumers and stepdown functionality
2021-02-02 09:28:03 -07:00
Derek Collison
a8982c040f
Suppress lost quorum processing if to close to raft node creation time.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-02 06:27:07 -08:00
Derek Collison
f3703a4b85
Make sure audit events have the proper subject regardless of where processed.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-02 05:03:20 -08:00
Derek Collison
e5c1d65fff
Added in JS disable per server on reload. Also removing peerw from a stream and leader stepdown for streams and consumers.
...
Various bug fixes, stability improvments.
Signed-off-by: Derek Collison <derek@nats.io >
2021-02-01 19:39:08 -08:00
Matthias Hanel
3799b90011
[Adding] support for account_token_position ( #1874 )
...
This change does 4 things:
Refactor to only have one function to validate imports.
Have this function support the jwt field account_token_position.
For completeness make this value configurable as well.
unit tests.
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-02-01 19:51:36 -05:00
Ivan Kozlovic
ea68afe5e2
Bump version to beta.66
...
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-02-01 13:53:46 -07:00
Ivan Kozlovic
c9c9bee35e
Merge pull request #1873 from nats-io/fix_websocket_compression
...
Fixed compression http header request/response
2021-02-01 13:51:43 -07:00
Ivan Kozlovic
ac0a1ee8fd
Fixed compression http header request/response
...
The issue was introduced by PR #1858 .
Key points:
- Sec-WebSocket-Extensions must contain approved headers, so moving
the "no-masking" private extension to its own header "Nats-No-Masking".
- The format of the permessage-deflate negotiation response became
invalid, I have fixed that.
- For leaf nodes, if `permessage-deflate` extension is not at all
present in the response, then simply disable compression, however
if it is present but there is no server/client no context take over,
then we have to fail the connection.
- A leafnode test was not setting the "NoMasking" option so the
test TestLeafNodeWSNoMaskingRejected was not capturing possible
error if negotiation failed.
Signed-off-by: Ivan Kozlovic <ivan@synadia.com >
2021-02-01 12:10:37 -07:00
Matthias Hanel
ffc20e950b
[removed] activation token download ( #1867 )
...
Signed-off-by: Matthias Hanel <mh@synadia.com >
2021-02-01 12:30:47 -05:00
Derek Collison
50d6074cfa
Merge pull request #1871 from nats-io/jsc-audit
...
Make sure to suppress duplicate create/delete audit events
2021-01-31 10:17:33 -07:00
Derek Collison
095a83bc2a
Make sure to suppress duplicate create/delete audit events
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-01-31 09:16:16 -08:00
Derek Collison
230c17ee48
Bumped Beta version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-01-30 17:24:52 -08:00
Derek Collison
2b0717bde2
Make debug not error since we recover
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-01-30 14:00:26 -08:00
Derek Collison
c116e966e6
Merge pull request #1870 from nats-io/raft_inline_catchup
...
Fixed bug on raft inline catchup when apply channel was full.
2021-01-30 14:33:08 -07:00
Derek Collison
9b20d5c888
Fixed bug on raft inline cacthup when apply channel was full.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-01-30 13:22:27 -08:00
Derek Collison
be393995a4
Bumped Beta Version
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-01-29 19:40:15 -08:00
Derek Collison
cbfe34ff2b
Merge pull request #1869 from nats-io/dupe-delivery
...
[FIXED] Bug on single replica restore would deliver duplicate messages.
2021-01-29 20:38:39 -07:00
Derek Collison
5490c4969b
Fixed a bug that on restore of single streams in clustered mode would subscribe to the stream subjects twice.
...
Signed-off-by: Derek Collison <derek@nats.io >
2021-01-29 19:37:30 -08:00
Derek Collison
36c4de874a
Merge pull request #1868 from nats-io/js-breaks-imports-fix
...
[FIXED] Fix for #1864
2021-01-29 19:15:32 -07:00