Commit graph

7585 commits

Author SHA1 Message Date
Preetha a61cdf139e
Merge pull request #3914 from alvin-huang/fix_vendor
remove old pkgs and put deps of missing packages in vendor.json
2018-02-24 10:01:12 -06:00
Alvin Huang 6bc9f6844f remove old pkgs and put deps of missing packages in vendor.json 2018-02-23 17:08:24 -05:00
Paul Banks f8147805d9
Merge pull request #3903 from hashicorp/build-fixes
[WIP] Attempt to find some low-hanging fruit for CI failures
2018-02-23 13:12:45 +00:00
Paul Banks e364c2169c
Merge pull request #3910 from hashicorp/fix-shell
Fix test running in non-bash shells
2018-02-23 13:12:18 +00:00
Kyle Havlovitz 1d4ced0d46
Add a link to the leader election guide in the lock API docs 2018-02-22 15:57:46 -08:00
Kyle Havlovitz 6637607ebe
Use GOTAGS in the vet make goal 2018-02-22 15:57:09 -08:00
Paul Banks f7ecbce39a
Fix test running in non-bash shells 2018-02-22 14:06:06 +00:00
Pierre Souchay 7c61a2eb05 Revert "Change .travis.yml, set parallel to 1 to pass tests"
This reverts commit e7d1668347c751104ccebcd384f9ab742d9e0f55.
2018-02-22 14:16:24 +01:00
Pierre Souchay 0eaf62ce68 Change .travis.yml, set parallel to 1 to pass tests 2018-02-22 09:27:55 +01:00
Pierre Souchay dfd28cbfb4 [Revert] travis tunning as requested by @banks 2018-02-22 08:38:42 +01:00
Paul Banks 0ee77a5e02
Merge pull request #3900 from hashicorp/fix-monitor-sigint-3891
Fixes #3891: agent monitor no longer unresponsive before logs stream.
2018-02-21 21:28:33 +00:00
Preetha Appan 687d29324b
Update CHANGELOG 2018-02-21 13:28:17 -06:00
Preetha f8f8a1a65f
Merge pull request #3909 from hashicorp/b-leaderloop-revokeonerror
Make sure revokeLeadership is called if establishLeadership errors
2018-02-21 13:23:31 -06:00
Preetha Appan 77d35f1829
Remove extra newline 2018-02-21 13:21:47 -06:00
Preetha Appan 573500dc51
Unit test that calls revokeLeadership twice to make sure its idempotent 2018-02-21 12:48:53 -06:00
Preetha Appan bd270b02ba
Make sure revokeLeadership is called if establishLeadership errors 2018-02-21 12:33:22 -06:00
Alex Dadgar 3b4d8437db
Merge pull request #3908 from hashicorp/f-improved-autopilot-shutdown
Improve autopilot shutdown to be idempotent
2018-02-21 10:19:48 -08:00
Alex Dadgar 535842004c Test autopilots start/stop idempotency 2018-02-21 10:19:30 -08:00
Paul Banks d638b246c4
Travis evaluates ENV before cloning git repo and cding so we need to delay gathering packages until the makefile 2018-02-21 12:54:23 +00:00
Paul Banks ed2ef973d6
Use relative paths as Travis doesn't setup GOPATH right 2018-02-21 12:27:30 +00:00
Paul Banks 7b448fdf43
Split the heavy test packages out to their own Jobs. 2018-02-21 12:20:33 +00:00
Paul Banks 2ad083d1bd
Try parallel packages but not tests 2018-02-21 11:58:51 +00:00
Alex Dadgar 4d99696f02 Improve autopilot shutdown to be idempotent 2018-02-20 15:51:59 -08:00
Pierre Souchay e6d85cb36a Fixed comments for function maxIndexForService 2018-02-20 23:57:28 +01:00
Pierre Souchay b26ea3c230 [Revert] Only update services if tags are different
This patch did give some better results, but break watches on
the services of a node.

It is possible to apply the same optimization for nodes than
to services (one index per instance), but it would complicate
further the patch.

Let's do it in another PR.
2018-02-20 23:34:42 +01:00
Pierre Souchay 903e866835 Only update services if tags are different 2018-02-20 23:08:04 +01:00
Jack Pearkes bcbf40c036 try enabling sudo in Travis to run builds in GCE
https://docs.travis-ci.com/user/reference/overview/#Virtualisation-Environment-vs-Operating-System
2018-02-20 10:52:51 -08:00
Paul Banks 3c41b5a235
Portability! 2018-02-20 15:48:18 +00:00
Paul Banks ffb9d3b340
Only output sparse lines to keep Travis happy while logging verbosely to disk 2018-02-20 15:33:36 +00:00
Paul Banks c5972f7e3a
Output from test as we run to stop travis killing us and try no parallelism to avoid timing issues on their contended CPUs 2018-02-20 13:16:53 +00:00
Pierre Souchay 6d6411d418 Improve travis parameters to avoid flacky tests, use -p 3 2018-02-20 02:14:58 +01:00
Pierre Souchay 42aeaa5d77 Improve travis parameters to avoid flacky tests 2018-02-20 02:07:01 +01:00
Pierre Souchay 56d5c0bf22 Enable Raft index optimization per service name on health endpoint
Had to fix unit test in order to check properly indexes.
2018-02-20 01:35:50 +01:00
Pierre Souchay 528de0ffff [Revert] Do not run tests in parallel since it breaks randomly
This is causing timeouts on Travis (more than 10min tests)
2018-02-19 23:34:57 +01:00
Pierre Souchay a849d1aa7f Do not run tests in parallel since it breaks randomly 2018-02-19 23:04:17 +01:00
Paul Banks 69ebbf3e79
Fixes #3891: agent monitor no longer unresponsive before logs stream.
The root cause is actually that the agent's streaming HTTP API didn't flush until the first log line was found which commonly was pretty soon since the default level is INFO. In cases where there were no logs immediately due to level for instance, the client gets stuck in the HTTP code waiting on a response packet from the server before we enter the loop that checks the shutdown channel from the signal handler.

This fix flushes the initial status immediately on the streaming endpoint which lets the client code get into it's expected state where it's listening for shutdown or log lines.
2018-02-19 21:53:10 +00:00
Pierre Souchay ec1b278595 Get only first service to test whether we have to cleanup index of a service 2018-02-19 22:44:49 +01:00
Pierre Souchay 523feb0be4 Fixed comment about raftIndex + use test.Helper() 2018-02-19 19:30:25 +01:00
Pierre Souchay a77b36bd4b Merge remote-tracking branch 'origin/master' into fix_blocking_queries_index 2018-02-19 18:41:22 +01:00
Pierre Souchay 4c188c1d08 Services Indexes modified per service instead of using a global Index
This patch improves the watches for services on large cluster:
each service has now its own index, such watches on a specific service
are not modified by changes in the global catalog.

It should improve a lot the performance of tools such as consul-template
or libraries performing watches on very large clusters with many
services/watches.
2018-02-19 18:29:22 +01:00
Paul Banks a8dc706775
Merge pull request #3894 from hashicorp/anubhavmishra-patch-1
fix typo
2018-02-19 14:14:45 +00:00
Anubhav Mishra 1891d9a0a6
fix typo 2018-02-18 23:13:57 -08:00
Edd Steel 35c2083422
Clarify comments 2018-02-17 17:46:11 -08:00
Edd Steel 61be181f6f Test every endpoint for OPTIONS/MethodNotFound 2018-02-17 17:34:13 -08:00
Edd Steel 6c33163959 Allow endpoints to handle OPTIONS/MethodNotFound themselves 2018-02-17 17:34:03 -08:00
Edd Steel 4dc9d2ebd7
Initialise allowedMethods in init() 2018-02-17 17:31:24 -08:00
Kyle Havlovitz 611b810a4b
Update CHANGELOG.md 2018-02-15 13:48:58 -08:00
Kyle Havlovitz 37343b6c5b
Merge pull request #3892 from hashicorp/coordinate-acl-fix
Fix the coordinate update endpoint not passing the ACL token
2018-02-15 13:47:40 -08:00
Kyle Havlovitz ea452c6032
Fix the coordinate update endpoint not passing the ACL token 2018-02-15 11:58:02 -08:00
Kyle Havlovitz fe26066f68
Merge pull request #3889 from arthurlogilab/patch-1
[demo/vagrant-cluster] upgrade from jessie to stretch
2018-02-14 11:06:25 -08:00