Commit Graph

2915 Commits (45f8c6634559b2f7000486651d43ae59ad147fc7)

Author SHA1 Message Date
davidby-influx 5251c85412
fix: Do not close connection twice in DigestWithOptions () ()
tsm1.DigestWithOptions closes its network connection
twice. This may cause broken pipe errors on concurrent
invocations of the same procedure, by closing a reused
i/o descriptor. This fix also captures errors from TSM
file closures, which were previously ignored.

Closes https://github.com/influxdata/influxdb/issues/21656

(cherry picked from commit bce6553459)

Closes https://github.com/influxdata/influxdb/issues/21660
2021-06-10 13:32:36 -07:00
Timmy Luong 354c385ee7
fix: change static legend's hide property to show () 2021-06-10 09:20:59 -07:00
Daniel Moran 9b02820a0f
build: upgrade to go1.16 ()
* build: bump to go 1.16
* build: go mod tidy & update godeps CI step
2021-06-09 12:59:05 -04:00
Dane Strandboge 8b90d23088
feat: Port influxd inspect verify-tsm ()
* feat: port tsm-inspect command to dbv2

* test: add test code for tsm-verify

* chore: delete old tsm-verify code stubs

* docs: update changelog

* chore: test for broken checksums more thoroughly
2021-06-09 10:38:51 -05:00
Daniel Moran d747e7ec4e
feat: add config parameters to toggle WAL concurrency and timeouts ()
* feat: add context parameter to Take() method on fixed limiter
* refactor: plumb context through to uses of Take()
* test: update tests to pass context as needed
* feat: add config toggles for setting WAL write concurrency & timeout
2021-06-09 11:03:53 -04:00
Dane Strandboge c665c749fe
feat: Port influxd inspect verify-seriesfile ()
* feat: Port influxd inspect verify-seriesfile

* chore: clean up logic, use zaptest logger

* chore: better error handling

* chore: generic error return statement

* chore: collapse nil check into if-block

Co-authored-by: Daniel Moran <danxmoran@gmail.com>

* chore: update changelog

Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2021-06-08 15:19:21 -05:00
Daniel Moran a187292632
chore: update CHANGELOG to reflect 2.0.7 release () 2021-06-08 10:47:36 -04:00
davidby-influx d10a727157
fix: avoid rewriting fields.idx unnecessarily () ()
Under heavy write load creating new fields and measurements
the rewrite of the fields.idx file is a bottleneck. This
enhancement combines multiple writes into a single one and
shares any error return value with all of the combined
invocations. MeasurementFieldSet and the new
MeasurementFieldSetWriter must both now be explicitly
closed.

Closes 

(cherry picked from commit f64be286be)

Closes https://github.com/influxdata/influxdb/issues/21598
2021-06-04 13:17:53 -07:00
William Baker b0ea3b6675
feat: backup and restore sqlite database ()
* feat: new metadata backup endpoint

* feat: added restore/sql API endpoint

* fix: content-type is multipart/mixed, part names are kv and sql

* fix: changed multipart manifest to buckets and made it .json

* feat: added lock for backing up sqlite and bolt dbs

* fix: use read lock instead of write lock on kv during backup

* fix: use filepath.Join for temp dirs
2021-06-02 19:07:53 -04:00
Timmy Luong b0d62f0c72
feat: add legendHide for the tooltip () 2021-05-25 10:31:50 -07:00
William Baker 19b0470ed7
feat: integrated sqlite db for metadata () 2021-05-25 12:12:07 -04:00
Daniel Moran 0099897c35
chore: add missed lines to CHANGELOG () 2021-05-25 09:57:35 -04:00
Timmy Luong 3f3670fa1c
feat: remove ui feature flags for permanent features () 2021-05-21 16:40:35 -07:00
William Baker fee3c46023
fix: add telemetry slug for additional file exts ()
* fix: add telemetry slug for more exts

* chore: update CHANGELOG
2021-05-20 08:58:18 -04:00
davidby-influx 5ef6b837b0
chore: remove erroneous dependency on istio ()
Use same logging functions as the rest of the points code.
2021-05-17 12:06:06 -07:00
Daniel Moran fc3beb7d0a
fix: last-modified of empty shard directory shouldn't be Unix epoch. ()
Co-authored-by: davidby-influx <72418212+davidby-influx@users.noreply.github.com>
2021-05-17 13:36:36 -04:00
Daniel Moran 6bdcbaa141
fix(cmd/influx): accept `--input` flag in `restore` command ()
* feat(cmd/influx): accept --input flag in `restore` command.
* fix(restore): make it an error if no backup manifests are found
2021-05-14 15:07:58 -04:00
Jakub Bednář 4becb6d01a
feat(users): list users via the API now supports `offset`, `limit` or `after` parameter () 2021-05-12 14:09:52 +02:00
Daniel Moran 4343d5ce07
fix: add logging to NATS streaming server () 2021-05-05 14:25:39 -04:00
William Baker 912ece0d2d
fix: add limits to delete api start and stop times ()
* fix: add limits to delete api start and stop times

* chore: update CHANGELOG

* fix: use min and max time limits from models package
2021-05-05 11:01:32 -04:00
Timmy Luong b66079f084
feat: update Static Legend properties to allow hiding without nulling () 2021-05-04 11:17:37 -07:00
Sam Arnold 8124973e0f
fix: disable MergeFiltersRule until it is more stable ()
Add a test to make sure this stays fixed.
2021-05-03 14:25:44 -04:00
Daniel Moran e28377f05c
fix: deprecate PostSetupUser and `influx setup user` () 2021-04-30 15:30:35 -04:00
Daniel Moran c9a4bd436f
chore: update CHANGELOG to match 2.0.6 () 2021-04-30 11:46:32 -04:00
Daniel Moran 942f7095e7
fix(query): make config validation for query controller less strict ()
* fix(query): accept queue-size > 0 when concurrency = 0
* fix(influxd): revert defaults for query settings to avoid validation err
* test: lower the default query concurrency used by test launchers
2021-04-28 17:27:37 -04:00
Daniel Moran 91d59d9588
fix(upgrade): ensure query config written by `influxd upgrade` is valid ()
* test: refactor upgrade test to cover the config upgrade
* fix: ensure upgraded query config is valid
2021-04-28 15:41:44 -04:00
Daniel Moran 32f24e33e8
chore: update CHANGELOG to match 2.0.5 () 2021-04-28 10:32:01 -04:00
Timmy Luong 0c88854486
feat: add StaticLegend () 2021-04-15 15:06:01 -07:00
William Baker 1d431e8bc3
feat: structured logging for HTTP server ErrorLog ()
* feat: structured logging for HTTP server ErrorLog

* chore: update CHANGELOG
2021-04-15 17:08:12 -04:00
Daniel Moran 7b1763e791
fix(tsdb): minimize lock contention when adding new fields or measurements ()
fields.idx frequent writes cause lock contention and fields.idx is recreated
when a field or measurement is added in a WritePointsWithContext()
This eliminates locking during the actual file rewrite, and limits it to
the times when the MeasurementFieldSet is actually being read or written
in memory and when the new file is being renamed.

Test verification of correct behavior by checking the fields.idx
file matches the in-memory copy after heavily parallel measurement addition.


Co-authored-by: davidby-influx <72418212+davidby-influx@users.noreply.github.com>
2021-04-15 14:08:28 -04:00
William Baker 540bb66e13
feat(telemetry): replace unique ids for resources with a slug ()
* feat(telemetry): replace unique ids for resources with a slug

* chore: update CHANGELOG
2021-04-08 09:57:47 -04:00
Daniel Moran ff6b55aca4
feat(flux): allow values of 0 to disable controller limits ()
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-04-05 16:58:27 -04:00
Daniel Moran 61d1ee45b3
build: add windows to cross-build () 2021-03-31 18:52:20 -04:00
William Baker 4237dda205
feat: synchronize ui folder with ui repository ()
* feat: synchronize ui folder with ui repository

* docs: updated README in /ui to reflect new UI asset build process

* chore: update CHANGELOG

* chore: re-worded CHANGELOG message and added trailing newline to fetch_ui_assets.sh script

* fix: leveraged queryBuilder test code from ui repo to fix flaky queryBuilder test on chrome

* docs: added comments to fetch_ui_assets script explaining where the assets come from

* chore: empty commit to trigger CI
2021-03-31 10:55:49 -04:00
Russ Savage 1b7d5f3156
feat: add profiler to query command in cli () 2021-03-23 15:47:52 -04:00
Daniel Moran 4ef09e1ccb
feat(cmd/inflxud): add support for writing to stdout in `export-lp` () 2021-03-23 14:59:16 -04:00
Daniel Moran 85c1bb8cd6
chore: update CHANGELOG () 2021-03-23 14:46:58 -04:00
Russ Savage f377b51250
feat: adding task ids to the ui () 2021-03-22 15:33:40 -04:00
Russ Savage 49a72fce07
fix: escape regex meta characters in user input () 2021-03-22 14:44:16 -04:00
Russ Savage 080341b865
feat: updating telegraf plugins for latest release () 2021-03-22 14:10:48 -04:00
Daniel Moran c5edd9092f
feat(http): add config parameters for HTTP timeouts () 2021-03-16 16:54:46 -04:00
Daniel Moran 9922863185
fix(tls): Update TLS strict cipher suite to actually work () 2021-03-16 10:45:27 -04:00
Daniel Moran 316eaa24b4
feat(http): add config option to disable metrics endpoint in influxd () 2021-03-15 15:11:23 -04:00
J. Emrys Landivar 5df737cbc7
fix(cmd/influx): log error details when `influxd upgrade` fails to migrate databases ()
Co-authored-by: Dan Moran <dmoran@influxdata.com>
2021-03-15 14:32:50 -04:00
Timmy Luong feb61b774d
fix: prevent time field names from being formatted () 2021-03-15 11:02:22 -07:00
Tecker.Yu 643acd4ab1
feat(influxql): rewrite regex conditions in subqueries ()
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2021-03-15 13:04:38 -04:00
Daniel Moran ba4099ddb9
feat(cmd/influx): allow setting shard-group durations for buckets via API and CLI ()
Co-authored-by: Alexander Savinykh <asavinykh@nbrx.de>
2021-03-11 14:51:03 -05:00
Daniel Moran b6842d676e
fix(cmd/influx): delete unsupported `influx transpile` command () 2021-03-11 14:28:58 -05:00
Daniel Moran e86ee475b2
fix: make AST-based option parsing the default, remove feature flag () 2021-03-08 09:51:21 -05:00
Timmy Luong b775e1c51f
fix(ui): respect 24 hour clock format and allow more choices () 2021-03-04 17:11:53 -08:00