Commit Graph

1433 Commits

Author SHA1 Message Date
Derek Collison
d3213df7f1 Fix data race
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
26dafe464b Don't send route unsub with max
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
049db6e854 Support for queue subscriber retries over routes
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
3bdab1b777 Remove 1.8 support, trigger on 1.10
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
30e31d5cd2 Test dynamic buffers, track short reads/writes
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
e9178f1f42 Performance tweaks
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
e64ac424c1 Check flushOutbound and snapshot write_deadline and max_pending
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
df574ce951 varz cluster empty when not defined
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
766ef3b0b1 Add max_pending and write_deadline to varz
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
50a99241ea Slow consumer updates and latency improvements.
Use pending bytes as slow consumer trigger, so reintroduce max_pending.
Improve latency with inplace flush calls when appropriate. Utilize simple
time budget for readLoop routine.

Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
481697ef67 New outbound data architecture
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
644376209b Added large payload pub/sub benchmark
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
25654a4632 Collect pub permissions into own function 2018-06-04 17:45:05 -07:00
Derek Collison
bb292d9a8d Re-enable benchmark tests
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
e1ce792e41 Change to timer setup
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
8502fb1edc Add fast slice for large psubs for Match
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
b9c73e96ee Changed sublist to avoid quadratic time in removal with large N
Signed-off-by: Derek Collison <derek@nats.io>
2018-06-04 17:45:05 -07:00
Derek Collison
e6f200b698 Baseline order test and benchmarks 2018-06-04 17:45:05 -07:00
Derek Collison
a45ef57aa3 Merge pull request #673 from nats-io/update-readme-authorization
Update to gnatsd/README.md fixing authorization section - Resolves #662
2018-05-22 14:47:02 -07:00
ainsley
504ae06ad6 Update to gnatsd/README.md fixing authorization section addressing issue #662 "_INBOX.>" permission
[ci skip]
2018-05-22 15:39:50 -05:00
ainsley
523bddd328 Update to gnatsd/README.md fixing authorization section addressing issue #662 "_INBOX.>" permission
[ci skip]
2018-05-22 14:41:04 -05:00
ainsley
e453d78f4a Update to gnatsd/README.md fixing authorization section addressing issue #662 "_INBOX.>" permission 2018-05-21 11:21:46 -05:00
Ivan Kozlovic
99b6bb30d0 Merge pull request #671 from nats-io/update-office-hours
Update to Office Hours
2018-05-11 12:17:59 -06:00
ainsley
59ae788854 Update to Office Hours 2018-05-11 11:55:46 -05:00
Ivan Kozlovic
da89364d9d Merge pull request #666 from nats-io/remove_route_conn_from_tmp_clients
Remove route connection from temp map
2018-04-11 17:10:07 -06:00
Ivan Kozlovic
ac42bb0bb9 Remove route connection from temp map
When a route connection is created, the server will keep track
of the client structure in a special map until the route protocol
completes. This is meant so that if the server is shutdown before
the route is registered in routes map, the server can kick out
the connection's readLoop.

The route connection was correctly removed on success, but was
not for route connections that were not registered and dropped.
This was not causing any issue, but for correctness, doing the
removal now when server removes a route connection.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2018-04-11 16:49:08 -06:00
Ivan Kozlovic
e179e31bf2 Merge pull request #665 from nats-io/turnoff_signal_handler_in_some_tests
Ensure sig handler routine returns on shutdown, turn it off in most tests
2018-04-09 09:22:31 -06:00
Ivan Kozlovic
b0ebdbed7d Fixed typo 2018-04-09 09:14:21 -06:00
Ivan Kozlovic
9d11587e49 Add test to ensure server handles more than 1 signal
Also, try to fix flapping test
2018-04-06 17:24:41 -06:00
Ivan Kozlovic
40cf0107d6 Ensure sig handler routine returns on shutdown, turn it off in most tests
I noticed that when running the test suite, there would be a file
server/log1.txt left. This file is created by one of the config
reload test. Running this test individually was doing the proper
cleanup. I noticed that the Signal test that was checking
that files could be rotated was causing this side effect.
It turns out that none of the config reload tests were disabling
the signal handler (NoSigs=true), and since the go routine would
be left running, running the TestSignalToReOpenLogFile() test
would interact with an already finished test.

I put a thread dump in handleSignals() to track all tests that
were causing this function to start the go routine because NoSigs
was not set to true. I fixed all those tests. At this time, there
are only 2 tests that need to start the signal handler.

I have also fixed the code so that the signal handler routine select
on a server quitCh that is closed on shutdown so that this go routine
exit and is waiting on using the grWG wait group.
2018-04-06 17:14:02 -06:00
Derek Collison
e8b524aed6 Merge pull request #661 from gabeguz/master
Add pse file for OpenBSD
2018-03-29 11:37:02 -07:00
Gabriel Guzman
f7f333ed2f Update 2018-03-29 11:48:09 -04:00
Gabriel Guzman
a29b08073e Add pse file for openbsd 2018-03-29 09:41:45 -04:00
Derek Collison
9b90e7d665 Merge pull request #658 from xizhao/patch-1
doc(readme): add license scan status
2018-03-26 19:23:21 -07:00
Kevin Wang
8eb96feecb doc(readme): add license scan status 2018-03-26 13:48:03 -07:00
Ivan Kozlovic
effc6b1f3f Merge pull request #657 from nats-io/route-port-display
[FIXED] Random cluster port displayed as 0 instead of actual value
2018-03-23 17:17:48 -06:00
Ivan Kozlovic
c2a095581e Bump version for dev [ci skip] 2018-03-23 17:17:13 -06:00
Alberto Ricart
d76ae5c6e3 FIX to display actual port selected if -1 is provided in a cluster url such as --cluster nats://localhost:-1. 2018-03-23 17:36:33 -05:00
Ivan Kozlovic
add6d7930a Merge pull request #656 from nats-io/fix_lastactivity_test
Fix last activity monitoring test
v1.1.0
2018-03-23 14:41:51 -06:00
Ivan Kozlovic
705d8f5fe8 Fix last activity monitoring test
This test originally used only 1 connection. It was then modified
to use another connection to check the publishing effect into
the last activity. However, when polling for connz we were using
[0], but that may not necessarily match the connection we were
checking.
I don't think that there was a need for a new connection in this
test, so use a single connection.
2018-03-23 14:20:16 -06:00
Ivan Kozlovic
c587035a49 Merge pull request #655 from nats-io/next_release
Prepare for release 1.1.0
2018-03-23 14:04:21 -06:00
Ivan Kozlovic
fb972bd0fc Remove ssl_required references 2018-03-23 13:40:10 -06:00
Ivan Kozlovic
8cb7c18204 Prepare for release 1.1.0 2018-03-23 11:53:04 -06:00
Derek Collison
55730374a9 Merge pull request #653 from wallyqs/conf-json-compat
Proposal: Improve compatibility with JSON in configuration
2018-03-21 11:24:17 -07:00
Waldemar Quevedo
c45d2f5b8b Improve compatibility with JSON in config parser
The configuration format from the server is almost already a superset
of JSON with exception of two cases:

1) trailing commas from values at the top level (although they are
   supported inside of maps)

2) initial and final brackets on the top level section.

This change relaxes the two cases above to just skip those tokens so
that the config syntax can also support valid JSON objects for
configuring the server which might be helpful when generating it
programmatically.
2018-03-21 01:03:41 -07:00
Derek Collison
b2a9ed97d6 Merge pull request #650 from nats-io/cncf
Move to CNCF and Apache 2 License
2018-03-16 16:23:10 -07:00
Derek Collison
2a2d88cd1f Updated PR template 2018-03-16 15:56:22 -07:00
Derek Collison
3cd4a24f2f Updated nuid 2018-03-16 15:46:14 -07:00
Derek Collison
219b8538ca Added owners 2018-03-16 15:28:22 -07:00
Ivan Kozlovic
c16a1dbcc7 Merge pull request #638 from nats-io/fix_632
[IMPROVED] Better attempt at delivering messages to queue subscriptions
2018-03-16 16:01:38 -06:00