Commit Graph

2260 Commits (bf45841359a06a4c3c923cfc29d5c2516cbaecc5)

Author SHA1 Message Date
davidby-influx bf45841359
chore(ae): add more logging (#21381)
tsdb.Engine.IsIdle and tsdb.Engine.Digest now return a reason string for why the engine & shard are not idle.
Callers can then use this string for logging, if desired. The returned reason does not allocate memory, so the
caller may want to add the shard ID and path for more information in the log. This is intended to be used in
calls from the anti-entropy service in Enterprise.
2021-05-07 12:55:58 -07:00
davidby-influx e234aa7ff0
fix: Anti-Entropy loops endlessly with empty shard (#21275) (#21290)
The anti-entropy service will loop trying to copy an empty shard to a
data node missing that shard.  This fix is one of two changes that
correctly create an empty shard on a new node. This fix will set the
LastModified date of an empty shard directory to the modification time
of that directory, instead of to the Unix epoch.

Fixes: https://github.com/influxdata/influxdb/issues/21273
(cherry picked from commit 7f300dc248)
2021-04-26 10:13:49 -07:00
Cody Shepherd 3d16c6318c
chore: Update Changelog for v1.8.5 release (#21254) 2021-04-19 14:13:03 -07:00
Sam Arnold ad06a9cda4
fix: fix help test for influx_inspect (#21052) (#21053)
Closes #21007

(cherry picked from commit db38959b7a)
2021-03-23 19:54:52 -04:00
davidby-influx 75612264e7
feat: Log query text for POST requests (#20993) (#21021)
The HTTP handler logs URLs, but not body values for POST requests.
This means that queries sent by GET are logged, because the query
is in the URL, but queries sent by POST have no query text in the
log.  This feature prints all the key-value pairs in the post body,
which includes the query text, except passwords, which are redacted.

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

(cherry picked from commit 70755bf42c)

Closes https://github.com/influxdata/influxdb/issues/21000
2021-03-22 20:28:38 -07:00
davidby-influx 67e2fcb6a8
feat: influx_inspect export to standard out (#20977) (#20989)
Add a special value to the -out flag, a hyphen, to write to stdout.
While writing to stdout, send status messages to stderr instead of
stdout (the current behavior).

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

(cherry picked from commit 642726e898)

Closes https://github.com/influxdata/influxdb/issues/20976
2021-03-17 10:49:03 -07:00
Sam Arnold e95a6a4a4b
feat(inspect): Add report-disk for disk usage by measurement (#20917)
* feat(inspect): Add report-disk for disk usage by measurement

(cherry picked from commit a6152e8ac1)

* fix(inspect): bad pattern matching

(cherry picked from commit 3a31e2370e)

* chore: fix goimports

* chore: update changelog
2021-03-11 14:25:55 -05:00
davidby-influx 8a31b0ebdc
fix: infinite recursion bug (#20862) (#20914)
* fix: infinite recursion bug (#20862)

* Revert "fix(error): unsupported value: +Inf" error not handled gracefully (#20250)"

This reverts commit 6ac0bb3fe3.

* fix: No infinite recursion on write error

If there is some error writing to the response writer, we
would previous have infinite recursion.

Re-closes https://github.com/influxdata/influxdb/issues/20249

(cherry picked from commit d6f7716924)

* chore: update CHANGELOG.md

Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-10 09:19:49 -08:00
davidby-influx 283ea0e1ec
fix(tsdb): minimize lock contention when adding new fields or measure (#20912)
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.

Fixes https://github.com/influxdata/influxdb/issues/20500

(cherry picked from commit fe3af66c54)
2021-03-09 16:10:08 -08:00
Daniel Moran 55fefdd2e4
fix(tsm1): fix data race when accessing tombstone stats (#20909) 2021-03-09 18:07:18 -05:00
Hercules Mango Churchill f0edf1d9f6 Update changelog 2021-03-09 22:41:08 +00:00
davidby-influx 9c6e401372
feat: Make meta queries respect QueryTimeout values (#20910)
Meta queries (SHOW TAG VALUES, SHOW TAG KEYS, SHOW SERIES CARDINALITY, etc.) do not respect
the QueryTimeout config parameter. Meta queries should check the query context when possible
to allow cancellation and timeout. This will not be as frequent as regular queries, which
use iterators, because meta queries return data in batches.

Add a context.Context to
(*Store).MeasurementNames()
(*Store).MeasurementsCardinality()
(*Store).SeriesCardinality()
(*Store).TagValues()
(*Store).TagKeys()
(*Store).SeriesSketches()
(*Store).MeasurementsSketches()
which is tested for timeout or cancellation
to allow limitation of time spent in meta queries

https://github.com/influxdata/influxdb/issues/20736
(cherry picked from commit 092c7a9976)

* chore: move context.Context to first argument in methods per convention

(cherry picked from commit a8b2129df5)
2021-03-09 14:40:50 -08:00
davidby-influx b2cb862484
fix(error): SELECT INTO doesn't return error with unsupported value (#20429) (#20432)
* fix(error): SELECT INTO doesn't return error with unsupported value (#20429)

When a SELECT INTO query generates an illegal value that cannot be inserted,
like +/- Inf, it should return an error, rather than failing silently.
This adds a boolean parameter to the [data] section of influxdb.conf:
* strict-error-handling
When false, the default, the old behavior is preserved.  When true,
unsupported values will return an error from SELECT INTO queries

Fixes https://github.com/influxdata/influxdb/issues/20426

(cherry picked from commit 9e33be2619)

Fixes https://github.com/influxdata/influxdb/issues/20427
2020-12-30 19:18:58 -08:00
davidby-influx 35ae464ddd
chore: update CHANGELOG.md for typo and community PR (#20389) 2020-12-18 14:56:32 -08:00
davidby-influx 8ecf0d2a36
fix: cp.Mux.Serve() closes all net.Listener instances silently on error (#20295)
* fix: cp.Mux.Serve() closes all net.Listener instances silently on error. (#20278)

A customer has seen a rash of "connection refused" errors to the meta node.
This fix ensures that when net.Listener instances are closed because of an
error in Accept(), influxdb logs the error which caused the closures, as well
as any errors in closing the Listeners.

Fixes https://github.com/influxdata/influxdb/issues/20256

(cherry picked from commit 5b98166b05)+
2020-12-09 11:21:29 -08:00
Hercules Mango Churchill 7a58271d29 Update changelog 2020-12-08 23:14:08 +00:00
Gershon Shif 2e9fcaf6e5
chore: fix CHANGELOG formating (#20286) 2020-12-08 15:13:48 -08:00
Hercules Mango Churchill a4e1dd6f14 Update changelog 2020-12-08 00:35:19 +00:00
davidby-influx 5a84f77c34
fix(query): Group By queries with offset that crosses a DST boundary can fail (#20277)
Customer reported that a GROUP BY query with an offset that caused an interval
to cross a daylight savings change inserted an extra output row off by one hour.
This fix ensured that the start time for the interval of a GROUP BY operator is
correctly set before calculating the time zone offset for that date and time.

Add TestGroupByIterator_DST() in query/iterator_test.go
for regression testing of this bug.

Fixes https://github.com/influxdata/influxdb/issues/20238

(cherry picked from commit df39b1e71c)

Fixes https://github.com/influxdata/influxdb/issues/20252
2020-12-07 16:34:55 -08:00
Hercules Mango Churchill 5b3668db0f Update changelog 2020-12-07 21:55:37 +00:00
davidby-influx 0212d3c6db
fix(error): unsupported value: +Inf" error not handled gracefully (#20276)
* fix(error): unsupported value: +Inf" error not handled gracefully

JSON marshalling errors should be returned properly formatted in JSON
like other errors. This fix formats marshalling errors the same way
influxdb formats other query errors.

Fixes https://github.com/influxdata/influxdb/issues/20249

(cherry picked from commit 2407077576)

* chore(changelog): update CHANGELOG.md for PR #20276
2020-12-07 13:55:13 -08:00
Hercules Mango Churchill 61cd56f184 Update changelog 2020-11-30 19:04:32 +00:00
Yun Zhao a3a07fb2d1
feat: Optimize shard lookups in groups containing only one shard (#20118) 2020-11-30 14:04:11 -05:00
Hercules Mango Churchill b95fbde094 Update changelog 2020-11-20 23:13:30 +00:00
davidby-influx bf6992af07 chore: update CHANGELOG.md correctly 2020-11-20 09:06:28 -08:00
davidby-influx 6125bfa44a chore: update CHANGELOG.md 2020-11-19 08:41:51 -08:00
Hercules Mango Churchill 729a8801f5 Update changelog 2020-10-13 18:00:02 +00:00
Christopher M. Wolff 25fb1077e2
fix(flux): add durations to Flux logging (#19697) 2020-10-13 10:59:39 -07:00
Gershon Shif 563e6c3d1a
chore: update CHANGELOG for 1.8.3GA (#19670) 2020-09-30 11:15:37 -07:00
Gershon Shif 6a1299e8c6
chore: update CHANGELOG (#19329) 2020-08-13 16:55:23 -07:00
Hercules Mango Churchill af0237819a Update changelog 2020-07-08 23:37:34 +00:00
Hercules Mango Churchill db0ce8c112 Update changelog 2020-07-08 23:37:05 +00:00
Gershon Shif 8a72b6ee4e
chore: update CHANGELOG.md (#18892) 2020-07-08 16:36:42 -07:00
Gershon Shif 565c6138ec
chore: update CHANGELOG with 1.8.1 (#18316) 2020-06-01 11:57:30 -07:00
David Norton 97baa2f52b chore: update changelog 2020-04-11 12:53:54 -04:00
Gunnar 4bb2b13ea7
Merge pull request #17698 from influxdata/ga-tls1.3
fix(tls): Enable configuration of TLS 1.3
2020-04-10 14:59:59 -07:00
timhallinflux 5d54a2c479
Update CHANGELOG.md
Backport of #17710
2020-04-10 13:52:45 -07:00
Gunnar Aasen 4013c14514 fix(tls): Enable configuration of TLS 1.3 2020-04-09 14:29:53 -07:00
David Norton 275b02e5dd fix: verify precision parameter in write requests
This change updates the HTTP endpoints that service v1 and v2 writes to
verify the values passed in the precision parameter.
2020-04-07 13:31:34 -04:00
Ben Johnson 3f61a0d880 fix(tsdb): Revert "fix: remove some unsafe marshalling to reduce risk of segfault"
This reverts commit 30dab03310.
2020-03-31 15:31:33 -06:00
Hercules Mango Churchill 2e371db2a0 Update changelog 2020-03-16 17:08:16 +00:00
David Norton 7ea8fdb566 chore: update CHANGELOG.md 2020-03-13 21:55:04 -04:00
Stuart Carnie f71caf5c02
Merge pull request #16709 from influxdata/sgc/18/flux-cost
fix(flux): Reduce influxd and influx startup time if Flux unused
2020-03-02 15:16:13 -07:00
Hercules Mango Churchill a8cf52ba0e Update changelog 2020-02-04 20:45:16 +00:00
Gianluca Arbezzano 30621ca9ec chore(tsm1): skip WriteSnapshot during backup if snapshotter is busy
When an InfluxDB database is very busy writing new points the backup
the process can fail because it can not write a new snapshot.

The error is: `operation timed out with error: create snapshot: snapshot in progress`.

This happens because InfluxDB takes almost "continuously" a snapshot
from the cache caused by the high number of points ingested.

This PR skips snapshots if the `snapshotter` does not come available
after three attempts when a backup is requested.

The backup won't contain the data in the cache or WAL.

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
2020-02-04 20:09:50 +01:00
Stuart Carnie 59d3f6f144
docs: Update CHANGELOG 2020-02-03 13:20:23 -07:00
Hercules Mango Churchill 3cf826f1cf Update changelog 2020-01-14 18:02:07 +00:00
Sean Brickley a6b1811afd chore: Correction to CHANGELOG - Moved link to PR #16524 from Features to Bugfixes under 1.8 2020-01-14 12:44:36 -05:00
Sean Brickley 924927c443 chore: Updated CHANGELOG.md with link to PR #16524 2020-01-14 12:40:58 -05:00
Hercules Mango Churchill 915c021e5a Update changelog 2019-11-12 23:39:15 +00:00