Commit graph

7851 commits

Author SHA1 Message Date
Samir Patel
bde29ec792 same3 2021-10-20 14:01:05 -05:00
Samir Patel
35dc4aa07a same2 2021-10-20 13:47:29 -05:00
Samir Patel
93a5cab3fc same 2021-10-20 13:05:14 -05:00
Samir Patel
86c45fba1c same 2021-10-20 12:49:49 -05:00
Samir Patel
9e2992424d same 2021-10-20 12:41:38 -05:00
Samir Patel
e2f3a645c1 try to fix yml syntax 2021-10-20 12:28:26 -05:00
Samir Patel
aa0d5040e5 remove @ from yaml 2021-10-20 12:21:05 -05:00
Samir Patel
a83b7f64a0 tests if docker gets built in gitlab 2021-10-20 11:20:20 -05:00
Fletcher Haynes
3605449b53
Merge pull request #1734 from molecula/gitlab
Migrated Cloud Build to GitLab
2021-10-15 10:07:31 -07:00
Fletcher Haynes
72a2689e4c Migrated Cloud Build to GitLab
This adds in a config YAML file for gitlab
2021-10-14 18:37:06 -07:00
nagamocha3000
263a5b86c9
Merge pull request #1733 from nagamocha3000/core-919-field-deadlock
CORE-919 Fix deadlock on field recreation after node restart
2021-10-14 18:20:25 +03:00
nagamocha3000
c6b7089332 Add comment as to why we are using os.Exit instead of panic 2021-10-14 18:07:02 +03:00
nagamocha3000
bce008df26 Fix deadlock on delete then recreate field after node restart 2021-10-14 17:04:09 +03:00
nagamocha3000
07a340ba9d Add test for deadlock on field recreation 2021-10-13 23:11:56 +03:00
tgruben
9d2d30feb7
Merge pull request #1718 from tgruben/sql2-type
Better type support in result set for looker (postgres) sql2 interface
2021-10-12 12:36:15 -05:00
Todd Gruben
4d4f64a339 address ben's comments 2021-10-12 11:21:14 -05:00
Todd Gruben
5d57d361f4 quite down 2021-10-12 10:50:03 -05:00
Todd Gruben
e4e0d13837 go mod tidy correction? 2021-10-12 10:40:32 -05:00
Todd Gruben
c4c7d91bf0 make linker happy 2021-10-12 10:24:19 -05:00
Todd Gruben
34dad863e2 wip 2021-10-12 10:20:24 -05:00
Todd Gruben
caee5680c3 wip 2021-10-12 10:20:24 -05:00
Todd Gruben
1a068cf0e2 added type support for looker; added intercept for yellowfin typelen query 2021-10-12 10:20:24 -05:00
Kasey C. Rodgers
c4a348724e
Merge pull request #1726 from molecula/csv-error-17
adds more detail to CSV ingest error message
2021-10-12 07:04:22 -07:00
Kasey C. Rodgers
25230693c5
Merge branch 'master' into csv-error-17 2021-10-08 13:55:58 -07:00
Kasey C. Rodgers
ded60af8c3
Update pilosa.go
Co-authored-by: Matthew Jaffee <jaffee@pilosa.com>
2021-10-08 13:46:17 -07:00
Fletcher Haynes
276dab6d12
Merge pull request #1728 from molecula/cicd
Added in various CI files
2021-10-08 12:39:08 -07:00
Fletcher Haynes
6eefd2d1f0
Merge branch 'master' into cicd 2021-10-08 12:18:26 -07:00
Fletcher Haynes
155855d97f Added in various CI files
This adds in configs for Cloud Build, Artifactory, and GitLab CI/CD.
2021-10-08 12:16:03 -07:00
tgruben
746212f63f
Merge pull request #1727 from tgruben/wip-partial-restore
partial backup/restore
2021-10-08 12:58:33 -05:00
Todd Gruben
71f1e6f1dd linter 2021-10-08 12:20:53 -05:00
kcrodgers24
b2c73b6a41 changes error message text for additional clarity 2021-10-08 09:47:16 -07:00
Todd Gruben
786bebe58b partial backup/restore 2021-10-08 10:50:52 -05:00
kcrodgers24
1f257aab9c adds more detail to CSV ingest error message 2021-10-08 08:27:49 -07:00
Ben Johnson
0d548094eb
Merge pull request #1724 from molecula/sql-inner-join
CORE-809: Aggregate COUNT() with INNER JOIN
2021-10-07 14:56:28 -06:00
Ben Johnson
98e7ade591 CORE-809: Aggregate COUNT() with INNER JOIN 2021-10-07 14:20:07 -06:00
seebs
39aa12b12a
Merge pull request #1723 from molecula/seebs/genfix
don't close storage after failing to open cache
2021-10-01 15:52:42 -05:00
Seebs
8433f81b68 don't close storage after failing to open cache
If the inner function that handles the open of storage and cache
fails, we close the fragment. If we closeStorage() before that,
then we can try to close the storage again, which causes a panic
when we try to mark the generation as Done again.

I was going to set f.gen = nil after marking it done, but I'm
not feeling safe about that -- there's too many places where
we check things about f.gen, and it seems unsafe. The generation
code should be removed at some point, because it all exists
as a workaround for not having any way to detect when reads are
"done", because we didn't want to do something huge and intrusive,
like adding the Tx system and requiring transactions to get
closed.
2021-10-01 11:02:45 -05:00
seebs
8ed922d30e
Merge pull request #1720 from molecula/fsync
Fsync
2021-10-01 10:58:13 -05:00
Seebs
9db87f78d0 fix go.mod/go.sum 2021-10-01 10:45:08 -05:00
Seebs
214a1492a8 kill off a ton more fsyncs
Performance of tests on MacOS has been atrocious for a while, and
a lot of that is fsync, so we're trying to make that optional.

To test all of this, I modified RBF to panic if anything tried to
open an RBF database without disabling fsync, and ran the tests that
way, and tracked down the various places this could still happen.

There's a lot of places in our tree where we were creating
test holders which were not getting created with fsync disabled, which
results in a surprisingly large number of points at which we end
up calling fsync in tests, which makes tests much slower than they
need to be. There's also a bunch of places where the flags don't get
propagated correctly; for instance, storage.fsync didn't propagate
to the RBFConfig.

We add an "fsync enabled" flag to OpenTranslateStoreFunc, so we can
tell translation stores that we don't need syncing, so the server's
config can be passed on appropriately.

More of the test code that sets things up is correctly configuring
that flag by default.

We also change the barely-used bolt storage backend to support this as
well.

With this done, the only calls to fsync left in a run of `go test -short`
in the top-level directory are from the zap logger in etcd, and consumed
around 0.03 seconds. The overall impact is that `go test -short`
went from "takes enough more than 10 minutes that i don't know how long
it takes" to about 2.5 minutes.
2021-10-01 10:45:08 -05:00
Seebs
e774acb4a0 disable a few more fsyncs in boltdb
boltdb has a couple of places where it fsyncs even when fsync is
disabled, this turns out to cost an amazing amount of time over
several thousand databases in our test run. In theory, they are
rare circumstances compared to updates; in practice, when you
open 256 partition key translation databases per server opened
and most of them never get written to, not so much.
2021-10-01 10:45:08 -05:00
Seebs
9ac4a5a8f4 don't necessarily fsync RBF databases even on close when fsync is disabled
In test runs, we open, and close, *huge* numbers of databases. Even
the single fsync on close for these ends up being expensive on some
hosts. *cough* Apple. At least in theory, writes delivered to the
disk are just as written whether or not you've hit fsync, as long
as the machine doesn't power off before getting to them. In the
circumstances where we disable fsync, that's fine.

Since we already have an fsync function for "fsync if it's
not disabled", use that.
2021-10-01 10:45:08 -05:00
Seebs
d5b61ee8e8 reduce etcd fsyncs during testing
We disable fsync more consistently in testing, including using
etcd's already-existing UnsafeNoFsync option to disable fsyncs
in the backing store boltdb used by etcd, to reduce runtime of
our tests on MacOS significantly.

Corresponding to this, we update etcd by one patch to pick
up a locally-invented patch which turns out to be nearly-identical
to the upstream fix for "disabling fsync makes boltdb not
even bother to write some data sometimes", which caused crashes
galore.
2021-10-01 10:45:08 -05:00
Samir Patel
231e11ffe8
Merge pull request #1719 from 54mir/54mir/log-roaring-migrate
CORE-874 Add darwin build to roaring-migrate-tool
2021-10-01 10:35:22 -05:00
tgruben
c750717f50
Merge branch 'master' into 54mir/log-roaring-migrate 2021-10-01 10:02:46 -05:00
nagamocha3000
7a597610e2
Merge pull request #1710 from nagamocha3000/core-849-prevent-node-from-blocking-replication-process
CORE-849 Test paused node picks up once cluster state is back to normal
2021-09-30 21:07:48 +03:00
nagamocha3000
c24a5e77ba Test paused node picks up once cluster state is back to normal
This adds the following test:
1. cluster comes up (node 1,2,3), status normal
2. Pause node 3
3. Insert keys making sure to filter out the keys that will go to the paused node
4. Wait for status to become degraded
5. Unpause node 3
6. Wait for status to get back to normal
7. Check that keys were replicated to all 3 nodes
2021-09-30 20:48:01 +03:00
seebs
4648aa9477
Merge pull request #1713 from molecula/seebs/core829
rework executor's per-shard union to use UnionInPlace
2021-09-30 11:26:31 -05:00
Samir Patel
a845d93a25 Add license headers 2021-09-30 09:28:33 -05:00
Samir Patel
5d070b47bb clean up 2021-09-29 15:57:31 -05:00