Commit Graph

7653 Commits (4b528b10a5f1a8f04347a326e567f3bd9848bc0b)

Author SHA1 Message Date
Pierre Souchay a05d38737c 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 d15f9d9f8c [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 99c9ea5905 Do not run tests in parallel since it breaks randomly 2018-02-19 23:04:17 +01:00
Paul Banks de58eb1820
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 4f10fae3c3 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 bac8fb046f Fixed comment about raftIndex + use test.Helper() 2018-02-19 19:30:25 +01:00
Pierre Souchay 6cb0846d58 Merge remote-tracking branch 'origin/master' into fix_blocking_queries_index 2018-02-19 18:41:22 +01:00
Pierre Souchay 73127ef407 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 4c90fbfd90
Merge pull request #3894 from hashicorp/anubhavmishra-patch-1
fix typo
2018-02-19 14:14:45 +00:00
Anubhav Mishra 0813175340
fix typo 2018-02-18 23:13:57 -08:00
Edd Steel d0f0d67b4a
Clarify comments 2018-02-17 17:46:11 -08:00
Edd Steel f770f360e9 Test every endpoint for OPTIONS/MethodNotFound 2018-02-17 17:34:13 -08:00
Edd Steel c5f0bb3711 Allow endpoints to handle OPTIONS/MethodNotFound themselves 2018-02-17 17:34:03 -08:00
Edd Steel f5af8b0f03
Initialise `allowedMethods` in init() 2018-02-17 17:31:24 -08:00
Kyle Havlovitz 1ce90e2a19
Update CHANGELOG.md 2018-02-15 13:48:58 -08:00
Kyle Havlovitz 12da56849a
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 139b98a427
Fix the coordinate update endpoint not passing the ACL token 2018-02-15 11:58:02 -08:00
Kyle Havlovitz 264b4c0e04
Merge pull request #3889 from arthurlogilab/patch-1
[demo/vagrant-cluster] upgrade from jessie to stretch
2018-02-14 11:06:25 -08:00
Kyle Havlovitz 93b422fcae
Merge pull request #3888 from hashicorp/fix-doc-typos
Fix a couple of minor typos found in docs.
2018-02-13 14:21:40 -08:00
Arthur Lutz f1d957c6ae
[demo/vagrant-cluster] upgrade from jessie to stretch 2018-02-13 20:01:36 +01:00
Paul Banks a216d136fe
Fix a couple of minor typos found in docs. 2018-02-13 16:21:12 +00:00
Edd Steel 77f19f7505
Support OPTIONS requests
- register endpoints with supported methods
- support OPTIONS requests, indicating supported methods
- extract method validation (error 405) from individual endpoints
- on 405 where multiple methods are allowed, create a single Allow
  header with comma-separated values, not multiple Allow headers.
2018-02-12 10:15:31 -08:00
Roger Berlind bad4f2f404
Updated Stale Reads section of DNS Caching Guide
I updated the content based on discussion with James Phillips in #team-connect on 2/8/2018.
2018-02-12 11:26:10 -05:00
Andrei Burd b608091014 adding human readability for dns requests debug log (#3751) 2018-02-11 09:02:28 -06:00
Tomáš Bedřich e4792dbbee Update check script exit code explanation (#3882)
Change misleading formulation which might imply, that any non-zero code is enough to mark check as failing.
(https://www.consul.io/docs/agent/checks.html#check-scripts)
2018-02-11 08:30:40 -06:00
Pierre Souchay 6022c7a209 Added ServiceMeta documentation in website source 2018-02-11 14:12:41 +01:00
Pierre Souchay b259b1609c Merge remote-tracking branch 'origin/master' into service_metadata 2018-02-11 13:20:49 +01:00
Pierre Souchay 9a57dfd68a Fixed TestSanitize unit test 2018-02-11 12:11:11 +01:00
Kyle Havlovitz c3e94970a0
Add gRPC fields to client api and agent check endpoint docs 2018-02-09 16:02:27 -08:00
Kyle Havlovitz 7acc1d6dbc
Puts the tree back into dev mode 2018-02-09 10:25:58 -08:00
Preetha Appan 707c5c7204
Updates download version to 1.0.6 2018-02-09 12:21:18 -06:00
Preetha Appan 9a494b5fb9
Release v1.0.6 2018-02-09 12:00:27 -06:00
Preetha Appan f9a418108e
Puts tree in release mode for 1.0.6 2018-02-09 11:45:56 -06:00
Preetha e0bed0fe8b
Update CHANGELOG.md 2018-02-09 11:41:35 -06:00
James Phillips 0960112cad
Bumps Go version back down to 1.9.3.
See #3879.
2018-02-08 19:42:53 -08:00
James Phillips 9ae9ab0fe9
Updates the change log. 2018-02-08 18:47:30 -08:00
James Phillips 4f664595e2
Merge pull request #3878 from hashicorp/issue-3877
Fixes a panic on TCP-based DNS lookups.
2018-02-08 18:45:54 -08:00
James Phillips 3724e49ddf
Fixes a panic on TCP-based DNS lookups.
This came in via the monkey patch in #3861.

Fixes #3877
2018-02-08 17:57:41 -08:00
James Phillips 94ea08d066
Adds a basic INTERNALS.md guide with some pointers into the code. 2018-02-08 17:05:36 -08:00
Pierre Souchay 66fdf445e8 Added unit tests for structs and fixed PartialClone() 2018-02-09 01:37:45 +01:00
Preetha d6030459cc
Update CHANGELOG.md 2018-02-08 17:23:17 -06:00
Preetha dfd484c090
Fix panic in azure go discover provider (#3876) 2018-02-08 16:46:33 -06:00
James Phillips 3a49730503
Merge pull request #3873 from hashicorp/travis-redux
Makes Travis build a little more reliable.
2018-02-07 21:18:01 -08:00
James Phillips 18335da27e
Bumps the standard retry up. 2018-02-07 18:03:39 -08:00
James Phillips beee26cd48
Makes Travis build run less parallel.
This makes it run less packages in parallel as well as less parallel tests per package.
2018-02-07 17:17:00 -08:00
James Phillips cc58166245
Updates the change log. 2018-02-07 17:11:03 -08:00
James Phillips e2392ae216
Merge pull request #3872 from hashicorp/go-1.9.4
Bumps Go version to 1.9.4.
2018-02-07 17:09:57 -08:00
James Phillips 1a5d06ba05
Bumps Go version to 1.9.4. 2018-02-07 17:09:48 -08:00
Preetha Appan 1ad26e8050
Puts tree back in dev mode 2018-02-07 15:25:36 -06:00
Preetha Appan 82c8e6c9f2
Update CHANGELOG 2018-02-07 15:25:17 -06:00