Ivan Kozlovic
9ff62e21a9
Fix typos
2017-07-19 11:59:05 -06:00
Ivan Kozlovic
1fa136b21a
Improved Config Reload test coverage
...
- Move the kill of a server in a cluster test to ensure that
list of routes to remove is not empty.
- Change write_deadline reload value to 3s to make it different
from default value
- Add test for option that does not support hot-swapping
2017-07-19 11:59:05 -06:00
Tyler Treat
136355f28e
Merge branch 'master' of github.com:nats-io/gnatsd into fix_symlink_garbage
2017-07-11 10:39:43 -05:00
Tyler Treat
10c70cb570
Handle symlinks better
...
It's hard to implement a bulletproof solution for cleaning up the
symlinks created by config reload tests on failure since, for example,
there is nothing we can do when log.Fatal is called. Instead, prevent
the existence of a symlink from failing the tests if there is one
hanging around. Generally, these symlinks will not be left unless
os.Exit was called (as is the case with log.Fatal).
2017-07-11 10:35:29 -05:00
Ivan Kozlovic
28d4420a2c
Fixed some config reload cluster tests
...
Use checkClusterFormed() to minimize risk of test failures due
to the subscription not being registered through the cluster.
2017-07-11 09:06:00 -06:00
Tyler Treat
dea34307f1
Merge branch 'master' of github.com:nats-io/gnatsd into fix_comment
2017-07-10 19:00:49 -05:00
Ivan Kozlovic
cae6b0b23a
Some fixes
...
Use include so that we can have logfile and remote sys log tested
on platforms other than Windows.
Added some missing defer server.Shutdown() statements.
2017-07-10 16:33:19 -06:00
Tyler Treat
317a04f106
Fix error in test comment
...
The test is ensuring config reload fails when trying to change cluster
host.
2017-07-10 12:32:12 -05:00
Tyler Treat
ca1b3485cb
Fix "error opening file" errors in tests for Windows
...
This sort of just punts on the problem by not creating log files in the
tests, but it seemed like the simplest solution.
2017-07-10 12:21:01 -05:00
Ivan Kozlovic
70b3b18535
Fix some tests
...
Fixing various tests that were failing locally when running in
parallel mode (without -p=1).
In reload_test.go, lots of nats.Conn.Close() were missing which
would require too much memory when running with `-race` mode.
2017-07-05 18:57:15 -06:00
Tyler Treat
2ed9c64f66
Merge branch 'master' of github.com:nats-io/gnatsd into enable_config_reload
2017-06-28 14:42:11 -05:00
Tyler Treat
901a5c7122
Address CR feedback
2017-06-28 11:05:02 -05:00
Tyler Treat
dd3ad77ea8
Replace reloaded varz field with config_load_time
2017-06-27 14:33:06 -05:00
Tyler Treat
9adfae11a2
Add reload count to server for monitoring
2017-06-23 10:03:01 -05:00
Tyler Treat
88c864b2af
Add reload support for ping interval, max pings, and write deadline
2017-06-22 17:01:56 -05:00
Tyler Treat
5501e288a8
Support syslog config reload
2017-06-22 16:33:33 -05:00
Tyler Treat
b898b5561a
Add reload support for pid_file, max_control_line, and max_payload
2017-06-22 14:48:40 -05:00
Tyler Treat
11c2720e0e
Add support for reloading max_connections
2017-06-22 12:59:54 -05:00
Tyler Treat
8f5aa0433d
Add support for reloading logtime and log_file
2017-06-22 12:59:13 -05:00
Tyler Treat
de76576348
Refactor config reload tests to reduce code duplication
2017-06-20 13:40:16 -05:00
Tyler Treat
579e9e9f28
Reduce test flakiness
2017-06-20 11:25:54 -05:00
Tyler Treat
718bda4a5d
Fix routes reload test
2017-06-20 10:28:55 -05:00
Tyler Treat
f719d7afe9
Fix races in reload tests
2017-06-19 16:29:45 -05:00
Tyler Treat
2ea1afd82d
Add clustering to config reload tests
2017-06-19 14:40:57 -05:00
Tyler Treat
182f5ce53b
Add tests around cluster reload
2017-06-19 14:18:29 -05:00
Tyler Treat
77a973fc8d
Send error when we drop a client subscription
2017-06-14 12:08:44 -05:00
Tyler Treat
6e3f58f48c
Fix tests and cleanup log output
2017-06-14 10:38:21 -05:00
Tyler Treat
ac04d555f2
Merge branch 'master' of github.com:nats-io/gnatsd into users_reload
2017-06-14 09:28:18 -05:00
Peter Miron
5724da1c27
Merge pull request #512 from nats-io/random_port_extended
...
Random port extended
2017-06-14 08:08:45 -04:00
Tyler Treat
44966230db
Handle permissions changes on config reload
2017-06-13 16:04:38 -05:00
Tyler Treat
fa12181094
Add support for reloading users credentials
2017-06-12 13:17:30 -05:00
Tyler Treat
d11a3979fc
Log changes to AuthTimeout and TLSTimeout
2017-06-12 12:13:32 -05:00
Tyler Treat
9ba55f0f21
Add support for reloading single-user and token authentication
2017-06-12 11:52:11 -05:00
Peter Miron
606502091c
Updated based on @tylertreat feedback.
2017-06-12 10:48:30 -04:00
Peter Miron
d1f38f38a2
changes to support random ports for clusters and profiler.
2017-06-10 10:35:01 -04:00
Tyler Treat
00d0e3d7cb
Fix leaking log output in unit tests
2017-06-08 10:55:43 -05:00
Tyler Treat
30db4be965
Ensure old connection still works in TLS reload test
2017-06-07 17:03:33 -05:00
Tyler Treat
d172ca5801
Add unit tests around TLS config reload
2017-06-07 16:34:39 -05:00
Tyler Treat
b70e2c2fc2
Implement config reload support for TLS
...
Allows reloading TLS config. This includes enabling/disabling TLS,
rotating keys/certs, enabling/disabling client verification, etc.
2017-06-07 12:25:56 -05:00
Tyler Treat
687a20be1c
Implement config reload support for debug
...
Add config reload support for `debug` option.
2017-06-06 11:30:06 -05:00
Tyler Treat
cc30af8ede
Address code review feedback
2017-06-05 17:43:42 -05:00
Tyler Treat
c468abd15f
Merge branch 'master' of github.com:nats-io/gnatsd into config_reload
2017-06-05 13:41:04 -05:00
Tyler Treat
43ee0ce6df
Fix unit tests
2017-05-31 12:52:20 -05:00
Tyler Treat
b95dd5dfd0
Add tests around config reload
2017-05-30 21:09:35 -05:00