Commit graph

5199 commits

Author SHA1 Message Date
Travis
4af91faa7e
fix cacheSize when cacheType is none (and cacheSize is 0)
There was an edge case where setting cacheType to none
wouldn't zero out its cacheSize. This fixes that edge case.
2019-11-08 17:12:35 -06:00
Travis Turner
020b72abbf
reset fragment.rowCache after importValue 2019-11-06 13:19:12 -06:00
Matthew Jaffee
9d7ef20206
Merge pull request #2081 from jaffee/client-cert-tls
Fix authentication of client certs between cluster nodes
2019-10-25 09:27:53 -05:00
Matt Jaffee
b67999215c
fix loop lint 2019-10-22 12:58:56 -05:00
Matt Jaffee
63116e4a83
regenerate certs with 100 year expiration, add README 2019-10-22 12:56:57 -05:00
Matt Jaffee
2651bfbd88
test and fix authentication of client certs btwn cluster nodes
This change should have been adding the "GetClientCertificate"
function in server/tlsconfig.go. This is in addition to the
GetCertificate func which is only used by servers. It ended up being
much more involved for a few reasons:

1. We had no way of passing a configured HTTP client into the
translate store stuff.

2. Our cluster tests assumed http, not HTTPS, and didn't have any way
to pass the necessary configuration in.

3. I encountered what turned out to be an unrelated bug in
cmd/server_test.go which is why I moved "close(m.Started)" in
server/server.go. Basically, I was running something on port 10111
which caused the test to fail (because it was trying to bind to that),
but the failure was not immediately caught during server startup
because the m.Started channel got closed which allowed the test code
to fall through to where it called m.Close() which then got a nil
pointer exception because m.Handler had never been set up.

4. Our test code was assuming that it could create clients that
ignored the config, which meant they didn't do TLS. I added an
InternalClient() method to pilosa.Server to expose the configured
client.
2019-10-18 15:17:35 -05:00
seebs
0b358c6c80
Merge pull request #2074 from seebs/seebs/breakbad
use labeled targets for break statements
2019-10-11 16:05:44 -05:00
Seebs
ef40a5a219 double the nolint comments, double the checking 2019-10-11 15:17:51 -05:00
Seebs
6852df5255 version-bump golangci-lint
These were caught in part by newer versions of golangci-lint,
so let's bump our version of golangci-lint.

[Narrator: The new version would catch more problems, which
would require another commit to fix them.]
2019-10-11 14:50:37 -05:00
Seebs
e5ffed35a4 use labeled targets for break statements
break in a select in a for terminates the current case of the
select, but does not terminate the for loop. The worker queue
implementations for opening indexes/fields/views all suffered
from the same issue here.

Also fix a `<= 0` on a uint value.

All hail staticcheck.
2019-10-11 14:44:25 -05:00
Ben Johnson
1dad949142
Merge pull request #2042 from benbjohnson/per-index-translation-store
TranslationStore Refactor
2019-10-09 09:29:05 -06:00
Ben Johnson
e844e1ad75
Translation store refactor 2019-10-09 08:59:41 -06:00
Ben Johnson
f9e478722c
Upgrade to v2 (#2072)
Upgrade to v2
2019-10-09 07:34:42 -07:00
Ben Johnson
c7c9c1e1d7
v2.0.0
Co-authored-by: Cody Soyland <codysoyland@gmail.com>
2019-10-08 14:56:17 -06:00
Cody Soyland
61dace4527
Merge pull request #2069 from codysoyland/tls-autoreload
Auto-reload TLS certificates on SIGHUP
2019-10-04 10:15:12 -05:00
Cody Soyland
406016dac9 Update license information 2019-10-03 12:20:52 -05:00
Cody Soyland
b98a523b8b Add license header and fix lint warning 2019-10-03 09:59:49 -05:00
Cody Soyland
be91ee2103 Copy dependency into project and use pilosa's logger 2019-10-03 09:44:48 -05:00
Cody Soyland
4324059325 Auto-reload TLS certificates on SIGHUP 2019-10-02 17:10:32 -05:00
Cody Soyland
74b1bb853e
Merge pull request #2068 from codysoyland/mutual-tls
Add support for TLS client certificate verification and custom CA
2019-09-25 15:57:37 -05:00
Cody Soyland
8e06bb5ff3 return error instead of fatal 2019-09-25 15:15:33 -05:00
tgruben
876493c67d
Merge branch 'master' into mutual-tls 2019-09-25 14:49:56 -05:00
Matthew Jaffee
b42f4ae320
Merge pull request #2067 from jaffee/2066-create-field-race
2066 create field race
2019-09-24 14:57:15 -05:00
Cody Soyland
0ec9d3b7e6 Add support for TLS client certificate verification and custom CA 2019-09-24 11:09:58 -05:00
Matt Jaffee
07f8f5b8e0
fix concurrent field creation race condition 2019-09-23 07:54:01 -05:00
Matt Jaffee
ac8c4ed5fe
add concurrent field creation test 2019-09-23 07:51:04 -05:00
Cody Soyland
a24482e44d
Merge pull request #2065 from codysoyland/release-v1.4.0
Release v1.4.0
2019-09-17 17:17:01 -05:00
Cody Soyland
3f7067f895 Add Pilosa 1.4 upgrading instructions to docs 2019-09-17 16:33:35 -05:00
Cody Soyland
c8f8687a22 Fix typo 2019-09-17 16:01:21 -05:00
Cody Soyland
7e9d95f307 Add warning about int fields 2019-09-17 16:01:21 -05:00
Cody Soyland
6efde37fb4
Update CHANGELOG.md
Co-Authored-By: alanbernstein <alanaaronbernstein@gmail.com>
2019-09-17 15:59:28 -05:00
Cody Soyland
53365ed967 Release v1.4.0 2019-09-17 14:47:59 -05:00
Cody Soyland
69f3acac5c
Merge pull request #2064 from codysoyland/ci-updates
Update CirleCI build with Go 1.13 and run enterprise tests
2019-09-17 14:20:52 -05:00
Cody Soyland
3db1a91fa0 Add minimum Go version to go.mod 2019-09-17 13:40:16 -05:00
Cody Soyland
aa7030a646 Update Go version in Circle dependencies 2019-09-17 13:40:05 -05:00
Cody Soyland
8e208569e8 Remove build tag that break enterprise build 2019-09-17 13:34:28 -05:00
Cody Soyland
f8f9d0e3d1 Update golangci-lint 2019-09-17 13:33:54 -05:00
Cody Soyland
ce59aa102e Update CirleCI build with Go 1.13 and run enterprise tests 2019-09-17 12:58:35 -05:00
alanbernstein
f1216fd35d
Merge pull request #2054 from alanbernstein/query-language-fixes
Minor fixes to query language docs
2019-09-17 11:27:34 -05:00
alanbernstein
b17fd34ad9
Merge branch 'master' into query-language-fixes 2019-09-17 09:02:23 -05:00
alanbernstein
a99294a30e
Merge pull request #2063 from alanbernstein/docs-fixes-again
Add Groupby and Rows to glossary, fix small issues
2019-09-16 17:02:01 -05:00
Alan Bernstein
01cfd4adcf Add Groupby and Rows to glossary, fix small issues 2019-09-16 13:34:56 -05:00
alanbernstein
cc05218592
Merge pull request #2062 from alanbernstein/docs-typo-fixes
Minor formatting and typo fixes
2019-09-13 22:20:46 -05:00
Alan Bernstein
7eb68dd99a Minor formatting and typo fixes 2019-09-13 16:40:56 -05:00
Alan Bernstein
f7554a3cd4 Add GroupBy filter response, use sensible field names 2019-08-14 11:37:21 -05:00
Alan Bernstein
af954322cf Minor fixes to query language docs 2019-08-13 14:54:52 -05:00
seebs
bc9747cc0f
Merge pull request #1988 from seebs/startupspeed
WIP: address some startup speed and performance issues
2019-08-07 12:38:52 -05:00
seebs
484c51b6e0
Merge branch 'master' into startupspeed 2019-08-07 11:32:56 -05:00
Matt Jaffee
b84eada521
rename file and add license header 2019-08-07 08:09:04 -05:00
seebs
1e99c5346f
Merge pull request #2 from jaffee/startupspeed-breakout
generalize test strings and break out old UnmarshalBinary code
2019-08-05 18:01:16 -05:00