Commit Graph

3362 Commits

Author SHA1 Message Date
Derek Collison
68416d291b Merge pull request #1717 from nats-io/ackReply
Optimize ackReply parsing
2020-11-17 11:44:34 -08:00
Ivan Kozlovic
86ea8b9b45 Merge pull request #1718 from AdamKorcz/master
Updated fuzzer
2020-11-17 12:02:35 -07:00
AdamKorcz
1191293cbf Updated fuzzer 2020-11-17 18:57:45 +00:00
Derek Collison
aa35d0818d Optimize ackReply parsing
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-17 10:36:14 -08:00
Ivan Kozlovic
288ab48673 Merge pull request #1684 from AdamKorcz/master
[ADDED] Fuzzers
2020-11-17 11:34:54 -07:00
AdamKorcz
3126930654 Merge branch 'master' of https://github.com/AdamKorcz/nats-server 2020-11-17 18:15:08 +00:00
AdamKorcz
f6aca96696 Updated year in header 2020-11-17 18:13:21 +00:00
R.I.Pienaar
b9427db3c3 Merge pull request #1715 from ripienaar/lookup_request
support json requests for stream lookup
2020-11-17 19:04:29 +01:00
R.I.Pienaar
ca8cbcdc63 support subjects starting with {
still doesnt support a subject {}

Signed-off-by: R.I.Pienaar <rip@devco.net>
2020-11-17 16:33:22 +01:00
R.I.Pienaar
02eaf6d831 trim json text
Signed-off-by: R.I.Pienaar <rip@devco.net>
2020-11-17 16:06:12 +01:00
R.I.Pienaar
a4116cc0fa support json requests for stream lookup 2020-11-17 15:33:44 +01:00
Derek Collison
7f1fce5078 Merge pull request #1714 from nats-io/maxp
Make sure to honor MaxAckPending when streaming directly to consumers
2020-11-16 18:24:55 -08:00
Derek Collison
67f4bf1ac1 Make sure to honor MaxAckPending when streaming directly to consumers
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-16 16:51:34 -08:00
Derek Collison
0156bea49a Merge pull request #1712 from nats-io/sendq
Decouple consumer from using stream's sendq.
2020-11-16 07:49:18 -08:00
Derek Collison
ce42addfe4 Merge pull request #1711 from nats-io/stream_lookup
Allow stream lookup by subject.
2020-11-16 05:59:13 -08:00
Derek Collison
cccb96097a Release lock for sending non-consumer messages as well
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-16 05:29:55 -08:00
Derek Collison
e93f448d32 Decouple consumer from using stream's sendq
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-15 15:26:30 -08:00
Derek Collison
f61fa8529a Merge pull request #1710 from nats-io/maxackpending
Add support for MaxAckPending
2020-11-15 06:50:23 -08:00
Derek Collison
5ff28b6087 Allow stream lookup by subject.
Allow an API endpoint and public API to lookup a stream by subject. The subject needs to be an exact match or a subset. If the subject is considered a filtered subject for the stream that will also be returned.

Signed-off-by: Derek Collison <derek@nats.io>
2020-11-14 13:35:05 -08:00
Derek Collison
9893aac8cb Add support for MaxAckPending
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-14 06:28:07 -08:00
Derek Collison
c851b39b79 Merge pull request #1709 from nats-io/removebug
Fix bug when removing the same message from a stream.
2020-11-13 18:24:16 -08:00
Derek Collison
28cb4e8c34 Fix bug when removing the same message from a stream.
We would release locks and call into upper layers when removing a message. The upper layers may call back into the lower layers to get more information, such as the subject.
This fix has the storage updates optionally supply the subject for filtered consumers and fixes the bug of double deletes.

Signed-off-by: Derek Collison <derek@nats.io>
2020-11-13 17:05:24 -08:00
Derek Collison
e57f6c9dee Larger AckWait to prevent flapping
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-13 08:06:43 -08:00
Derek Collison
3a6411ab5c Merge pull request #1707 from nats-io/fsfix
Fixed bug and a race condition
2020-11-12 14:02:24 -08:00
Derek Collison
2696749bb2 fix
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-12 13:58:34 -08:00
Derek Collison
cd03482ccb Fixed bug when returning wrong error from LoadMsg and a race condition
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-12 13:38:08 -08:00
Derek Collison
1a1aca0c30 Merge pull request #1705 from nats-io/interest
Make interest notifications explicit match only
2020-11-12 08:29:28 -08:00
Derek Collison
e6797efde7 Make interest notifications explicit match only
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-12 07:10:47 -08:00
Derek Collison
958c04840c Merge pull request #1703 from nats-io/fix
Fix flapper, be pedantic about signaling on delivery subject update
2020-11-11 18:11:11 -08:00
Derek Collison
a733c12086 Fix flapper, be pedantic about signaling on delivery subject update
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-11 18:07:51 -08:00
Derek Collison
c6e2aa0ba6 Merge pull request #1702 from nats-io/split
Remove conditional and broadcast for signalling consumers
2020-11-11 14:02:56 -08:00
Derek Collison
e31001a782 Remove conditional and broadcast for signalling consumers
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-11 13:53:45 -08:00
AdamKorcz
388bb6df4c Changed fuzzer name 2020-11-11 21:34:49 +00:00
Derek Collison
39638edfb4 Bumped beta version 2020-11-11 12:05:11 -08:00
Derek Collison
65909c3e2d Merge pull request #1697 from nats-io/consumer
Updates to consumer store to support delta updates.
2020-11-11 11:29:54 -08:00
Scott Fauerbach
9b13150b83 Clarify HPUB and HMSG examples (#1695) 2020-11-11 11:12:44 -08:00
Derek Collison
164f9fdf2b Updates to consumer store to support delta updates.
In preparation for clustering we need to have the consumer filestore update state with deltas vs original design.

Signed-off-by: Derek Collison <derek@nats.io>
2020-11-10 19:16:55 -08:00
Derek Collison
84591c1e16 Bumped version
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-10 17:43:54 -08:00
Derek Collison
11e6df0ca0 Merge pull request #1699 from nats-io/idx_bug2
Updates to index cache handling for message blocks.
2020-11-10 12:49:26 -08:00
Derek Collison
21a35546c1 Updates to index cache handling for message blocks.
We can have partial caches and we can also remove the idx cache. This was causing a bug where we would get the wrong slotInfo from the cache.idx. This code fixes the bug and detects idx partials.

Signed-off-by: Derek Collison <derek@nats.io>
2020-11-10 12:49:00 -08:00
Derek Collison
55419c291b Merge pull request #1489 from nats-io/gcolliso-patch-1
Update GOVERNANCE.md
2020-11-10 09:08:17 -08:00
Ginger Collison
109c53a437 Update GOVERNANCE.md 2020-11-10 10:40:28 -06:00
Derek Collison
398ef78aac Fix flappers
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-05 18:10:52 -08:00
Derek Collison
dc40ba6197 Merge pull request #1694 from nats-io/consumer_update
Redeliver pending
2020-11-05 15:01:22 -08:00
Derek Collison
a4abbea0d2 Make sure to set timer for additional redeliveries
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-05 14:07:17 -08:00
Derek Collison
4a26b1f514 Redeliver pending right away on change of delivery subject for a consumer.
Signed-off-by: Derek Collison <derek@nats.io>
2020-11-05 13:20:27 -08:00
Derek Collison
34a6aa8814 Bumped beta version 2020-11-05 07:35:57 -08:00
Derek Collison
8b56ea3b9a Merge pull request #1693 from nats-io/pcache_bug
Partial filestore cache bug
2020-11-05 07:30:51 -08:00
Derek Collison
67b1a33401 Fix for partial cache overwrite bug.
When we moved to a write through cache architecture we also moved the cache write to offset based instead of APPEND.
We were inadvertently clearing our offset from our cache when we would clear which meant if the next operation was another write we would have the wrong offset and overwrite previous messages.

Signed-off-by: Derek Collison <derek@nats.io>
2020-11-04 20:01:53 -08:00
Ivan Kozlovic
5a6bb37564 Test that shows message disappear from filestore
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2020-11-04 15:37:38 -07:00