Commit Graph

2324 Commits (03c53f9bc6373ab485cc016c8cc1d175c537e72d)

Author SHA1 Message Date
Hercules Mango Churchill 6a98bb8aa4 Update changelog 2018-10-26 18:11:29 +00:00
Stuart Carnie 82447f1afe chore: Update changelog noting #10408 2018-10-25 11:32:33 -07:00
Hercules Mango Churchill 432f9eaf31 Update changelog 2018-10-17 14:53:08 +00:00
Hercules Mango Churchill 772a44eddf Update changelog 2018-10-16 13:34:47 +00:00
Hercules Mango Churchill b235036661 Update changelog 2018-10-10 14:12:37 +00:00
Hercules Mango Churchill 86ac358448 Update changelog 2018-10-09 16:08:23 +00:00
Hercules Mango Churchill 13e3dd5828 Update changelog 2018-10-08 14:35:28 +00:00
Hercules Mango Churchill 576c14c018 Update changelog 2018-10-08 14:31:38 +00:00
Hercules Mango Churchill 634f4219fd Update changelog 2018-10-04 18:55:37 +00:00
Jonathan A. Sternberg ad83a19ad9
Merge pull request #10333 from influxdata/js-subquery-fixes
Assorted fixes to subquery regressions in 1.6
2018-10-04 13:55:21 -05:00
Jonathan A. Sternberg 22fc9f6a19
Strip tags from a subquery when the outer query does not group by that tag
The following would, erroneously, not strip the tag from the inner
query:

    SELECT value FROM (SELECT value FROM cpu GROUP BY host)

The inner query was supposed to group by the host tag, but the outer
query should strip it away since it is not being grouped by anymore.
This fixes things so that the result will have the tags stripped away
when they are not requested in the grouping.
2018-10-04 10:05:46 -05:00
Jonathan A. Sternberg 634471f12e
Fix subquery functionality when a function references a tag from the subquery
It has previously been allowed for a subquery to use a tag within a
function (such as `count()`) when the tag is from a subquery and the
subquery itself references a field at some point to perform the join.

This functionality regressed in 1.6 because of a change in how
subqueries were executed that forgot to treat a tag the same as a string
field.

This fixes that regression and adds a test case to avoid hitting that
regression again.
2018-10-04 10:05:20 -05:00
Hercules Mango Churchill c6889b1a95 Update changelog 2018-10-02 14:43:52 +00:00
Hercules Mango Churchill 05acc10f0f Update changelog 2018-09-10 15:57:12 +00:00
Jonathan A. Sternberg 237801c212 Fixing the changelog
Since there is no v1.6.0 in the revision list for the changelog, it
assumes that the current commits are for 1.6.0.
2018-08-31 09:32:19 -05:00
Jonathan A. Sternberg c4f26dd62c Update changelog 2018-08-31 09:29:56 -05:00
Hercules Mango Churchill cfd4b0d35d Update changelog 2018-08-23 17:17:43 +00:00
Hercules Mango Churchill a8fd8d787d Update changelog 2018-08-21 17:27:43 +00:00
Hercules Mango Churchill ccc4fae0b5 Update changelog 2018-08-10 15:52:39 +00:00
Hercules Mango Churchill 0c724f1ce4 Update changelog 2018-08-10 13:50:59 +00:00
Hercules Mango Churchill 1320c09edd Update changelog 2018-08-09 18:21:02 +00:00
Jonathan A. Sternberg beae42a090
Merge pull request #10151 from influxdata/js-480-config-flux-section
Modify the `ifql` section to `flux`
2018-08-08 11:26:33 -05:00
Hercules Mango Churchill 3c94ab188b Update changelog 2018-08-07 16:23:18 +00:00
Hercules Mango Churchill 3f49ab190e Update changelog 2018-08-03 17:55:28 +00:00
Jonathan A. Sternberg be83e81102 Modify the `ifql` section to `flux`
Mark the breaking changes in the changelog.
2018-08-02 15:50:23 -05:00
Hercules Mango Churchill 3e12599a44 Update changelog 2018-07-31 16:29:17 +00:00
Hercules Mango Churchill 818b1838de Update changelog 2018-07-18 17:50:50 +00:00
Hercules Mango Churchill e4384fe1c2 Update changelog 2018-07-18 16:41:16 +00:00
Edd Robinson 5641b2ef32
Merge pull request #10067 from influxdata/cl-master
Update CHANGELOG on master for 1.5.x releases and 1.6 release date.
2018-07-18 17:40:58 +01:00
Hercules Mango Churchill 4c7de894f2 Update changelog 2018-07-18 13:18:34 +00:00
Gershon Shif bb1db2eb52 updated 1.6.0 releade date 2018-07-13 13:28:24 -07:00
Jacob Marble dda1ae0cde Update changelog for #10005 2018-07-13 13:07:18 -07:00
timhallinflux adbfee28b3
Update CHANGELOG.md
Fixed year.  Put time machine back into storage.
2018-07-11 11:29:04 -07:00
timhallinflux 9c21c4120f
Update CHANGELOG.md
Update to include release date for 1.6 and maintenance releases for 1.5.x where x > 0
2018-07-11 01:41:19 -07:00
Hercules Mango Churchill ab786a1331 Update changelog 2018-07-10 15:16:49 +00:00
Hercules Mango Churchill ba38447e60 Update changelog 2018-07-05 17:20:45 +00:00
Hercules Mango Churchill 48797873ee Update changelog 2018-06-28 16:25:36 +00:00
Hercules Mango Churchill aed6b23cc8 Update changelog 2018-06-26 17:27:21 +00:00
Gershon Shif 6befcba50f Added the description for PR 9996 2018-06-22 13:50:55 -07:00
Hercules Mango Churchill 0a4f9dc1a2 Update changelog 2018-06-22 18:20:12 +00:00
Hercules Mango Churchill 5414d37e3d Update changelog 2018-06-15 13:30:42 +00:00
Hercules Mango Churchill 968a390621 Update changelog 2018-06-14 00:50:14 +00:00
Jonathan A. Sternberg 87d2469877
Merge pull request #9964 from influxdata/js-enable-storage-service
Enable the storage service by default
2018-06-13 16:28:27 -05:00
Hercules Mango Churchill 2be1620c32 Update changelog 2018-06-13 20:06:27 +00:00
Hercules Mango Churchill 81e32387f0 Update changelog 2018-06-13 17:21:00 +00:00
Jonathan A. Sternberg 17ca220f33 Enable the storage service by default 2018-06-13 10:56:50 -05:00
Hercules Mango Churchill 1a16a4ec61 Update changelog 2018-06-01 15:32:21 +00:00
Hercules Mango Churchill 3ccc076b0f Update changelog 2018-05-31 20:49:41 +00:00
Hercules Mango Churchill 8efed00569 Update changelog 2018-05-30 19:44:28 +00:00
Hercules Mango Churchill 590d4d4fee Update changelog 2018-05-17 18:25:19 +00:00
Hercules Mango Churchill 86b90960a0 Update changelog 2018-05-17 17:35:51 +00:00
Hercules Mango Churchill e9605f8077 Update changelog 2018-05-15 17:51:35 +00:00
Hercules Mango Churchill 61bd9d386b Update changelog 2018-05-10 19:40:18 +00:00
Jacob Marble 5ac5fe2f9c Add missing entry to changelog 2018-05-03 09:34:44 -07:00
Hercules Mango Churchill 0f90374627 Update changelog 2018-05-02 13:29:24 +00:00
Hercules Mango Churchill 3a9a046b59 Update changelog 2018-05-01 20:08:52 +00:00
Hercules Mango Churchill ef505542ad Update changelog 2018-04-30 21:38:26 +00:00
Hercules Mango Churchill c3138fa926 Update changelog 2018-04-26 09:56:08 +00:00
Hercules Mango Churchill de942aca52 Update changelog 2018-04-26 09:42:32 +00:00
Hercules Mango Churchill bac46fd1bb Update changelog 2018-04-24 16:06:02 +00:00
Hercules Mango Churchill c3af5bb845 Update changelog 2018-04-23 21:26:02 +00:00
Hercules Mango Churchill fbb3486352 Update changelog 2018-04-23 18:10:13 +00:00
Hercules Mango Churchill 1bf0d16dbf Update changelog 2018-04-20 14:14:40 +00:00
Hercules Mango Churchill 12b1ecc40e Update changelog 2018-04-17 19:49:05 +00:00
Hercules Mango Churchill 4337f5a547 Update changelog 2018-04-05 20:03:07 +00:00
Hercules Mango Churchill 38d2d29f79 Update changelog 2018-04-04 21:16:18 +00:00
Hercules Mango Churchill 7576bed1ec Update changelog 2018-03-31 16:16:51 +00:00
Hercules Mango Churchill 8682fa9c3e Update changelog 2018-03-29 21:17:54 +00:00
Hercules Mango Churchill d4690eab2e Update changelog 2018-03-29 19:55:19 +00:00
Hercules Mango Churchill 50ef2907c6 Update changelog 2018-03-29 17:59:47 +00:00
Hercules Mango Churchill 3a85586618 Update changelog 2018-03-28 18:09:15 +00:00
Hercules Mango Churchill fd3c9c7de2 Update changelog 2018-03-27 16:19:59 +00:00
Hercules Mango Churchill 50ea3f8506 Update changelog 2018-03-21 20:36:45 +00:00
Hercules Mango Churchill 307aac873a Update changelog 2018-03-21 00:02:49 +00:00
Jonathan A. Sternberg f8d60a881d Refactor the math engine to compile the query and use eval
This change makes it so that we simplify the math engine so it doesn't
use a complicated set of nested iterators. That way, we have to change
math in one fewer place.

It also greatly simplifies the query engine as now we can create the
necessary iterators, join them by time, name, and tags, and then use the
cursor interface to read them and use eval to compute the result. It
makes it so the auxiliary iterators and all of their complexity can be
removed.

This also makes use of the new eval functionality that was recently
added to the influxql package.

No math functions have been added, but the scaffolding has been included
so things like trigonometry functions are just a single commit away.

This also introduces a small breaking change. Because of the call
optimization, it is now possible to use the same selector multiple times
as a selector. So if you do this:

    SELECT max(value) * 2, max(value) / 2 FROM cpu

This will now return the timestamp of the max value rather than zero
since this query is considered to have only a single selector rather
than multiple separate selectors. If any aspect of the selector is
different, such as different selector functions or different arguments,
it will consider the selectors to be aggregates like the old behavior.
2018-03-19 15:01:15 -05:00
Hercules Mango Churchill aeb4060cf7 Update changelog 2018-03-15 20:36:04 +00:00
Hercules Mango Churchill 7b1c0e75d3 Update changelog 2018-03-15 18:00:18 +00:00
Hercules Mango Churchill 9213546bb2 Update changelog 2018-03-14 17:12:00 +00:00
Hercules Mango Churchill 2b2e578c07 Update changelog 2018-03-12 17:38:29 +00:00
Hercules Mango Churchill ad3e5becfa Update changelog 2018-03-12 16:52:39 +00:00
Pangaj J G 7ab9e05c92
updated date 2018-03-08 17:36:50 +05:30
Gershon Shif 6ac835404e
Merge pull request #9520 from influxdata/gs-change-log-update
Updated CHANGELOG.md to the GA released date - 2017-03-06
2018-03-06 11:31:00 -08:00
Gershon Shif 356e9523d2 Updated CHANGELOG.md to the GA released date - 2017-03-06 2018-03-06 11:24:48 -08:00
Hercules Mango Churchill 48d1cc5839 Update changelog 2018-03-06 18:42:54 +00:00
Hercules Mango Churchill f627a2d48d Update changelog 2018-03-05 22:27:25 +00:00
Hercules Mango Churchill af1c35b4a2 Update changelog 2018-02-28 15:49:18 +00:00
Hercules Mango Churchill 3fa3af4e1b Update changelog 2018-02-28 15:22:12 +00:00
Hercules Mango Churchill 6a83bf4e39 Update changelog 2018-02-28 14:06:33 +00:00
Hercules Mango Churchill 8fa9f0f681 Update changelog 2018-02-27 16:26:59 +00:00
Hercules Mango Churchill bf88bbc232 Update changelog 2018-02-27 15:48:57 +00:00
Hercules Mango Churchill 01288bdb08 Update changelog 2018-02-21 22:33:40 +00:00
Hercules Mango Churchill 290717bd04 Update changelog 2018-02-21 16:55:35 +00:00
Hercules Mango Churchill 43c17cf4ff Update changelog 2018-02-21 15:14:57 +00:00
Hercules Mango Churchill 3f7076a68e Update changelog 2018-02-20 21:49:10 +00:00
Hercules Mango Churchill 5218efd1cb Update changelog 2018-02-15 18:22:05 +00:00
Hercules Mango Churchill 1a3af441cb Update changelog 2018-02-14 23:25:19 +00:00
Hercules Mango Churchill 482b2d5fb6 Update changelog 2018-02-14 22:24:10 +00:00
Hercules Mango Churchill b866943945 Update changelog 2018-02-14 19:49:29 +00:00
Jonathan A. Sternberg 2bb5b68833 Add an auto choice that will choose the most appropriate logger
This restricts the logging format options so console cannot be chosen.
This way, logs written to a non-TTY will never be the console format.
2018-02-14 11:56:29 -05:00
Jonathan A. Sternberg e451c6cadf Update changelog 2018-02-09 12:18:33 -06:00
Jonathan A. Sternberg ef12d464ad
Merge pull request #9423 from influxdata/js-9336-fix-imports-of-multiple-databases
Fix imports of multiple databases in a single import file from `influx -import`
2018-02-09 11:35:53 -06:00
Jonathan A. Sternberg ca7cc021ee Revert "Merge pull request #9352 from wwilfinger/walter/influx-inspect-export-import"
This reverts commit 9aeae7ce82, reversing
changes made to 35b44cc2f0.

The contributor was unable to sign the contributor license agreement so
we have to revert this commit.
2018-02-09 09:53:19 -06:00
Hercules Mango Churchill 7472c3eba4 Update changelog 2018-02-08 20:45:31 +00:00
Hercules Mango Churchill 262b69955e Update changelog 2018-02-08 19:30:46 +00:00
Jonathan A. Sternberg 0777382329 The automatic changelog generator was misconfigured
It inserted the changelog entry into version 1.0 because it couldn't
find any tags. Jenkins had been configured not to fetch any tags so the
changelog generator assumed this was the first version of the software.

Fetching tags is now enabled on Jenkins.
2018-02-08 10:56:49 -06:00
Hercules Mango Churchill 1d269965d6 Update changelog 2018-02-08 16:47:52 +00:00
Jonathan A. Sternberg d61b4c7f0d Configure Jenkins to automatically update the changelog
On the master or release branches, `git changelog` will be run to
automatically update the changelog based off of the pull requests that
have been merged and then it will commit and push those changes.
2018-02-06 14:34:55 -06:00
Walter Wilfinger 93a19040ce Fix imports of multiple dbs in one export file
batchWrite was using the last database and retention policy read from
the input file. Because batchWrite was called only every batchSize lines
or at EOF, databases with fewer than batchWrite points could be imported
into the incorrect database.

This change forces a flush with batchWrite whenever processDML reads a
change in database or retention policy.
2018-02-05 12:18:03 -06:00
Jonathan A. Sternberg 37374b2dc2
Merge pull request #9389 from influxdata/js-changelog-fix
Fix some changelog entries
2018-02-02 19:18:59 -06:00
Jonathan A. Sternberg 5d95348fcd Fix stddev() call to report itself as always returning a float 2018-02-02 12:20:27 -06:00
Jonathan A. Sternberg 157fc0ccc4 Fix some changelog entries
Remove some miscellaneous whitespace at the end of changelog entries and
fix two older entries. One accidentally included an inline html tag and
didn't display. The other was missing a newline between two changelog
entries and so didn't display correctly as separate bullet points.
2018-02-02 11:04:55 -06:00
Joe LeGasse 21a58235fc
Merge branch 'master' into jl-race 2018-01-29 15:52:18 -05:00
Patrick Hemmer 2dc2c53093 fix nil err panic in msgpack httpd WriteResponse 2018-01-23 19:54:00 -05:00
Mark Rushakoff 4b1a35fb93 Fix data races in tcp.Mux and tcp.listener
This fixes two data races around concurrent calls to (*tcp.Mux).Close
and (*tcp.Mux).handleConn, discovered in Enterprise test suites.
2018-01-18 16:10:10 -08:00
Jonathan A. Sternberg 05f83d27ee Update influxql version
Fixes #9290.
2018-01-18 09:50:01 -06:00
Joe LeGasse 425a5e5f17 tsm1: prevent WaitGroup race 2018-01-17 13:08:11 -05:00
Joe LeGasse b3391eaaad update CHANGELOG 2018-01-16 21:32:11 -05:00
Adam 938db68198
Update restore functionality to run in online mode, consume Enterprise backup files. (#9207)
* Live Restore + Enterprise data format compatability

* Extended ImportData to import all DB's if no db name given

* Added a new enterprise data test, and backup command now prints the backup file paths at conclusion

* Added whole-system backup test

* Update to use protobuf in all enterprise data cases

* Update to test to do cross-testing with enterprise version

* incremental enterprise backup format support
2018-01-10 13:59:18 -05:00
hpbieker 35cf21ed43 Added changelog. 2018-01-03 09:50:31 +01:00
Jonathan A. Sternberg da9774fd27
Merge pull request #9184 from influxdata/js-influx-node-id-option
Allow setting the node id in the influx cli program
2018-01-02 14:34:37 -06:00
Jonathan A. Sternberg af23897940 Allow setting the node id in the influx cli program
The string `node <n>` can be used to specify which data node the data
should be retrieved from. This uses the `node_id=X` query parameter that
is supported, but wasn't exposed anywhere in the client library.

We use this feature enough internally when attempting to find
inconsistencies or network errors that it is easier if this is just
supported. Otherwise, I continue having to recompile the CLI program
every time I need to do this.

To clear a previously set node, you can use `node 0` or `node clear`.
2018-01-02 11:15:19 -06:00
Jonathan A. Sternberg ecba19eb27 Prevent a panic when a query simultaneously finishes and is killed at the same time
There is a strange race condition where a query can be killed and finish
at approximately the same time. If this happens, the query gets
retrieved by the killing task, the query gets closed by the normal
processing thread, and then the killing task attempts to kill the query
afterwards. Since the close doesn't mark the query as already killed
(since it's not killed, just merely unused), the killing thread attempts
to close the channel again.

Mark the query as killed whenever it is closed to prevent a double close
from happening. This should never cause the status to be erroneously
reported since the query status is removed from the query table within
the same lock scope.
2018-01-02 11:04:01 -06:00
Stuart Carnie dc15805b7c Update CHANGELOG 2017-12-27 17:27:23 -07:00
Jonathan A. Sternberg 30e35749ba Allow lone boolean literals in a condition expression 2017-12-19 12:08:53 -06:00
Jonathan A. Sternberg 5fcf57a764 Remove extraneous newlines from the log
The newlines were accidentally kept when changing the logger. They are
not necessary and mess up the log output.
2017-12-14 16:41:42 -06:00
David Norton 0ae7fc821d feat #9212: update CHANGELOG.md 2017-12-13 09:29:07 -05:00
Stuart Carnie 44f0147f67 update CHANGELOG 2017-12-11 08:57:37 -07:00
Stuart Carnie beef4e64d9 update CHANGELOG 2017-12-07 19:21:17 -07:00
Adam a0b2195d6b
Pulled in backup-relevant code for review (#9193)
for issue #8879
2017-12-07 11:35:20 -05:00
Jason Wilder 0b929fe669 Update changelog 2017-12-06 13:45:43 -07:00
Mark Rushakoff d8d0d2440a Fix incorrect link in CHANGELOG 2017-11-29 16:25:01 -08:00
Andrew Hare 0f937065c1 Update CHANGELOG 2017-11-29 13:52:04 -07:00
Edd Robinson c2f7f0f430
Merge pull request #8491 from influxdata/er-tsi-restore
Add support for TSI shard streaming and shard size
2017-11-29 15:40:52 +00:00
Andrew Hare d7e328050c
Merge branch 'master' into ah-truncate-shards 2017-11-28 17:25:31 -07:00
Andrew Hare 28ec02a7c1
Merge branch 'master' into amh-8789 2017-11-28 17:05:42 -07:00
Jonathan A. Sternberg db60a83d5a Fix query compilation so multiple nested distinct calls is allowable
When refactoring the query engine, I thought calling
`count(distinct(value))` multiple times was disallowed and so the
refactor made it so that wasn't possible.

It turns out that this pattern is allowed because since the distinct is
nested, it is aggregated anyway and can be combined with other
aggregates.

This removes the erroneously placed restriction.
2017-11-28 11:09:32 -06:00
Edd Robinson 12a2ff7fac Add support for TSI shard streaming and shard size
This commit firstly ensures that a shard's size on disk is accurately
reported when using the tsi1 index, by including the on-disk size of the
tsi1 index in the calculation.

Secondly, this commit add support for shard streaming/copying when using
the tsi1 index. Prior to this, a tsi1 index would not be correctly
restored when streaming shards.
2017-11-28 15:57:02 +00:00
Jonathan A. Sternberg a73c3a1965 Fix race condition in the merge iterator close method
If the close happens when next is being called, it can result in a race
condition where the current iterator gets set to nil after the initial
check.

This also fixes the finalizer so it runs the close method in a goroutine
instead of running it by itself. This is because all finalizers run on
the same goroutine so a close that takes a long time can cause a backup
for all finalizers. This also removes the redundant call to
`runtime.SetFinalizer` from the finalizer itself because a finalizer,
when called, has already cleared itself.
2017-11-27 16:55:41 -06:00
Stuart Carnie c31fa86c34 update CHANGELOG 2017-11-27 13:29:21 -07:00
Jason Wilder 71f5780c8a
Merge branch 'master' into master 2017-11-27 11:24:37 -07:00
Andrew Hare 89589adea5 Fix CLI to allow quoted database names
Change the CLI to support quoted database names in `use` statements.
This also allows for all database names to be specified, including names
that contain spaces.
2017-11-20 16:30:27 -07:00
Jason Wilder 50b6ace75f Fix wait reused while disabling compactions 2017-11-20 14:55:47 -07:00
Jonathan A. Sternberg e6f52a687e
Merge pull request #9123 from influxdata/js-9058-fix-space-required-after-regex-operator
Fix space required after regex operator
2017-11-17 10:54:50 -06:00
wyc c0d184ee93 Influx CLI: More Connection Warnings
If we don't detect a server version, then there's a good chance that
we're not speaking to an InfluxDB server. We should warn the user about
this to make it easier for them to debug.
2017-11-16 11:59:29 -05:00
Jonathan A. Sternberg 5f16934aa7 Fix space required after regex operator
Fixed via influxdata/influxql#4 by @stop-start. Thanks!
2017-11-16 08:45:40 -06:00
Mark Rushakoff 8b345bf5aa Update changelog for 1.4.2 release 2017-11-15 14:49:51 -08:00
Jason Wilder dde2d87ec9 Update changelog
[ci skip]
2017-11-15 09:06:31 -07:00
Mark Rushakoff 711da24562 Update changelog for 1.4.1 2017-11-14 08:15:57 -08:00
Jason Wilder 48e21e6fc8
Merge pull request #9084 from influxdata/jw-delete-time
Handle high cardinality deletes in TSM engine
2017-11-13 14:39:54 -07:00
Jason Wilder a8646b6d4d Update changelog
[ci skip]
2017-11-13 14:33:47 -07:00
e-wave 2123fc3b04 changelog 2017-11-13 18:24:01 +02:00
Jonathan A. Sternberg 0b7c56bcd8 Update the zap logger dependency
The previous sha was taken from a revision on a devel branch that I
thought would continue staying in the tree after it was merged. That
revision was rebased away and the API was changed for the logger.

This updates the usage of the logger and adds a simple package for
constructing the base logger.

The 1.0 version of zap changed the format of the default console logger
so this change moves over to this new logger instead of attempting to
retain backwards compatibility with the old format.
2017-11-10 16:27:16 -06:00
Jason Wilder ed246db55a Fix panic: runtime error: slice bounds out of range
Fixes #8538
2017-11-08 17:00:25 -07:00
Ben Johnson 156f25ac23
Improve SHOW TAG KEYS performance. 2017-11-07 10:59:19 -07:00
Andrew Hare ecb3952fa9 Allow human-readable byte sizes in config
Update support in the `toml` package for parsing human-readble byte sizes.
Supported size suffixes are "k" or "K" for kibibytes, "m" or "M" for
mebibytes, and "g" or "G" for gibibytes. If a size suffix isn't specified
then bytes are assumed.

In the config, `cache-max-memory-size` and `cache-snapshot-memory-size` are
now typed as `toml.Size` and support the new syntax.
2017-11-01 11:09:09 -05:00
Jonathan A. Sternberg 9dc60962c7 Handle utf16 files when reading the configuration file
Windows computers may produce a utf16 file from the command line that
contains a byte-order-mark. Along with handling the utf8
byte-order-mark, this also handles the utf16 for better Windows
compatibility.
2017-10-30 22:48:44 -05:00
Jason Wilder 355d742d4a Update to go 1.9.2 2017-10-30 11:49:47 -06:00
Luís Eduardo 905945ed71 Support long lines when importing with the client
Fixes #8986.
2017-10-30 17:16:41 +00:00
Mark Rushakoff e7a1be3e1f Include CHANGELOG updates from 1.3.7 and earlier 2017-10-26 16:13:23 -07:00
Ben Johnson 49c1fca036
Handle nil MeasurementIterator. 2017-10-26 11:25:46 -06:00
Edd Robinson 26cc46d55d Merge pull request #8984 from influxdata/er-show-cardinality
Add EXACT CARDINALITY commands
2017-10-26 17:16:30 +01:00
Edd Robinson 550fd4a8c2 Merge pull request #9017 from influxdata/er-8819-retention-index
Ensure retention service removes shards locally
2017-10-26 17:15:43 +01:00
Edd Robinson 50d73497c5 CHANGELOG 2017-10-26 16:22:48 +01:00
Edd Robinson 2ea2abb001 Remove possibility of race when dropping shards
Fixes #8819.

Previously, the process of dropping expired shards according to the
retention policy duration, was managed by two independent goroutines in
the retention policy service. This behaviour was introduced in #2776,
at a time when there were both data and meta nodes in the OSS codebase.
The idea was that only the leader meta node would run the meta data
deletions in the first goroutine, and all other nodes would run the
local deletions in the second goroutine.

InfluxDB no longer operates in that way and so we ended up with two
independent goroutines that were carrying out an action that was really
dependent on each other.

If the second goroutine runs before the first then it may not see the
meta data changes indicating shards should be deleted and it won't
delete any shards locally. Shortly after this the first goroutine will
run and remove the meta data for the shard groups.

This results in a situation where it looks like the shards have gone,
but in fact they remain on disk (and importantly, their series within
the index) until the next time the second goroutine runs. By default
that's 30 minutes.

In the case where the shards to be removed would have removed the last
occurences of some series, then it's possible that if the database was already at its
maximum series limit (or tag limit for that matter), no further new series
can be inserted.
2017-10-26 16:15:13 +01:00
Edd Robinson c8a679421f Update CHANGELOG.md 2017-10-26 15:41:30 +01:00
Andrew Montgomery-Hurrell 2ed0d2d1c9
Make client errors more helpful on downstream errs
When a downstream server such as a proxy or loadbalancer between
influxdb and the client produces an error, the client currently does
not make this very obvious.

This change introduces checks on both the content type and the
influx version header to identify whether a request was served by
influxdb itself and returns a more appropriate error in the cases
where it can be determined a downstream issue is at play.
2017-10-26 11:56:29 +01:00
Edd Robinson 0f4c251148 Update CHANGELOG 2017-10-25 13:34:44 +01:00
Stuart Carnie 63d7310572 update CHANGELOG 2017-10-24 14:17:02 -07:00
Ben Johnson 5a77238f30
Sort & validate TSI key value insertion. 2017-10-23 10:46:01 -06:00
Ben Johnson 5af2d73867
CHANGELOG 2017-10-20 15:14:39 -06:00
Stuart Carnie d7b73f9b02 Update CHANGELOG 2017-10-20 08:58:45 -07:00
Andrew Hare 13c3808aff Add test 2017-10-19 15:57:16 -06:00
Jonathan A. Sternberg 2005a8c8e5 Remove the pidfile after the server has exited 2017-10-19 16:33:59 -05:00
Jonathan A. Sternberg 83ecab6299 Prevent deadlock during collectd, graphite, opentsdb, and udp shutdown
All of these services start up goroutines and then wait for the
goroutines to finish. Each of them has a `tsdb.PointBatcher` that may
return a point during the shutdown sequence. During the shutdown
sequence, a lock was held. This lock may get accessed when attempting to
write the point that came back from the `tsdb.PointBatcher`. This caused
the read lock attempt to wait forever for the write lock to be unlocked
during `Close()`.

This modifies these methods so that the write lock is released while
waiting for goroutines to finish in these three services.
2017-10-19 15:57:05 -05:00
Jason Wilder 05131f4453 Fix indirectIndex not removing fully deleted series
If multiple tombstones exists for a series that ended up causing the
full data to be deleted, the blocks were not removed from the offsets
in the index.  This causes the TSMReader to report that a key exist
but does not have any data.

During a compaction, every key should have at least one value.  Since
this invariant was broken, the compaction aborted early and ends up
dropping all series keys that are lexigraphically greater than where
the breakage occured.  This would cause data to be dropped during the
compaction.
2017-10-18 18:16:41 -06:00
Jason Wilder 4d171f3f40 Fix data deleted outside of time range 2017-10-18 13:39:47 -06:00
Ben Johnson 264971fc5a
CHANGELOG 2017-10-18 07:22:49 -06:00
Andrew Hare e6aa5023eb Create a command to truncated shard groups 2017-10-16 20:34:26 -06:00
Jason Wilder fb7135ddc8 Fix corrupted wal segment panic on 32 bit systems 2017-10-16 09:41:20 -06:00
Jonathan A. Sternberg f20cab6e99 Implicitly decide on the lower limit for fill queries when none is present
This allows the query:

    SELECT mean(value) FROM cpu GROUP BY time(1d)

To function in some way that makes sense. The upper limit is implicitly
the `now()` starting time and the lower limit will be whichever interval
the lowest point falls into.

When no lower bound is specified and `max-select-buckets` is specified,
the query will only consider points that would satisfy
`max-select-buckets`. So if you have one point written in 1970, have
another point within the last minute, and then do the above query with
`max-select-buckets` being equal to 10, the older point from 1970 will
not be considered.
2017-10-05 15:56:44 -05:00
Jason Wilder 7e2b22f8d4 Merge pull request #8886 from influxdata/jw-planner
Improved compaction scheduling
2017-10-04 09:03:59 -06:00
Mark Rushakoff bb6cb80d45 Update changelog 2017-10-03 16:43:26 -07:00
Mark Rushakoff 0aaede8421 Update CHANGELOG 2017-10-03 11:28:16 -07:00
Edd Robinson c80c3636dd Merge pull request #8904 from influxdata/er-changelog
Update 1.3.3 release date
2017-10-03 18:43:56 +01:00
Mark Rushakoff 7525d331d1 Merge branch 'master' into mr-systemd-detection 2017-10-03 09:54:45 -07:00
Jason Wilder a43e652985 Update changelog 2017-10-03 10:49:46 -06:00
Edd Robinson defb81413e Merge branch 'master' into er-changelog 2017-10-03 12:20:49 +01:00
Jonathan A. Sternberg 06994a6585 Revert "Convert duration to string without dot and zeros" 2017-10-02 16:31:03 -05:00
Mark Rushakoff 4d32c157a9 Update changelog 2017-10-02 11:49:16 -07:00
Lyon Hill 38dc837910 Fix a minor memory leak when batching points for some services.
fixes #8895
2017-10-02 11:26:25 -06:00
Jonathan A. Sternberg 1a920c5c42 Merge pull request #8897 from influxdata/js-msgpack-formatter
Add message pack formatter
2017-10-02 11:31:35 -05:00
Jonathan A. Sternberg a0df2fe504 Add message pack formatter 2017-09-29 14:58:38 -05:00
Andrew Hare 4d6672fa66 Merge with master 2017-09-29 11:07:40 -06:00
Jonathan A. Sternberg 9db4439984 Merge pull request #8840 from liketic/bugfix/issues/8813
Convert duration to string without dot and zeros
2017-09-29 11:24:40 -05:00
liketic 986a0e18da Convert duration to string without dot and zeros 2017-09-28 11:56:25 -05:00
Jonathan A. Sternberg 7d1c32fb96 Merge pull request #8763 from influxdata/js-8762-document-subquery-ordering-change
Document that query ordering must be consistent in subqueries
2017-09-28 11:15:22 -05:00
Mark Rushakoff 8c70cfd74b Merge pull request #8808 from liketic/feature/issues/8590
Influx CLI: Make cli case insensitive
2017-09-28 09:13:19 -07:00
Jonathan A. Sternberg 311f1fa619 Merge pull request #8864 from influxdata/js-8848-subquery-math-on-greater-than-two-fields
Prevent deadlock when doing math on the result of a subquery
2017-09-25 11:58:02 -05:00
Jonathan A. Sternberg bcf2e8fca5 Prevent deadlock when doing math on the result of a subquery
The `fill(none)` attribute got set on subqueries, but that can cause an
issue with certain subqueries just like it caused a deadlock on outer
queries.
2017-09-22 14:45:53 -05:00
Edd Robinson 5b7fc517fa Improve performance of TSI bloom filter
This commit replaces the previous hashing algorithm used by the pkg.Filter with
one based on xxhash. Further, taking from the hashing literature, we can
represent k hashes with only two hash function, where previously Filter was using
four.

Further, unlike `murmur3`, `xxhash` is allocation-free, so allocations have
dramatically reduced when inserting and checking for hashes.
2017-09-22 17:59:39 +01:00