Commit Graph

327 Commits (79d349d5435c91962611c6b23739f3cb4dab2504)

Author SHA1 Message Date
Christopher M. Wolff 2535d54087
chore: update to Flux v0.60.0 (#16936) 2020-02-19 15:02:21 -08:00
Christopher M. Wolff 16fc8dfecd
build: remove -tags libflux and FLUX_PARSER_TYPE from build and circleci config (#16883)
Also, update to latest algo-w flux
2020-02-19 07:59:05 -08:00
Jonathan A. Sternberg 8c6cf672e2
build(flux): update Flux to v0.59.6 (#16856) 2020-02-13 16:09:23 -06:00
Christopher Wolff 2e073fd955 chore: update to latest flux@feat/use-algo-w 2020-02-11 10:18:44 -08:00
Christopher Wolff 337595c3d2 chore: update to latest flux@feat/use-algo-w 2020-02-10 09:49:01 -08:00
Christopher Wolff 2bc8d49bcb chore(go.mod): update go.mod to point at latest flux@feat/use-algo-w 2020-01-31 10:44:08 -08:00
Christopher M. Wolff 0f3aabc954
refactor(query): let influxdb build against algo-w branch (#16673) 2020-01-24 14:36:09 -08:00
Jonathan A. Sternberg b8079278eb
build(flux): update Flux to v0.59.5 (#16669) 2020-01-24 15:17:16 -06:00
Johnny Steenbergen f22201f5a8 fix(pkger): update yaml dep and trim space for all queries exported by pkger
attempt at fixing an issue that is hard to reproduce. the dep library says it
is fixed but we are still seeing issues.

closes: #16632
2020-01-22 17:44:56 -08:00
Jonathan A. Sternberg 0ec9a8b6b8
build(flux): update Flux to v0.59.4 2020-01-21 11:27:06 -06:00
Faith Chikwekwe 2f6c6791b9
build(flux): update Flux to v0.59.3 2020-01-21 11:26:46 -06:00
Johnny Steenbergen fe12fd051e feat(pkger): add jsonnet support for package files 2020-01-13 09:55:08 -08:00
j. Emrys Landivar (docmerlin) fb2080f223 feat(tasks): enable full flux durations for every and offset options 2020-01-06 15:42:01 -06:00
Jonathan A. Sternberg 6d22f81904
build(flux): update Flux to v0.58.0 2020-01-06 14:09:16 -06:00
Jonathan A. Sternberg 9194d89bbc
feat(query/stdlib): prevent a filter push down if the filter needs to keep empty tables (#16295)
The storage engine isn't capable of sending back empty tables when a
series is empty. Because of this, we disable the push down and let flux
do the filtering in the case where there is a filter and it is specified
to keep the empty tables.
2020-01-06 12:23:31 -06:00
Kelvin Wang f8c0ea032c fix(cmd/influx): show see help, instead of usage 2019-12-31 14:52:55 -05:00
Jonathan A. Sternberg 791cf15cd3
build(flux): update Flux to v0.57.0 2019-12-10 13:26:10 -06:00
Chris Goller 632b93ac6b
refactor(http): normalize user-agent names
User-Agent cardinality is unbounded; this attempts to
decrease the number quite a bit.
2019-12-04 15:02:00 -06:00
Jonathan A. Sternberg 2d46f427ad
build(flux): update Flux to v0.55.1 (#16069) 2019-12-02 14:32:16 -06:00
George 3dbb9c0fd2
feat(tracing): dont trace spans with full request paths as operation name in ExtractFromHTTPRequest (#15971)
* feat(tracing): dont trace spans with full URL path names in ExtractFromHTTPRequest

* chore(multiple): replace all occurrences of julienschmidt/httprouter with influxdata/httprouter
2019-11-25 15:22:19 +01:00
Stuart Carnie 36b0dc7da3
chore(vendor): Add jsonparser dependency for filter predicates
* Added jsonparser helper package to decode influxdb.ID
2019-11-22 10:34:20 -07:00
Johnny Steenbergen f6dbfec346 feat: import jsteenb2/testttp directly into pkg 2019-11-12 14:14:40 -08:00
docmerlin (j. Emrys Landivar) 56d406afe8 fix(tasks): fix every parsing 2019-11-12 14:46:19 -06:00
Christopher M. Wolff 291f7b3e19
build(flux): update Flux to v0.54.0 (#15851) 2019-11-12 08:38:57 -08:00
Johnny Steenbergen 2902638c8a feat(pkger): add pgker http server to the api handler 2019-11-07 09:44:24 -08:00
Johnny Steenbergen 515b3f542a feat(pkger): add support for the dry run and apply pkger http endpoints
not included is the pretty error handling for the pkger.ParseErr handling
2019-11-07 09:44:24 -08:00
Johnny Steenbergen 848875e64b feat(pkger): add create service and http functionality for a package
supports as of this just the basic metadata being setup on the initial post
2019-11-07 09:44:24 -08:00
jlapacik 1d4c7e811d
build(flux): update Flux to v0.53.0 (#15754) 2019-11-04 16:52:17 -08:00
Johnny Steenbergen a03c497015 feat(pkger): add dry run functionality
does not apply to mappings, will apply mappings no matter what. we need to
remedy the uniqueness of resources from the API side. Applies to labels,
label mappings,
2019-11-01 11:59:09 -07:00
Johnny Steenbergen 52647af79e feat(pkger): add groundwork for manifest to support bucket resource 2019-11-01 11:59:09 -07:00
Lorenzo Affetti b8dfd5a2f3 build(flux): update Flux to v0.52.0 2019-10-30 16:47:03 +01:00
Yiqun Zhang 2be19560a9 build(flux): update Flux to v0.51.0 2019-10-28 11:24:12 -04:00
Jonathan A. Sternberg 06f7418ab6
build(flux): update Flux to v0.50.2 (#15566) 2019-10-24 14:35:31 -07:00
Jonathan A. Sternberg 10247e7849
build(flux): update Flux to v0.50.0 2019-10-15 09:18:39 -05:00
Jonathan A. Sternberg 74829b025c
refactor(query/stdlib): update flux end to end tests for package subtests (#15392) 2019-10-15 09:18:21 -05:00
Jonathan A. Sternberg 8ac8ecdb31
feat(query/control): include variable memory limits for the controller (#15300)
The controller now supports setting an initial memory limit and setting
a maximum amount of memory that the controller may use separately from
the memory quota per query and the concurrency quota.

This allows the controller to increase the concurrency quota to a larger
number while setting the maximum amount of memory to a lower amount than
would be required for all queries to use 100% of their allowable memory.

Functionally, this means that a query will have a soft limit for an
initial memory byte quota that a query is guaranteed to have, a shared
pool that it is allowed access to in the case it uses more, and a hard
limit that no query may exceed to prevent runaway queries from taking
over the entire pool.

This change is completely backwards compatible with older configurations
as the new options will default to values that mimic the old behavior
where a query is allocated the full amount of its memory quota and the
maximum amount of memory is based on the concurrency quota and this
maximum memory quota.

In addition to the above, this also fixes a bug in the controller that
allowed it to run more than its concurrency as executing queries. This
happened when the results had finished being sent by the executor, but
the query had not yet been read and/or serialized. The executor would be
freed up and would take the next query even though the previous query
hadn't yet been finalized with `Done()`.
2019-10-15 09:18:00 -05:00
docmerlin (j. Emrys Landivar) 4b732acb3b feat(tasks): switch the new scheduler to use clock instead of custom time mocker 2019-10-14 14:02:25 -05:00
j. Emrys Landivar (docmerlin) 3fd94cbb69 feat(task): new scheduler now with more tests 2019-10-14 14:02:25 -05:00
Jonathan A. Sternberg 7f5a72539f
build(flux): update Flux to v0.49.0 2019-09-24 09:54:54 -05:00
Lorenzo Affetti df9e20eb28 build(flux): update to Flux v0.48.0 2019-09-20 17:43:46 +02:00
Lorenzo Affetti 9532c9d170 fix(testing): skip unbounded e2e test 2019-09-19 17:51:45 +02:00
Lorenzo Affetti 2a6cfe3c78 fix(query): inject dependencies in context for BucketAccessed 2019-09-19 17:31:13 +02:00
Lorenzo Affetti ab835c8e0e
refactor(dependencies): use new dependency injection framework (#15174)
refactor(dependencies): use new dependency injection framework
2019-09-19 17:01:17 +02:00
Lorenzo Affetti 7cca079c5a build(flux): update Flux to v0.47.0 2019-09-13 18:18:48 +02:00
Lorenzo Affetti 8788636229 build(flux): update Flux to v0.46.2 2019-09-12 17:52:24 +02:00
jlapacik 669439d08a build(flux): update Flux to v0.46.1 2019-09-12 07:22:16 -07:00
Christopher M. Wolff b0b3121517
build(flux): update to Flux v0.45.1 (#15082) 2019-09-10 09:03:33 -07:00
Nathaniel Cook 83cb7fce3b build(flux): update to Flux v0.44.1 2019-09-06 11:37:32 -06:00
Nathaniel Cook cd2d9cb031 build(flux): update to Flux v0.44.0 2019-09-05 16:51:33 -06:00
Nathaniel Cook ed01f5a16f build(flux): update to Flux v0.43.1 2019-09-05 14:22:56 -06:00
Mark Rushakoff 91864a3afa chore: upgrade editorconfig-checker
This avoids a module error in Go 1.13 from a poorly tagged transitive
test dependency that looks like:

gopkg.in/stretchr/testify.v1/assert: go.mod has non-....v1 module path
"github.com/stretchr/testify" at revision v1.4.0
2019-09-05 08:55:49 -07:00
Mark Rushakoff c2f847299c ci: use latest staticcheck
We were still referring to megacheck in tools.go; this confused
dependent projects also using staticcheck.
2019-09-04 16:34:45 -07:00
Nathaniel Cook 4cd136721c build(flux): update to Flux v0.43.0 2019-09-04 13:01:08 -06:00
Nathaniel Cook 454003841a build(flux): upgrade to Flux v0.42.0
Skips a test that requires special dependencies to pass.
2019-08-30 13:02:30 -06:00
Nathaniel Cook 3e16be7c14 build(flux): update to Flux v0.41.0 2019-08-26 16:46:17 -06:00
Nathaniel Cook dfc28335ea refactor(query/dependencies): update to new Flux dependencies defaults 2019-08-26 16:46:17 -06:00
Jonathan A. Sternberg c7bbfbe293 refactor(notification): rename alerts package to monitor in flux (#14788) 2019-08-26 16:46:17 -06:00
Adam fcfdd2b1ef build(flux): update to latest flux master 2019-08-26 16:46:17 -06:00
Adam 945b68b8fd fix(query): finish refactoring the repl and inject the secret service as a dependency 2019-08-26 16:46:17 -06:00
Adam a91a8df501 build(flux): get latest flux 2019-08-26 16:46:17 -06:00
Nathaniel Cook 3c314a999c build(flux): update to Flux v0.40.2 2019-08-22 13:11:13 -06:00
docmerlin (j. Emrys Landivar) 19fe098888 chore(ci): update go-tools 2019-08-22 10:55:05 -05:00
Nathaniel Cook cfebb3b5a0 build(flux): update to Flux v0.40.1 2019-08-21 09:59:01 -06:00
Nathaniel Cook 402068cdac build(flux): update to Flux v0.40.0 2019-08-21 09:59:01 -06:00
Nathaniel Cook 1b8ab3c2f2 fix(query): remove http.to and update test cases that used it 2019-08-21 09:59:01 -06:00
Christopher M. Wolff c61646d0f4 feat(query/stdlib): add an experimental "to" function (#14664) 2019-08-21 09:59:01 -06:00
Nathaniel Cook cd2bfb9b22 refactor(query/stdlib): update tests for new Flux test name conventions (#14669) 2019-08-21 09:59:01 -06:00
Christopher Wolff 92bb511982 chore: update to latest Flux 2019-08-21 09:59:01 -06:00
Nathaniel Cook 25d6de0ba8 build(flux): update Flux to v0.39.0 2019-08-13 13:54:34 -06:00
Lorenzo Affetti bf4cddac15 chore: update Flux to v0.38.0 2019-08-06 12:48:04 +02:00
Christopher Wolff 3855ad9f33 chore: update Flux to v0.37.2 2019-07-24 12:57:37 -07:00
Christopher Wolff 63c0f40548 fix(query): use auth-wrapped org and bucket services for query 2019-07-19 20:02:53 -06:00
Nathaniel Cook 54ea9d94dd chore(flux): update flux to v0.36.2 2019-07-12 11:15:58 -06:00
Nathaniel Cook e59c72b245 fix(tests): update e2e tests for new flux executetest methods 2019-07-12 11:15:58 -06:00
Nathaniel Cook c524953af1 chore: update flux to v0.36.1 2019-07-12 11:15:58 -06:00
Lorenzo Affetti fc21859f41 chore: update Flux to v0.35.1 2019-07-03 18:34:55 +02:00
Nathaniel Cook 11a4b911b0 fix(query/influxql): use explicit mergeKey parameter 2019-07-03 09:48:31 -06:00
Adam 4faf2a24de chore: update Flux to v0.34.2 2019-06-27 13:28:52 -04:00
Jonathan A. Sternberg 2c32826b72
deps: upgrade to flux v0.34.1 (#14206) 2019-06-26 11:31:45 -05:00
Jonathan A. Sternberg 9d91ac7a2c
deps: upgrade to flux v0.34.0 (#14205)
https://github.com/influxdata/flux/releases/tag/v0.34.0
2019-06-26 10:14:50 -05:00
Chris Goller 14e7daa6e4
fix client tracing propagation from doubly recording (#14204)
Closes #14203

* chore(vendor): update to opentracing 1.1.0

* fix(http): finish client span

* fix(http): remove extra span injection
2019-06-26 00:48:15 -05:00
Adam 90e4f3111d Tidy go modules 2019-06-19 11:58:02 -04:00
Adam 1d84bf6516 fix(stdlib/testing): skip flaky test regexp_replaceAllString 2019-06-18 16:25:59 -04:00
Christopher Wolff 67236ea887 refactor(http): make http.Query use FluxCompiler when query is passed as text 2019-06-18 11:45:17 -07:00
Christopher Wolff 8800e40eef chore: update Flux to v0.32.1 2019-06-10 10:54:55 -07:00
Jonathan A. Sternberg c446421445
chore(flux): update to Flux v0.32.0 2019-06-06 11:26:44 -05:00
Jonathan A. Sternberg 65dabb0774
Merge branch 'master' into flux-staging 2019-06-06 11:22:04 -05:00
Giacomo Tirabassi fd4d593e21
updated vault dependencies to own module (#14045) 2019-06-03 15:41:02 +02:00
Christopher Wolff e19bcf235c chore: update go.mod to point at latest flux master 2019-05-30 16:29:31 -07:00
Jonathan A. Sternberg c560e27e1d
chore(flux): update to Flux v0.31.1 (#14015) 2019-05-29 15:48:23 -05:00
Jonathan A. Sternberg ebdbc394fc
chore(flux): update to Flux v0.31.0 (#14002)
* refactor(storage/reads): update the table implementation for the interface change (#13994)

* chore(flux): update to Flux v0.31.0
2019-05-28 17:24:26 -05:00
Nathaniel Cook faa5fddf7b Merge branch 'master' into flux-staging 2019-05-15 10:12:14 -06:00
Nathaniel Cook bbf7a771c9 chore(flux): update to Flux v0.29.0 2019-05-15 10:03:48 -06:00
Robert-André Mauchin 5079314ab5 chore(dep): update kin-openapi to v0.2.0
The API slightly changed: LoadSwaggerFromYAMLData is now replaced
by LoadSwaggerFromData.
See: https://github.com/getkin/kin-openapi/pull/67

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2019-05-15 00:23:32 +02:00
jlapacik ccdd83422d dep: update flux 2019-05-07 09:59:58 -07:00
Nathaniel Cook 7047172568 chore(dep): update to Flux v0.28.3 2019-05-01 09:45:53 -06:00
Jonathan A. Sternberg 9961969ff8
deps: update Flux to v0.28.2 2019-04-26 16:03:06 -05:00
Christopher Wolff 26f93b0886 chore: update Flux to v0.28.1 2019-04-25 11:23:35 -07:00
Nathaniel Cook 4c05b10cbe chore(dep): update Flux to v0.28.0 2019-04-24 13:09:06 -06:00
Nathaniel Cook 2ca8ebe34d chore(dep): update Flux to v0.27.0 2019-04-22 17:02:47 -06:00
Christopher M. Wolff c9f94d4ee8
refactor(query): add parameters to query controller config (#13554)
Recently added to controller config:
  ConcurrencyQuota
  MemoryBytesQuotaPerQuery
  QueueSize
2019-04-22 12:11:32 -07:00
Nathaniel Cook 63cb413971 chore(dep): update Flux to v0.26.0 2019-04-18 10:51:35 -06:00
Nathaniel Cook 8b918539db Merge branch 'master' into flux-staging 2019-04-17 12:26:10 -06:00
Mark Rushakoff 3507027dc0 ci: use go1.12 on CircleCI
And update go.sum from a go1.12 mod tidy.
2019-04-12 13:38:48 -07:00
Christopher Wolff a908d9e287 chore: update flux dependencies 2019-04-12 07:15:27 -07:00
Christopher M. Wolff dec149d22d refactor(query): update testing InfluxQL testing compiler to use new interface (#13107)
Fixes influxdata/flux#1099.
2019-04-12 07:15:27 -07:00
Ryan Betts d2df0fc71b chore: run go mod tidy with go 1.11.6 2019-04-08 15:25:07 -04:00
Ryan Betts 900edc4938 chore: update Flux to 0.25.0 2019-04-08 14:24:54 -04:00
Jeff Wendling 5dc3e52fd9 chore: bump gogo/protobuf and regenerate
It had been bumped previously from v1.1.1 to v1.2.0 and nothing was
regenerated. This bumps it to v1.2.1 and regenerates.
2019-04-03 15:42:33 -06:00
Jonathan A. Sternberg d1f7ae1af7
deps: upgrade to flux 0.24.0 2019-04-01 11:01:59 -05:00
Christopher M. Wolff f945b84642
refactor(stdlb): Change plan.PlanNode to plan.Node (#12906) 2019-03-27 14:19:04 -07:00
Nathaniel Cook ca6f2ad0c6 Merge branch 'master' into flux-staging 2019-03-27 09:42:48 -06:00
Lorenzo Affetti a49bb73c04 chore: update Flux to v0.23.0 2019-03-26 18:04:18 +01:00
Edd Robinson eff263694b
Merge pull request #12847 from influxdata/er-cache-snapshot-time
Snapshot cache based on age
2019-03-26 11:01:30 +00:00
Mark Rushakoff 7ecb7a23a4 chore: update staticcheck to latest
And fix newly discovered errors.
2019-03-25 10:20:59 -07:00
Edd Robinson aa4e652e43 Add reason to total compaction metric
This commit adds a reason label to the total compaction metric. For
snapshots, the reason will indicate why the cache was snapshotted. For
other compactions, the reason label will be blank.
2019-03-25 15:25:03 +00:00
jlapacik adbfddb0ef
Flux staging (#12760)
* deps: update flux-staging to master of both influxdb and flux (#12698)

* test(stdlib): skip failing window test due to new trigger optimization (#12708)

* chore: update Flux to v0.22.0
2019-03-19 22:19:24 -07:00
jlapacik 042c4eb09e chore: update Flux to v0.22.0 2019-03-19 15:46:37 -07:00
Edd Robinson f383ec9225 Add ability to use report-tsm programmatically 2019-03-19 14:29:25 +00:00
Jonathan A. Sternberg 862f168967
deps: update flux-staging to master of both influxdb and flux (#12698) 2019-03-18 16:13:02 -05:00
Stuart Carnie e8045ae187
feat(influxd): Migrate influxd binary to cobra Command package
This commit consists of several improvements or changes:

* migrate the influxd binary to cobra.Command
* introduce a default run sub-command to start the server
* register the run sub-command flags with viper
  to maintain compatibility with the existing behavior of automatic
  binding of flags to environment variables.

Closes #12602
2019-03-14 09:23:53 -07:00
Nathaniel Cook 23b409209b chore(flux): update to Flux v0.21.4 2019-03-06 12:51:15 -07:00
Nathaniel Cook da17ba0a9e chore(flux): update to Flux v0.21.3 2019-03-05 14:52:52 -07:00
Jacob Marble b9c7ec439e
feat(influxd): Tracing refactor (#12318)
* feat(launcher): Tracing to log disabled by default

* remove traceLogger and use opentracing directly

* add Jaeger tracing

* go vet && go fmt
2019-03-04 11:48:11 -08:00
Nathaniel Cook d6c46b5721 chore(flux): update to Flux v0.21.2 2019-03-01 11:12:51 -07:00
Nathaniel Cook c143065298 chore(flux): update to Flux v0.21.1 2019-03-01 10:46:58 -07:00
jlapacik d08f5fe835
dep(http): switch Now property to time value on ASTCompiler (#12272)
Closes #12268.
2019-03-01 08:53:24 -08:00
Nathaniel Cook f83abfc81a chore(flux): update to Flux v0.21.0 2019-02-25 15:02:17 -07:00
Jonathan A. Sternberg 70507670c3
feat(storage/reads): add scanned values and bytes metadata to the query (#12156)
This updates influxdb to use the new arbitrary metadata that can be
attached by a source and adds metadata entries for the cursor
statistics.
2019-02-25 14:44:18 -06:00
Adam 4c0262befe
test(stdlib/testing): added new test driver to run builtin tests (#11916) 2019-02-21 22:03:29 -05:00
jlapacik af258e62e7
feat(http): define external preprocessing options via http api (#11939)
Closes #11702.
2019-02-21 13:11:50 -08:00
Nathaniel Cook 817e45d60d chore(flux): update Flux to v0.20.0 2019-02-20 12:53:09 -07:00
Mark Rushakoff ec1019b930 chore: add .editorconfig and enable in CI 2019-02-19 16:58:07 -08:00
Nathaniel Cook 020a11faa8 chore(flux): update to Flux v0.19.0 2019-02-11 13:53:53 -07:00
Christopher Wolff 698de51e67 refactor(query): update to reflect changes to windows 2019-02-08 08:39:52 -08:00
Christopher Wolff 3e8b0fe807 refactor(query): separate "from" into logical and physical procedures
Fixes influxdata/flux#270.
2019-02-07 12:59:54 -08:00
Jonathan A. Sternberg 31dff58d4d
deps: upgrade to Flux v0.18.0 2019-02-07 10:38:09 -06:00
Jonathan A. Sternberg 204d919a92
refactor(query/influxql): use ast compile function from flux (#11749) 2019-02-07 10:02:23 -06:00
Jonathan A. Sternberg 8b20b52f51
refactor(query/influxql): modify the transpiler interface to produce an AST (#11662)
This refactors everything to generate and use a flux AST when
transpiling an influxql query. This also updates the spectests so they
use flux instead of writing out the AST and compare the resulting
AST's.
2019-02-06 10:18:33 -06:00
Lorenzo Affetti ce00375298 refactor(query/stlib): move from implementation from Flux 2019-02-05 17:46:46 +01:00
Leonardo Di Donato bd3c9cc75c fix(vault): correct testcontainers-go dep
Fixes #11199

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-24 14:14:11 +01:00
Nathaniel Cook 4648a7f638 chore: go mod tidy 2019-01-22 14:43:47 -07:00
Nathaniel Cook 5c64332a63 chore(flux): update Flux to v0.17.0 2019-01-22 14:39:16 -07:00
Nathaniel Cook 54d8ab91c2 chore: update to Flux v0.16.1 2019-01-17 12:55:06 -07:00
Nathaniel Cook cf7eb7834b chore: update Flux to v0.16.0 2019-01-17 09:23:53 -07:00
Nathaniel Cook 1f5ac8f2ce chore: update Flux to v0.15.0 2019-01-16 09:46:27 -07:00
AJ Bond 8b167185f6 chore(ci):Update goreleaser version
Update goreleaser to the latest release version which provides support for multiple binaries within a docker image
2019-01-15 20:36:18 -05:00
Nathaniel Cook 2ebf17645e chore: update Flux to v0.14.0 2019-01-15 08:47:31 -07:00
Nathaniel Cook d0603457b7 refactor(flux): make packages mirror Flux namespaces 2019-01-14 18:00:45 -07:00
Nathaniel Cook 622106caaa Merge branch 'master' into flux-staging 2019-01-14 17:03:57 -07:00