Commit Graph

12767 Commits (0237059d052ccec97c489e4c26721560e0385e19)

Author SHA1 Message Date
Kelvin Wang 6123246049 fix 404 to an empty array 2018-11-14 11:16:48 -05:00
Edd Robinson bceb99526a
Merge pull request #1398 from influxdata/er-comp-fix
Fix encoding bug that could tie up compactions
2018-11-14 14:14:07 +00:00
Stuart Carnie 305ebb8729 fix: Allow compactor to make progress if v.MaxTime() != entry.MaxTime 2018-11-14 12:14:45 +00:00
Stuart Carnie bef0577206 fix(simple8b): Fix incorrect encoding for a run of 119 or 239 1s
If 120th or 240th value is not a 1, k still passes the check in the
switch, causing the last value to be lost. If this value occurs at
the boundary of a block, the max time will be incorrect, resulting in
compaction failing to make forward progress.
2018-11-14 12:14:45 +00:00
Stuart Carnie b35533e7f7 chore: Compactor test which replicates issue #10465
Due to an encoding bug with simple8b, it is possible that the
MaxTime for a TSM index entry does not match the last encoded timestamp.
2018-11-14 12:14:43 +00:00
Delmer fc4986f422
fix(ui/logs): time point selection dropdown (#1361)
fix(ui/logs): update time point selection to use clockface
2018-11-14 07:10:43 -05:00
Jakub Bednar 324f0b9516 Fixed the organizations members paths 2018-11-14 11:54:06 +01:00
Jakub Bednar 0bdc2adec4 Fixed Get Owner Members 2018-11-14 11:19:56 +01:00
Palakp41 b2afb98f7c
Merge pull request #1383 from influxdata/feat/add-enable-to-tasks
Add enable toggle feature to tasks page
2018-11-13 16:20:58 -08:00
Palak Bhojani 53d36e49b7 Updated function name for toggle in task row 2018-11-13 16:01:15 -08:00
Palak Bhojani 3d9df39fd1 Updated Organizaiton Tasks to include the task status 2018-11-13 16:01:15 -08:00
Palak Bhojani 8a58fb4041 Add enable toggle feature to tasks page
Co-authored-by: Palak Bhojani <patel.palak41@gmail.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-13 16:01:15 -08:00
Palakp41 d860dc49d6
Merge pull request #1389 from influxdata/capitalize-column-names-on-tasks
Capitalized columns names on the tasks list page
2018-11-13 15:09:48 -08:00
Palak Bhojani 418116a49a Capitalized columns names on the tasks list page 2018-11-13 14:53:13 -08:00
Jeff Wendling f731ed595d
Merge pull request #1358 from influxdata/jmw-test-explode-points
test(tsdb): add test for explode points
2018-11-13 14:41:29 -07:00
Jorge Landivar e4dcb7fb58
Merge pull request #1357 from influxdata/opentracing
opentracing
2018-11-13 15:21:32 -06:00
Adam 2321d81291
Feat/transpiler show databases (#1363)
* feat(query): databases transformation implementation
add show databases to transpiler
2018-11-13 16:07:28 -05:00
Andrew Watkins 536bbe297e
feat(chrono): replace div with form element in Form component
* cleanup

* feat(forms): add onSubmit handlers to older forms

* cleanup
2018-11-13 12:36:16 -08:00
jlapacik b86f2438d8
Merge pull request #1337 from influxdata/jl-transpiler-test-cases
transpiler test case for basic group by time
2018-11-13 09:10:18 -08:00
jlapacik a86a37eb02 transpiler test case for basic group by time 2018-11-13 09:03:04 -08:00
Mark Rushakoff 1ab9c80ae8 fix(tsdb): eliminate data race from *SeriesIDSet.Clone
And add a test to cover that.

The data race would look roughly like:

```
WARNING: DATA RACE
Write at 0x00c000024e18 by goroutine 8:
  github.com/RoaringBitmap/roaring.(*roaringArray).markAllAsNeedingCopyOnWrite()
      /Users/mr/go/pkg/mod/github.com/!roaring!bitmap/roaring@v0.4.16/roaringarray.go:881 +0x6b
  github.com/RoaringBitmap/roaring.(*roaringArray).clone()
      /Users/mr/go/pkg/mod/github.com/!roaring!bitmap/roaring@v0.4.16/roaringarray.go:266 +0x808
  github.com/RoaringBitmap/roaring.(*Bitmap).Clone()
      /Users/mr/go/pkg/mod/github.com/!roaring!bitmap/roaring@v0.4.16/roaring.go:385 +0x58
  github.com/influxdata/platform/tsdb.(*SeriesIDSet).CloneNoLock()
      /Users/mr/go/src/github.com/influxdata/platform/tsdb/series_set.go:229 +0x73
  github.com/influxdata/platform/tsdb.(*SeriesIDSet).Clone()

Previous write at 0x00c000024e18 by goroutine 7:
  github.com/RoaringBitmap/roaring.(*roaringArray).markAllAsNeedingCopyOnWrite()
      /Users/mr/go/pkg/mod/github.com/!roaring!bitmap/roaring@v0.4.16/roaringarray.go:881 +0x6b
  github.com/RoaringBitmap/roaring.(*roaringArray).clone()
      /Users/mr/go/pkg/mod/github.com/!roaring!bitmap/roaring@v0.4.16/roaringarray.go:266 +0x808
  github.com/RoaringBitmap/roaring.(*Bitmap).Clone()
      /Users/mr/go/pkg/mod/github.com/!roaring!bitmap/roaring@v0.4.16/roaring.go:385 +0x58
  github.com/influxdata/platform/tsdb.(*SeriesIDSet).CloneNoLock()
      /Users/mr/go/src/github.com/influxdata/platform/tsdb/series_set.go:229 +0x73
  github.com/influxdata/platform/tsdb.(*SeriesIDSet).Clone()
      /Users/mr/go/src/github.com/influxdata/platform/tsdb/series_set.go:223 +0x7b
```
2018-11-13 08:12:38 -08:00
Jonathan A. Sternberg aab4e570d3
Merge pull request #1359 from influxdata/js-flux-update
deps: update flux dependency
2018-11-13 09:36:09 -06:00
Jonathan A. Sternberg 85d3953082
deps: update flux dependency
This includes a fix to the query returned by the controller so the
Statistics method doesn't panic.
2018-11-13 08:26:16 -06:00
Edd Robinson fddeef2725
Merge pull request #1347 from zhulongcheng/missing-continue
fix(storage): missing `continue`
2018-11-13 11:07:23 +00:00
Iris Scholten b9ad495e58
Merge pull request #1352 from influxdata/line-display-options
Add display options ui for line graph types
2018-11-12 16:46:10 -08:00
Jeff Wendling 704941d624 test(tsdb): add test for explode points 2018-11-12 17:36:33 -07:00
Christopher Henn 78d3a0ba2d Streamline signin page
1. The username field is now autofocused.
2. Pressing enter in an input will submit the signin form.

Long term, we should switch the reusable UI `Form` element to use an
actual HTML `form` element, rather than a `div`. That way we get these
sorts of interactions for free.

Closes #1354
Closes #1355
2018-11-12 15:29:02 -08:00
docmerlin (j. Emrys Landivar) 8f8c56ea8d opentracing 2018-11-12 16:34:06 -06:00
Iris Scholten 9c3ec093b9 Add display options ui for line graph types 2018-11-12 12:42:09 -08:00
Adam c950a6dc00
fix to transpiler result encoder when there's no _time column (#1350)
* fix to transpiler result encoder when there's no _time column
* add unit tests
2018-11-12 15:35:16 -05:00
kelwang f643405ee6
Merge pull request #1335 from influxdata/default_credential
(feat/cmd): store token in default location
2018-11-12 13:07:58 -05:00
Delmer 53085c20b9
fix(ui/logs): update flux col to column in query (#1348)
Updates the ui/logs flux query builder to use the full word for column
in the flux query.
2018-11-12 13:01:14 -05:00
Mark Rushakoff a7fdd17815 ci: re-enable race builds in circle config
I looked through the past few days of Circle Go failures, and they all
appeared to be real test errors, indicating that the -p=8 flag most
likely fixed the linker OOMs we were seeing.

If the race-enabled tests continue to OOM, we can try setting -p=2 to
match the number of CPUs actually available on our Circle container.
2018-11-12 08:24:43 -08:00
Mark Rushakoff 6874607796 test(bolt): fix data race
Multiple goroutines were concurrently setting bolt.HashCost. Move the
assignment to an init function to avoid the data race.
2018-11-12 08:24:43 -08:00
Mark Rushakoff ed4bba83f5 test(models): don't reassign package variable
Prior to this change, `go test -count=2 ./models` would fail like:

--- FAIL: TestMarshal (0.00s)
    points_test.go:37: got:  ,A\ FOO=bar,APPLE=orange,host=serverA,region=uswest
    points_test.go:38: exp:  ,apple=orange,foo=bar,host=serverA,region=uswest
    points_test.go:39: invalid match

because a later test reassigned the package-level variable that
TestMarshal depends on. Don't reassign that variable anymore.

Also cleaned up some whitespace, and moved an init function to the top
of the file for visibility.
2018-11-12 08:24:14 -08:00
zhulongcheng 36a2818caa fix(storage): missing `continue` 2018-11-13 00:08:43 +08:00
Christopher Henn 2f8893f5d5 Port 1.x Dygraph component
This ports the `Dygraph` component from Chronograf 1.7, which contains
many bug fixes and enhancements. Notably, it does not quadruple render
on every mouse move event.

The component has been adapter for platform. All code relating to
annotations and the static legend has been removed.
2018-11-09 16:57:48 -08:00
Christopher Henn 76637da6aa Flatten views state 2018-11-09 16:57:48 -08:00
Christopher Henn df636fb84d Move hoverTime and related state out of Redux
The `hoverTime` state updates very rapidly (on every mousemove event for
any graph in a dashboard). This makes storing the `hoverTime` in Redux
expensive, since _every_ Redux-connected component in the render tree
must rerender when any piece of state in the Redux store is updated.

This commit moves `hoverTime` (and `activeViewID`, and related setters)
out of the Redux store in favor of a context based solution. Now, when
the `hoverTime` updates, only components that actually use that state
will rerender.
2018-11-09 16:57:48 -08:00
Kelvin Wang a783c213c3 (feat/cmd): add default token 2018-11-09 19:43:29 -05:00
Christopher Henn 886aa130ea Load/persist draft script when opening/closing VEO 2018-11-09 10:27:41 -08:00
Christopher Henn 62d1b1d2c2 Add basic Flux editor to TimeMachine 2018-11-09 10:27:41 -08:00
Jeff Wendling 6d70b5fc78
Merge pull request #1334 from influxdata/jmw-disabled-wal
fix(storage): allow disabling the WAL
2018-11-09 11:02:02 -07:00
Christopher Henn 0b5f7a01ca Update Flux query URL for v1 sources
Previously, a v1 source was configured with a `URL` and `fluxURL`. The
`URL` was used for querying InfluxQL data, while the `fluxURL` pointed
to a `fluxd` instance and was used for querying Flux data.  Since then,
`fluxd` has been subsumed by the InfluxDB 1.7 release, which supports
both InfluxQL and Flux.

This commit updates the source proxy query service to query Flux data
from a V1 source directly.
2018-11-09 09:48:04 -08:00
Jeff Wendling 39f4908946 fix(storage): allow disabling the WAL
We were passing a non-nil tsm1.Log containing a nil *tsm1.WAL which
would cause a panic when it was attempted to be used. Instead, always
pass a non-nil WAL.

We change the storage engine code to not pass in a nil WAL, and
additionally add a defensive check to change any nil WALs into a
NopWAL.
2018-11-09 10:45:24 -07:00
Jeff Wendling a935aced36
Merge pull request #1331 from influxdata/jmw-max-compactions
fix(tsm1): fix max concurrent compaction logic
2018-11-09 10:27:22 -07:00
Jeff Wendling 25532778df fix(tsm1): fix max concurrent compaction logic 2018-11-09 10:14:32 -07:00
Jeff Wendling 6b57c7ded0
Merge pull request #1321 from influxdata/jmw-config-cleanup
Storage engine config cleanup
2018-11-08 16:54:53 -07:00
Andrew Watkins 06f468bdcb
chore(refreshing-view): tweaks
* Rename AutoRefresh to AutoRefresher, rename global

* Remove presentational states from TimeSeries component

* Simplify TimeSeries reload logic

* Remove unused props from RefreshingView

* Display loading errors in RefreshingView

* chore(views): extract non-visualization state and switching logic into components
2018-11-08 14:24:23 -08:00
Brandon Farmer 513bd16523
Merge pull request #1279 from influxdata/fix/me-response
fix(http): user response of me at top-level
2018-11-08 13:58:59 -08:00