nagamocha3000
a6c157d5db
Fix errenous estimation that caused infinite loop
2021-03-02 20:36:52 -06:00
nagamocha3000
ef58b66e2c
Add ability to compose filter Row Call with Percentile
2021-03-02 20:36:52 -06:00
nagamocha3000
131d4fd97c
Make tests for median more extensive
2021-03-02 20:36:52 -06:00
nagamocha3000
72af5f37df
Remove redundant assignment to countCall.children since we already have the reference
2021-03-02 20:36:52 -06:00
nagamocha3000
3fb79b4d97
Fix errors on creating pql Call
2021-03-02 20:36:52 -06:00
nagamocha3000
d740a0cda7
Add execution for median
2021-03-02 20:36:52 -06:00
nagamocha3000
26fd199716
Add basic test for Percentile query
2021-03-02 20:36:51 -06:00
nagamocha3000
30a7e0f0da
Add pql syntax for Percentile
2021-03-02 20:36:51 -06:00
Matthew Jaffee
61e84a01dc
Merge pull request #1500 from jaffee/default-rbf
...
change default backend to RBF, remove separate RBF race target
2021-03-02 20:34:32 -06:00
Matt Jaffee
52a0c90cd6
change default backend to RBF, remove separate RBF race target
2021-03-02 17:50:56 -06:00
Matthew Jaffee
34e742d9c6
Merge pull request #1502 from niaow/fix-more-kv
...
fix more incorrect uses of KV
2021-03-02 17:50:29 -06:00
Nia Weiss
a698eeaac2
fix more incorrect uses of KV
2021-03-02 18:35:19 -05:00
Matthew Jaffee
b790d2cc5f
Merge pull request #1501 from travisturner/disco-bitdepth-test-fix
...
fix SaveMeta test; ensure storage backend env is used
2021-03-02 17:26:52 -06:00
Travis
3d10af9d47
fix SaveMeta test; ensure storage backend env is used
2021-03-02 17:19:45 -06:00
Matthew Jaffee
0568daaa14
Merge pull request #1486 from ajnavarro/disco/remove-unused-code-and-godoc
...
[DISCO] Add documentation and try to remove code.
2021-03-02 14:07:06 -06:00
seebs
2d1d8afdf3
Merge pull request #1490 from seebs/disco1443c
...
avoid deadlocks or crashes when clients cancel queries
2021-03-02 10:17:24 -06:00
Antonio Navarro Perez
274540ea0b
Requested changes
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-03-02 13:46:37 +01:00
Kuba Podgórski
0cb311f2b3
Fix Heartbeat TTL for disco test
2021-03-02 11:30:25 +01:00
Seebs
5258532157
bump usage guesstimate again
...
Same machine, a week later: Got 618k instead of 500k. I'm doomed.
2021-03-01 14:20:18 -06:00
Seebs
35d360c68d
fix up executor shard-counting logic a bit better
...
Ensure that mapReduce always waits on its ErrGroup, even if it wants to return
early due to a failure somewhere. Also check logic a bit more carefully on
the error returns; we don't want a transient failure from one node to result
in the whole query failing, we just want it to retry on the next node, so that
shouldn't cancel the whole ErrGroup.
2021-03-01 14:03:49 -06:00
Antonio Navarro Perez
f67db5035e
Add part of cache back.
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-03-01 19:09:31 +01:00
Antonio Navarro Perez
50fd72f980
Apply suggestions from code review
...
Co-authored-by: Travis Turner <travis@pilosa.com>
2021-03-01 18:41:58 +01:00
Antonio Navarro Perez
6f5770bf65
Fix nil pointer exception
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-03-01 18:39:04 +01:00
Antonio Navarro Perez
ea7643f8bf
Add documentation and try to remove code.
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-03-01 16:25:32 +01:00
Nia
a906a9036b
Merge pull request #1482 from niaow/force-transactional-etcd-reads
...
Force transactional etcd reads
2021-02-26 19:03:21 -05:00
Travis Turner
4add6134b8
Merge pull request #1468 from travisturner/disco-clustertests
...
adjust clustertests to have etcd config
2021-02-26 17:49:20 -06:00
seebs
d455fb3105
Merge pull request #1476 from seebs/disco1443b
...
mapper/mapReduce/worker: always wait for jobs to be finished
2021-02-26 17:35:02 -06:00
Nia Weiss
4be4097edd
force transactional etcd reads
2021-02-26 18:29:01 -05:00
Travis
ef40bbb617
renew heartbeat lease if the lease expires while a node is unavailable
2021-02-26 16:15:06 -06:00
Travis
d416b88dda
adjust clustertests to have etcd config
2021-02-26 16:15:06 -06:00
Nia
590dc3b226
Merge pull request #1478 from niaow/start-http-after-server-open
...
Start HTTP after server open
2021-02-26 16:04:34 -05:00
Seebs
7d15fc2f26
don't reduce errors with non-errors
...
if we got an error, we don't have to merge it. so either ctx.Err or
resp.err being non-nil means we shouldn't be reducing, but we still need
to grab the responses to make sure we waited for them all.
2021-02-26 14:26:02 -06:00
Nia Weiss
4340e90396
start HTTP handler after server initialization
...
This fixes a variety of bugs where API requests would read uninitialized state, causing crashes or race conditions.
Co-authored-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-02-26 15:23:47 -05:00
Nia
d205ea5441
Merge pull request #1442 from niaow/fix-foreignindex-race
...
Fix a race condition when deferring foreign-index initialization
2021-02-26 14:30:18 -05:00
Seebs
29fddd40f6
mapper/mapReduce/worker: always wait for jobs to be finished
...
It's not enough to cancel jobs so their goroutines *will* exit; we have
to be certain that they *have exited* before we finish returning from,
e.g., mapReduce(), or a query can "complete" at a time when there are
still running goroutines accessing data that we're about to invalidate
when we terminate the Qcx.
A better solution would integrate this logic and control into the Qcx
and pass it through everything, rather than having the Qcx bypass
the mapper/mapperLocal and be passed into the mapFn/reduceFn via
closures. But a better solution would be a lot larger.
2021-02-26 12:47:02 -06:00
Nia
65e4496ea7
Merge pull request #1449 from niaow/deferredcreateshard
...
Defer cluster messages until startup
2021-02-26 08:13:51 -05:00
Nia Weiss
3fbf6993d0
defer cluster messages until startup
2021-02-25 16:01:49 -05:00
Nia Weiss
ca918c187d
fix a race condition when deferring foreign-index initialization
2021-02-25 16:00:56 -05:00
Kuba Podgórski
a1d4418236
Merge pull request #1464 from kuba--/etcd-shared-client
...
One shared etcd client
2021-02-25 19:45:22 +01:00
Kuba Podgórski
50cbb72619
Remove comments/leftovers
2021-02-25 19:00:52 +01:00
Kuba Podgórski
49dc48f057
Switch to server API for KV Get/Range
2021-02-25 18:34:24 +01:00
Kuba Podgórski
aa15e08558
Reduce number of Txn
2021-02-25 18:12:13 +01:00
Kuba Podgórski
a5f3bce3bf
Use hookedClient
2021-02-25 16:56:30 +01:00
Kuba Podgórski
1623007af1
Add waitgroup - don't close the server wait for all keepaliveFunc
2021-02-25 13:41:10 +01:00
Kuba Podgórski
23f901635e
Revert "Remove etcd cache"
...
This reverts commit 0f4b273d3a .
2021-02-25 13:41:10 +01:00
Kuba Podgórski
0f4b273d3a
Remove etcd cache
2021-02-25 11:30:09 +01:00
Kuba Podgórski
1fc3d37134
Merge branch 'disco' into etcd-shared-client
2021-02-25 09:42:00 +01:00
Kuba Podgórski
01e0c44069
One shared etcd client
2021-02-25 09:39:44 +01:00
Nia
0cfd4e9780
Merge pull request #1463 from niaow/dontcachestate
...
Stop caching node state in Etcd
2021-02-24 18:28:03 -05:00
Nia Weiss
8b645e02a2
stop caching node state in Etcd
2021-02-24 17:19:27 -05:00