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
54e23a3989
Enable syslog when running as Windows service
...
This writes logs to the Windows event log.
2017-06-28 14:16:26 -05:00
Tyler Treat
2a7af1b892
Move mpay field for memory alignment
2017-06-28 11:29:10 -05:00
Tyler Treat
901a5c7122
Address CR feedback
2017-06-28 11:05:02 -05:00
Tyler Treat
032b0b4cd7
Address CR feedback
2017-06-27 16:53:18 -05:00
Tyler Treat
84d00a0395
Add comment about random map iteration
2017-06-27 16:09:14 -05:00
Tyler Treat
dd3ad77ea8
Replace reloaded varz field with config_load_time
2017-06-27 14:33:06 -05:00
Tyler Treat
19d17b2ab3
Fix unit test
2017-06-27 12:58:13 -05:00
Tyler Treat
99015c4117
Allow specifying service name for Windows signaling
2017-06-27 12:42:48 -05:00
Tyler Treat
82f92e0939
Refactor signalling and add tests
2017-06-27 11:25:34 -05:00
Tyler Treat
4b05302e93
Make pid resolution more robust
2017-06-27 10:09:29 -05:00
Tyler Treat
2e6421683b
Consolidate duplicate switch cases
2017-06-27 09:38:01 -05:00
Tyler Treat
4eea6f1557
Fix custom windows service control code
2017-06-26 17:39:17 -05:00
Tyler Treat
15ac59211a
Use custom code to signal log file reopen
2017-06-26 15:18:57 -05:00
Tyler Treat
81e94ae4f1
Implement Windows service signalling
2017-06-26 11:41:53 -05:00
Tyler Treat
96ca09ee21
Add --signal flag
2017-06-26 10:50:23 -05:00
Tyler Treat
09550f0f09
Handle run errors
2017-06-23 13:56:32 -05:00
Tyler Treat
6708c6cdfd
Implement gnatsd as a Windows service
2017-06-23 11:08:52 -05:00
Tyler Treat
cd18d848f8
Add signal for handling config reload
2017-06-23 10:03:29 -05:00
Tyler Treat
9adfae11a2
Add reload count to server for monitoring
2017-06-23 10:03:01 -05:00
Tyler Treat
a0f32a156d
Fix grammatical mistake in docstring
2017-06-22 17:03:59 -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
d60085d7c3
Replace mpay locking with atomic
2017-06-22 16:17:31 -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
06d9aa7739
Fix race condition
2017-06-19 15:14:31 -05:00
Tyler Treat
f98e327b74
Fix test config
2017-06-19 15:02:02 -05:00
Tyler Treat
2ea1afd82d
Add clustering to config reload tests
2017-06-19 14:40:57 -05:00
Tyler Treat
564f498fe8
Add config reload TODO
2017-06-19 14:32:26 -05:00
Tyler Treat
182f5ce53b
Add tests around cluster reload
2017-06-19 14:18:29 -05:00
Tyler Treat
84c8c511e4
Pass auth check if cluster username is not set
2017-06-19 14:18:08 -05:00
Tyler Treat
c97a4f6e45
Ignore NoLog option in config reload
2017-06-19 14:17:58 -05:00
Tyler Treat
50e9d0fa87
Close unauthorized routes when authorization changes
2017-06-16 16:45:59 -05:00
Tyler Treat
56ab619498
First pass at implementing cluster reload
2017-06-16 15:53:07 -05:00
Tyler Treat
1e964e4aab
Address CR feedback
2017-06-14 16:48:11 -05:00
Tyler Treat
e4ccaa25bd
Remove unused switch case
2017-06-14 12:09:01 -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
4675603b60
Remove impossible branch logic
2017-06-13 16:23:07 -05:00
Tyler Treat
44966230db
Handle permissions changes on config reload
2017-06-13 16:04:38 -05:00
Peter Miron
c655c2939e
added additional opts tests to increase coverage.
2017-06-12 18:28:53 -04:00