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
8a1ac81620
Merge pull request #535 from nats-io/config_reload_cluster_tests
...
Fixed some config reload cluster tests
2017-07-11 09:14:56 -06: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
f246c09411
Merge pull request #533 from nats-io/fix_comment
...
Fix error in test comment
2017-07-10 19:38:48 -05: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
8f52f53a90
Merge pull request #532 from nats-io/fix_windows
...
Fix "error opening file" errors in tests for Windows
2017-07-10 17:26:15 -06: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
5f1275c548
Merge pull request #531 from nats-io/update_travis
...
Update travis
2017-07-10 10:19:34 -06:00
Ivan Kozlovic
e8c027cdf5
Merge pull request #529 from nats-io/replace_armv5_with_armv6
...
Replaced ARMv5 with ARMv6 in cross_compile
2017-07-10 10:13:31 -06:00
Ivan Kozlovic
335da2cad0
Fixed missing then
...
This was incorrectly removed in #505
2017-07-07 12:31:04 -06:00
Ivan Kozlovic
7d6414dcf2
Run code coverage in script:
...
For all builds, we were running `go test -race`, and for a specific
version of Go, we were running the code coverage suite on success.
The code coverage uses `-covermode=atomic`, which is equivalent
of running with `-race`, so we will now run the code coverage
in the `script: ` section for that Go version and `go test -race`
for the other.
This prevents the double tests for the target Go version.
2017-07-06 17:35:35 -06:00
Ivan Kozlovic
9d932b9c6a
Replaced ARMv5 with ARMv6 in cross_compile
...
Related to #527
2017-07-06 17:07:58 -06:00
Ivan Kozlovic
b6e43c0dc1
Merge pull request #527 from nats-io/cross_compile_arm
...
[ADDED] Build for ARMv7
2017-07-06 09:45:10 -06:00
Ivan Kozlovic
aa36f37ff4
[ADDED] Build for ARMv7
...
The cross compile script compiled an ARM executable, but the ARM
default version varies based on the host, etc..
Made a change to the cross compile script to explicitly compile
ARMv5 and ARMv7.
2017-07-06 09:00:29 -06:00
Tyler Treat
43a4b7386a
Merge pull request #528 from nats-io/fix_some_tests
...
Fix some tests
2017-07-06 09:56:17 -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
Ivan Kozlovic
6a0830fbdc
Update Dockerfile's Go version to 1.7.6 [ci skip]
2017-06-30 12:25:01 -06:00
Tyler Treat
4d71987822
Merge pull request #524 from nats-io/enable_config_reload
...
Implement config reload
2017-06-28 16:36:26 -05: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
446cf96c76
Merge pull request #523 from nats-io/logtime_reload
...
Round out config reload
2017-06-28 14:35:37 -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
Peter Miron
52e97e37cb
removed sudo: false. as sudo: true is required and causing separate failures.
2017-06-28 12:52:46 -04:00
Peter Miron
cef37da380
added sudo: false to test .travis.yml failures.
2017-06-28 12:46:23 -04: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
de2f407680
Fix signal table in README
2017-06-27 13:56:03 -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
6eb20197a5
Add signaling and Windows service info to README
2017-06-27 12:26:17 -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
298feab690
Update windows/svc vendored package
2017-06-27 09:24:09 -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
ca1903b181
Update windows svc package
2017-06-26 12:11:55 -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