Commit Graph

10351 Commits (5d9eae61b070f56adf9e4dad33a7fd4000669f00)

Author SHA1 Message Date
Todd Persen 337d49bea3 Merge pull request #5720 from Vidhuran/bug4987-query-permalinks
added a button to generate URL for queries created in admin UI.
2016-04-28 10:34:06 -07:00
Jonathan A. Sternberg 6371134bfa Merge pull request #6491 from influxdata/js-cli-infinite-loop
Fix the CLI not to enter an infinite loop when the liner has an error
2016-04-28 09:36:35 -04:00
Jonathan A. Sternberg 37faaafe1c Merge pull request #6492 from influxdata/js-statement-executor-cleanup
Cleaning up a weird statement in the statement executor
2016-04-28 09:36:14 -04:00
Jonathan A. Sternberg c326be702e Cleaning up a weird statement in the statement executor
The statement used a variable from outside of the function and redefined
that variable on the same line when it was unnecessary. Cleaning up the
code so it's easier to understand.
2016-04-28 08:46:52 -04:00
Jonathan A. Sternberg 2ccbe26447 Fix the CLI not to enter an infinite loop when the liner has an error
This also removes the dependency on `os/user` and uses the `HOME`
environment variable which is more common on Linux and Mac OS X for
customizing the history file location.

Removing this import also lets the `influx` binary be cross-compiled as
`os/user` relies on cgo.
2016-04-28 08:35:54 -04:00
Jason Wilder c578602985 Merge pull request #6486 from influxdata/jw-delete-series-bug
Fix first block not getting purged when deleting series
2016-04-27 17:42:06 -06:00
Jason Wilder 4e353867d5 Fix first block not getting purged when deleting series 2016-04-27 17:08:00 -06:00
Ben Johnson 0157968633 Merge pull request #6484 from benbjohnson/delete-series
Add DELETE query support
2016-04-27 16:15:06 -06:00
Ben Johnson f7af787aef
add DELETE query support
This commit adds query language support for deleting series with a
`DELETE` query.
2016-04-27 15:16:23 -06:00
Jason Wilder 51b1af463e Merge pull request #6483 from influxdata/jw-delete-series
Delete series support for TSM
2016-04-27 13:33:07 -06:00
Jason Wilder e7891cbe4a Update changelog 2016-04-27 13:09:53 -06:00
Jason Wilder aefd2ad08b Add DeleteSeries and DeleteSeriesRange 2016-04-27 13:09:53 -06:00
Jason Wilder c306090361 Fix tombstone rename on windows 2016-04-27 13:09:53 -06:00
Jason Wilder 86d37614e4 Remove debugging from test output 2016-04-27 13:09:53 -06:00
Jason Wilder bf3aa5857d Don't add tombstone for timerange not contained by file 2016-04-27 13:09:53 -06:00
Jason Wilder 6042e114a1 Remove tombstoned values during compaction
This will skip blocks that are fully tombstoned as well as remove
points that have been removed within a block.
2016-04-27 13:09:53 -06:00
Jason Wilder 23bbfb2192 Prevent truncated WAL entries from panicing 2016-04-27 13:09:53 -06:00
Jason Wilder 0de21ade40 Add delete range of values support to WAL and cache loader 2016-04-27 13:09:53 -06:00
Jason Wilder d13d01b516 Allow deleting series by time on a shard 2016-04-27 13:09:53 -06:00
Jason Wilder 4d71d2b01f Add support for deleting cache values using time range 2016-04-27 13:09:52 -06:00
Jason Wilder c154cd4b4a Remove TSMReaderOptions
Not used
2016-04-27 13:09:52 -06:00
Jason Wilder c8bd41c2d8 Remove TSM reader Keys func
It's very inneficient and should never be used.
2016-04-27 13:09:52 -06:00
Jason Wilder 7e06d558d5 Update ContainsValue to handle tombstones 2016-04-27 13:09:52 -06:00
Jason Wilder 97504a552c Support time range tombstones in FileStore/KeyCursor 2016-04-27 13:09:52 -06:00
Jason Wilder 27c2bc3f15 Sepearate IndexWriter from TSMIndex
Allows for future versionion of the TSMIndex as well as removing
a lot of unnecessary code.
2016-04-27 13:09:52 -06:00
Jason Wilder bb82331db7 Move TSMIndex defn to reader.go 2016-04-27 13:09:52 -06:00
Jason Wilder 1ac0b01c5a Remove fileAccessor
No longer used
2016-04-27 13:09:52 -06:00
Jason Wilder a789e819a3 Remove NewTSMReaderWithOptions
There are two TSMIndex implementations, the directIndex and the
indirectIndex.  Originally, we only had the directIndex and later
added the indirectIndex and NewTSMReaderWithOptions in order to
allow both indexes to be used in tests and code.  This has created
a problem since we really only use the directIndex for writing and
always use the indirectIndex for reading.

This changes removes the NewTSMReaderWithOptions func so that it is
no longer possible to create a TSMReader with a directIndex.  This
will allow a lot of the block reading code used by the directIndex
to be removed and simplify maintainence.  It also gives better test
coverage of the code that is actually used by the TSM engine now.
2016-04-27 13:09:52 -06:00
Jason Wilder bc6328d196 Add time range support to tombstone files
This adds support for a time range to tombstone files to allow a subset
of points to be deleted instead of the whole series.  It changes the
tombstone file format to a binary format and maintains backwards compatibility
with the old text format tombstone files.
2016-04-27 13:09:52 -06:00
Edd Robinson 1d9919a0a8 Merge pull request #6477 from influxdata/er-influx-signals
Don't catch SIGQUIT; safer close of Quit channel
2016-04-27 16:48:31 +01:00
Edd Robinson 289fe5bfcb Don't catch SIGQUIT; safer close of Quit channel 2016-04-27 14:38:48 +01:00
Edd Robinson 33f1523890 Merge pull request #6478 from influxdata/er-mention-bot
Mention Bot configuration
2016-04-27 14:21:18 +01:00
Edd Robinson 586faad55e Mention Bot configuration 2016-04-27 13:20:20 +01:00
Vidhuran Harichandra Babu fedb7bfdbf added a button in admin ui to genearate URL for the query 2016-04-27 11:30:47 +03:00
Todd Persen 662ead753b Merge branch 'jonseymour-usability' 2016-04-26 12:18:52 -07:00
Jon Seymour d2adf3f6f0 improve feedback from admin UI regarding submission of queries.
It can sometimes be difficult to determine if a query submitted by
the UI has been accepted for execution.

In particular, if a query that returns empty results is followed
by a query that takes a long time, then the green success message
from the first query may be misleadingly displayed to the user when,
in fact, the second query is still in progress.

To address this, we always hide the query error and success divs
before the query is submitted. Previously, just the results were
cleared.

Secondly, if the user re-runs a query expecting slightly different results,
it can also be unclear whether the second attempt to execute the command
is simply redisplaying the results of the previous query or the results of the
resubmission, this is particularly true if the queries involved
have short execution times.

To support the ability to distinguish these two cases, we have any attempt
to use the history arrow also clear the results and status divs. This
reduces the ambiguity about whether the next results display is, in fact,
the result of executing a new query.

Signed-off-by: Jon Seymour <jon@wildducktheories.com>
2016-04-26 12:17:05 -07:00
Ben Johnson fd840f242c Merge pull request #6463 from benbjohnson/optimize
Reduce interrupt iterator checks & field access
2016-04-26 13:16:28 -06:00
Ben Johnson 9ea2b505a6 Merge pull request #6470 from benbjohnson/remove-server-influxql
Remove SHOW SERVERS & DROP SERVER
2016-04-26 12:28:31 -06:00
Ben Johnson 1b6524a7bf
reduce interrupt iterator checks
The interrupt iterator currently introduces a non-trivial amount of
overhead to queries by checking for interrupts every 256 points.
This commit adjusts that check to every 5000 points.

There are also several places where nested field access has been
adjusted to minimize field lookups.
2016-04-26 12:16:07 -06:00
Ben Johnson 291dd08cd4
remove SHOW SERVERS & DROP SERVER
This commit removes support for `SHOW SERVERS` and `DROP SERVER`
from the `influxql` package. It also removes extraneous cluster
testing code from `cmd/influxd/run`.

Fixes #6465
2016-04-26 10:28:42 -06:00
Jason Wilder 9a3a52a37c Merge pull request #6361 from PierreF/cluster-pool-hang
Fix cluster/pool release of connection
2016-04-25 14:12:06 -06:00
Pierre Fersing 9f9a3fc98e Fix cluster/pool release of connection 2016-04-25 20:06:51 +02:00
Ben Johnson f608e4cdb0 Merge pull request #6462 from oldmantaiter/measurement-fields-deadlock
Add safer locking to CreateFieldIfNotExists
2016-04-25 11:07:33 -06:00
Tait Clarridge df0e16a92f Add safer unlock to CreateFieldIfNotExists
A deadlock can occur if the field was created while we were waiting for the lock.
2016-04-25 12:44:58 -04:00
Kostas Botsas c39ff515ca Merge pull request #6450 from influxdata/changelog-update-0122
Changelog update for 0.12.2
2016-04-25 19:18:36 +03:00
Kostas Botsas f8885a49ee removed duplicates from v0.13
removed duplicate GH PR's from v0.13 which were merged in v0.12
2016-04-25 15:48:05 +03:00
Jonathan A. Sternberg 40e234539b Merge pull request #6458 from otoolep/fix_cli_version
Make it clear when CLI version is unknown
2016-04-23 09:11:14 -04:00
Philip O Toole ed7229fa2d Make it clear when CLI version is unknown
This mimics the behavior of the database binary.
2016-04-22 21:35:42 -07:00
Edd Robinson 42a073b408 Merge pull request #6453 from influxdata/er-changelog
Attempt to use union merge strategy on CHANGELOG
2016-04-22 18:21:33 +01:00
Edd Robinson 23bb5d95a6 Attempt to use union merge strategy on CHANGELOG 2016-04-22 18:18:20 +01:00