Commit Graph

10562 Commits (e6cd4c7313cbb3fef08684a0ea0993ccda92ef9f)

Author SHA1 Message Date
Jonathan A. Sternberg e6cd4c7313 Merge pull request #6864 from influxdata/js-6397-allow-use-database-with-non-admin
Allow a non-admin to call "use" for the influx cli
2016-06-22 11:04:30 -05:00
Jonathan A. Sternberg 1d20498273 Allow a non-admin to call "use" for the influx cli
Previously, a non-admin could not call "use" in the influx cli since the
`SHOW DATABASES` command requires admin permissions to run. The correct
solution to this is likely to allow non-admins to call `SHOW DATABASES`,
but only see the databases they should be capable of seeing.

Since we don't have this kind of fine-grained authorization yet and
plans for it are still in the works, we do need someway to not
arbitrarily cripple non-admins attempting to use the cli program. This
is a temporary solution that will ignore any authorization errors from
`SHOW DATABASES` if authorization has been set. A warning message will
be printed and the database will be switched. This should be enough to
ensure that there is some warning that you may not have switched to a
valid database while not crippling non-admin users.

A temporary solution for #6397.
2016-06-22 08:15:18 -05:00
Jonathan A. Sternberg 7bdcd669a8 Merge pull request #6879 from influxdata/js-prune-deadcode
Removing dead code from every package except influxql
2016-06-22 08:12:19 -05:00
Jonathan A. Sternberg 0ac9ab0f39 Merge pull request #6883 from influxdata/js-influx-inspect-dumptsm
Rename dumptsmdev to dumptsm in influx_inspect
2016-06-21 10:45:00 -05:00
Jonathan A. Sternberg 2a1e6533b7 Rename dumptsmdev to dumptsm in influx_inspect
Removes the old implementation of `dumptsm`. It was for an older version
of the tsm1 files that is no longer used and now just panics when used
on a tsm1 file. dumptsmdev has been renamed to `dumptsm`, but the old
`dumptsmdev` command still works for compatibility.
2016-06-21 10:31:05 -05:00
Jonathan A. Sternberg 497db2a6d3 Removing dead code from every package except influxql
The tsdb package had a substantial amount of dead code related to the
old query engine still in there. It is no longer used, so it was removed
since it was left unmaintained. There is likely still more code that is
the same, but wasn't found as part of this code cleanup.

influxql has dead code show up because of the code generation so it is
not included in this pruning.
2016-06-20 22:41:07 -05:00
Jonathan A. Sternberg 4423c06092 Merge pull request #6882 from influxdata/js-tsm1-writer-double-lock
Remove a double lock in the tsm1 index writer
2016-06-20 22:18:41 -05:00
Jonathan A. Sternberg 8812bc8a93 Remove a double lock in the tsm1 index writer 2016-06-20 17:32:34 -05:00
Jonathan A. Sternberg 79b09747f0 Merge pull request #6872 from influxdata/js-6869-remove-field-codec
Remove FieldCodec from tsdb package
2016-06-20 11:32:29 -05:00
Jonathan A. Sternberg bed66cfbe4 Merge pull request #6813 from influxdata/js-influxql-golint
Fix golint errors for the influxql package
2016-06-20 09:15:36 -05:00
Jonathan A. Sternberg 252cde1e81 Fix golint errors for the influxql package 2016-06-20 08:51:02 -05:00
Edd Robinson cb95b2f629 Merge pull request #6867 from influxdata/sb-pr-template-addition
add syntax example to optional PR requirements
2016-06-20 11:38:25 +01:00
Edd Robinson 9603bad14c Merge pull request #6868 from smunier01/continuous-queries-admin-interface
Add continuous queries templates in admin interface
2016-06-20 11:35:47 +01:00
Edd Robinson 3d8cde2346 Merge pull request #6774 from minkikim89/patch-1
Fixed admin page reloaded when navbar-brand clicked
2016-06-20 11:34:08 +01:00
Jonathan A. Sternberg 1d03151631 Remove FieldCodec from tsdb package
Updated `influx_inspect` to use the `FieldDimensions` method instead
(more reliable anyway). The `influx_tsm` program used its own vendored
copy of `FieldCodec` so it is not affected by this change. `FieldCodec`
was only used for the `b1` and `bz1` engines which were removed in 0.12,
but the code that created the field codec was never removed. This
limited the maximum number of fields to 255 even though that restriction
was removed with the `tsm1` engine.

Fixes #6869.
2016-06-19 21:38:43 -05:00
simon f007fccb4a Add continuous queries templates in admin interface 2016-06-18 16:33:41 +02:00
Sean Beckett 8edf48cbc7 add syntax example to optional PR requirements 2016-06-17 17:53:05 -06:00
Jonathan A. Sternberg 551cb61d9e Merge pull request #6860 from influxdata/js-6859-condition-nil-iterator-panic
Set the condition cursor instead of aux iterator when creating a nil condition cursor
2016-06-17 15:13:39 -05:00
Jonathan A. Sternberg e2eac52dd9 Merge pull request #6865 from influxdata/js-changelog-fix
Remove 1.0.0-beta1 section and merge with the 1.0.0 section
2016-06-17 15:09:33 -05:00
Jonathan A. Sternberg 6e205ce135 Set the condition cursor instead of aux iterator when creating a nil condition cursor
A copy/paste error had nil cursors destined for a condition cursor get
set to the auxiliary cursor instead. When the number of conditions
exceeded the number of auxiliary fields, this would result in a stack
trace in some situations. When the number of conditions was less than or
equal to the number of auxiliary fields, it means that an auxiliary
cursor may have been overwritten with a nil cursor accidentally and a
leak might have happened since it was never closed.

Fixes #6859.
2016-06-17 14:54:48 -05:00
Jonathan A. Sternberg 6c7b670821 Remove 1.0.0-beta1 section and merge with the 1.0.0 section 2016-06-17 14:18:47 -05:00
Jonathan A. Sternberg 74cffdb7ab Merge pull request #6839 from influxdata/js-6824-systemd-redirect
Remove systemd output redirection
2016-06-17 14:17:04 -05:00
Paul Dix b937cfedd6 Merge pull request #6863 from influxdata/pd-update-reporting-language
Update usage info to remove anonymous
2016-06-17 11:52:48 -07:00
Paul Dix 04d1393425 Update usage url 2016-06-17 14:27:11 -04:00
Paul Dix 03d68aae20 Update reporting url 2016-06-17 14:25:10 -04:00
Paul Dix 79d1f31d0b Update usage info to remove anonymous 2016-06-17 14:19:10 -04:00
Jonathan A. Sternberg 55a58aaaca Remove systemd output redirection
Let systemd handle the output so the journal can be used. This also
let's the user configure if the journal stores the output of this
service to a file instead of setting the location.

Fixes #6824.
2016-06-17 13:00:00 -05:00
Jonathan A. Sternberg 8c93c7e288 Merge pull request #6849 from influxdata/js-purge-unused-dependencies
Purge unused dependencies
2016-06-17 12:39:20 -05:00
Jonathan A. Sternberg 65e9903510 Merge pull request #6850 from influxdata/js-shard-group-max-time
Modify the max nanosecond time to be one nanosecond less
2016-06-16 13:12:12 -05:00
Jonathan A. Sternberg 8e1b036b0a Modify the max nanosecond time to be one nanosecond less
The highest time represented by a nanosecond needs to be used for an
exclusive range, so the maximum time needs to be one less than the
possible maximum number of nanoseconds representable by an int64 so that
we don't lose a point at that one time.

Previously worked in the open source version because the timestamp used
for finding a shard would be truncated by the retention policy so the
lookup time didn't run into this edge case because it didn't rest on the
truncation boundary. Since that point didn't really belong in that shard
group and was placed there by mistake, it's best to fix this bug since
the timestamp used to create the shard group should be capable of
retrieving it.
2016-06-16 12:15:41 -05:00
Jonathan A. Sternberg 36ee371475 Purge unused dependencies
Raft is no longer used in the open source version so we don't need a
dependency on it.
2016-06-15 17:12:38 -05:00
Jack Zampolin 3b400a2db1 Merge pull request #6843 from influxdata/jz-stress-auth
Add ssl, un, pw support to v2 stress
2016-06-14 18:27:55 -07:00
Jack Zampolin fe0ba554e6 Add ssl, un, pw support to v2 stress 2016-06-14 16:47:47 -07:00
Jack Zampolin 3ab9167d2f Merge pull request #6841 from influxdata/jz-graphite
Add changelog entry
2016-06-14 14:39:43 -07:00
Jack Zampolin 910e9fc2e0 Add changelog entry 2016-06-14 14:06:17 -07:00
Jack Zampolin a96f96c024 Merge pull request #6834 from influxdata/jz-graphite
Add `port` to `[graphite]` log output
2016-06-14 11:35:19 -07:00
Jonathan A. Sternberg 779fcea06f Merge pull request #6835 from influxdata/js-sysvinit-tools-on-redhat
Include sysvinit-tools as an rpm dependency
2016-06-14 09:09:55 -05:00
Cameron Sparr b9a3f2e1e5 Make httpd logger closer to Common Log Format
changes the httpd log lines from this:

    [httpd] 2016/06/08 14:06:39 ::1 - - [08/Jun/2016:14:06:39 +0100] POST /write?consistency=any&db=telegraf&precision=s&rp= HTTP/1.1 204 0 - InfluxDBClient d6aa01fc-2d79-11e6-8024-000000000000 2.751391ms

to this:

    [httpd] ::1 - - [08/Jun/2016:14:06:39 +0100] "POST /write?consistency=any&db=telegraf&precision=s&rp= HTTP/1.1" 204 0 "-" "InfluxDBClient" d6aa01fc-2d79-11e6-8024-000000000000 2751

So it changes a few things:

1. Remove the logger timestamp at the beginning which isn't very relevant anyways
2. adds quotes around "METHOD URI PROTOCOL", because this is part of the
common log format.
3. adds quotes around "AGENT" and "REFERRER" because this is part of the
"combined" log format.
4. Puts the response time in integer microseconds, because this is
consistent with apache's %D config mod option.

Compared with CLF, our logs now look like this:

    [httpd] %{COMMON_LOG_FORMAT} "<agent>" "<referrer>" <request_uuid> <response_time_µs>

For reference, see:
https://en.wikipedia.org/wiki/Common_Log_Format
http://httpd.apache.org/docs/current/mod/mod_log_config.html
2016-06-14 14:48:24 +01:00
Jonathan A. Sternberg fed8fd385f Include sysvinit-tools as an rpm dependency 2016-06-13 20:08:18 -05:00
Jason Wilder 27d76c331b Merge pull request #6833 from influxdata/patch-fix
Initialize subscriber channel on open
2016-06-13 13:01:29 -06:00
Jack Zampolin f1db2f2ca5 Add port to all graphite log output to help with debugging multiple endpoints 2016-06-13 11:59:56 -07:00
Jack Zampolin bc82a50c75 Merge pull request #6832 from influxdata/jz-stress-fix
Fix write to and query from cluster
2016-06-13 14:49:14 -04:00
Jack Zampolin 216021371a Fix write to and query from cluster 2016-06-13 11:30:56 -07:00
Jonathan A. Sternberg 32472026a3 Merge pull request #6564 from influxdata/js-4532-show-tag-values-with-regex
Support regex selection in SHOW TAG VALUES for the key
2016-06-13 10:16:56 -05:00
Jonathan A. Sternberg 2e36c27b15 Merge pull request #6801 from influxdata/js-6771-duplicate-series-with-same-tag-set
Fix the point validation parser to identify and sort tags correctly
2016-06-13 10:09:06 -05:00
Jonathan A. Sternberg 9837de793c Support regex and other operations for selecting the key in SHOW TAG VALUES
This adds support for using regex expressions in SHOW TAG VALUES when
selecting the key. Also supporting the `!=` operation for the
comparison. Now you can do any of the following:

    SHOW TAG VALUES WITH KEY != "region"
    SHOW TAG VALUES WITH KEY =~ /region/
    SHOW TAG VALUES WITH KEY !~ /region/

It also adds a new SetLiteral AST node that will potentially be used in
the future to allow set operations for other comparisons in the future.

Fixes #4532.
2016-06-13 10:03:14 -05:00
Jonathan A. Sternberg 3bd9425edb Fix the point validation parser to identify and sort tags correctly
Fixes #6771.
2016-06-13 09:45:10 -05:00
Jason Wilder 48da935314 Merge pull request #6822 from influxdata/jw-sub-chan
Initialize subscriber channel on open
2016-06-10 21:43:43 -06:00
Jason Wilder ab4d21804c Initialize subscriber channel on open
If the subscriber service was closed and re-open, it would panic
with panic: send on closed channel
2016-06-10 18:41:20 -06:00
Jason Wilder fd262697b9 Initialize subscriber channel on open
If the subscriber service was closed and re-open, it would panic
with panic: send on closed channel
2016-06-10 18:00:44 -06:00