Commit Graph

13288 Commits (7fc1ead3d3d030fbd9658ffc44acbbd2b6ee6c7c)

Author SHA1 Message Date
Jonathan A. Sternberg 7fc1ead3d3 Add a reference to the license for zap-logfmt 2018-02-15 15:50:49 -06:00
Hercules Mango Churchill 1a3af441cb Update changelog 2018-02-14 23:25:19 +00:00
Stuart Carnie 88d6543b84
Merge pull request #9445 from influxdata/sgc-nologo
Suppress the InfluxDB banner if the log output is not a TTY
2018-02-14 15:52:13 -07:00
Hercules Mango Churchill 482b2d5fb6 Update changelog 2018-02-14 22:24:10 +00:00
Stuart Carnie 1303030184 Suppress the InfluxDB banner if the log output is not a TTY 2018-02-14 15:23:58 -07:00
Jonathan A. Sternberg 4c76e5f441
Merge pull request #9443 from influxdata/js-9273-reduce-field-expressions
Fix regression when math between literals is used in a field
2018-02-14 17:19:24 -05:00
Hercules Mango Churchill b866943945 Update changelog 2018-02-14 19:49:29 +00:00
Jonathan A. Sternberg dd21fa15fd
Merge pull request #9056 from influxdata/js-configure-logging
Add logging configuration to the main configuration file
2018-02-14 14:39:42 -05:00
Jonathan A. Sternberg ca471f7d0f Fix regression when math between literals is used in a field 2018-02-14 14:34:34 -05:00
Jonathan A. Sternberg d864c7e857 Lock the writer for the logger to prevent a race condition when used from multiple goroutines 2018-02-14 14:04:08 -05:00
Mark Rushakoff 26545b33d6
Merge pull request #9439 from influxdata/mr-metauser-isadmin
Remove IsAdmin() method from meta.User interface
2018-02-14 09:05:17 -08: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
Stuart Carnie 46a6154657
Merge pull request #9441 from influxdata/sgc-compact
simplify code
2018-02-14 09:46:03 -07:00
Jonathan A. Sternberg 2efc9ddbac Add an option to suppress the initial logo
For any systems that want to read the log file in the specific format,
the logo being printed on restart may not be good for those parsers
since the log parser would have to be aware of the logos existance or
capable of just ignoring lines it couldn't parse.

This gives an option to disable the printed logo if required.

Like other logging options, this will fail if the configuration file
itself is invalid.
2018-02-14 10:11:02 -05:00
Jonathan A. Sternberg ccf2e549b8 Add logging configuration to the main configuration file
Make logfmt the default log output format with json and a more user
friendly console into possible options.
2018-02-14 10:11:02 -05:00
Stuart Carnie 6e47ff8d7f simplify code 2018-02-14 06:55:48 -07:00
Mark Rushakoff f7fc6a6501 Remove IsAdmin() method from meta.User interface
The method was only called in tests.
2018-02-13 16:59:22 -08:00
Edd Robinson 56b4a91acf
Merge pull request #9434 from influxdata/er-card-nodb
Ensure db specified for SHOW CARDINALITY
2018-02-13 14:15:30 +00:00
Edd Robinson 5a8f0202fb Ensure db specified for commands 2018-02-13 13:24:23 +00:00
Jonathan A. Sternberg 0b905c059f
Merge pull request #9430 from influxdata/js-no-verbose
Use --no-verbose with wget to reduce output
2018-02-12 10:21:31 -06:00
Jonathan A. Sternberg 9c9f51a69c
Merge pull request #9426 from influxdata/js-monitor-test-deadlock
Fix a deadlock in the monitor test
2018-02-12 08:40:31 -06:00
Jonathan A. Sternberg 156cee7c96 Use --no-verbose with wget to reduce output
The progress bar makes it hard to scroll through the output and the
progress bar information is never useful.
2018-02-11 22:37:43 -06:00
Jonathan A. Sternberg b740567fe4 Fix a deadlock in the monitor test
A deadlock would happen if the monitor attempted to write multiple
points. Since the test only reads the first set of points written to the
channel and does not read from the channel on the second read, the
WritePoints call deadlocks while the monitor is trying to close since
the monitor requires all of its goroutines to end. But, one of the
goroutines is attempting to call WritePoints which is waiting for the
test to read the point it is trying to write.

This change ensures that the done channel is closed before calling close
so the WritePoints call can exit.
2018-02-09 14:18:25 -06: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 c58ca8d0ea Fix imports of multiple databases in a single import file from `influx -import`
If multiple databases were specified, then the earlier writes would be
written to the later database and/or retention policy because points
were only written out after the batch size was reached. This forces the
batcher to flush whenever the database context switches.
2018-02-09 10:33:53 -06:00
Edd Robinson 90c921fc0f
Merge pull request #9422 from influxdata/er-sketches
Ensure nil sketches never returned
2018-02-09 15:54:02 +00: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
Edd Robinson e5c8fd9dc5 Ensure nil sketches never returned 2018-02-09 15:29:42 +00:00
Stuart Carnie 8f978068f9
Merge pull request #9415 from influxdata/sgc-storage
restore `MetaClient`, which is needed by store
2018-02-09 07:51:36 -07:00
Hercules Mango Churchill 7472c3eba4 Update changelog 2018-02-08 20:45:31 +00:00
Jonathan A. Sternberg 4a22f7b44d
Merge pull request #8878 from influxdata/amh-8794
Do not report an error when dropping a CQ on a non-existent DB/RP
2018-02-08 14:39:20 -06:00
Hercules Mango Churchill 262b69955e Update changelog 2018-02-08 19:30:46 +00:00
Andrew Hare d21ebfe531 Do not report an error when dropping a CQ on a non-existent DB/RP
This makes the behvior similar to other places in the DB where we
don't return an error when we try to drop an object from a non-
existent database.
2018-02-08 13:28:47 -06:00
Stuart Carnie 41dc96ca91 restore `MetaClient`, which is needed by store
* Switch from an anonymous type to avoid false positives with
  `megacheck`
2018-02-08 12:13:13 -07:00
Jonathan A. Sternberg c6d01e3fcf
Merge pull request #9403 from influxdata/js-9259-influx-cli-port-fix
Do not explicitly specify ports 80 or 443 when they are the default port
2018-02-08 12:47:22 -06:00
Ben Johnson 0af6fb8e10
Merge pull request #9412 from influxdata/er-series-sketches
Sketches, Cont'd
2018-02-08 11:41:39 -07: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 6622ac571b The git config command should not have an equals sign, but two arguments 2018-02-08 10:47:13 -06:00
Jonathan A. Sternberg 1b270973b9
Merge pull request #9401 from oiooj/pr-win-history
Fix windows history file location
2018-02-08 10:42:55 -06:00
Jonathan A. Sternberg fab5c70f6d Do not explicitly specify ports 80 or 443 when they are the default port
The default port for HTTP is 80 and HTTPS is 443. When you host InfluxDB
on a service that uses a reverse proxy, the `Host` header needs to be
exactly correct. Since the host header isn't expecting to see the port
when it is the default, this causes routing to fail.
2018-02-08 10:25:04 -06:00
kun 7bc52b7a81 Fix windows history file location 2018-02-09 00:20:52 +08:00
Jonathan A. Sternberg c3e0536208
Merge pull request #9410 from influxdata/js-update-github-pr-template
Remove unnecessary checkboxes in the pull request template
2018-02-08 10:08:02 -06:00
Ben Johnson ed9c0576d4
Add series sketches, fix tombstones in index files. 2018-02-07 14:52:13 -07:00
Edd Robinson 0d164f3164
WIP - tsi integration sketches 2018-02-07 14:52:13 -07:00
Edd Robinson 64171229e8
Add test for index sketches 2018-02-07 14:52:13 -07:00
Edd Robinson 7a55735562
Add option to set LogFile compaction size 2018-02-07 14:52:13 -07:00
Edd Robinson 544329380f
Add empty series sketches back to tsi1 index
This commit adds initial empty sketches back to the tsi1 index, as well
as ensuring that ephemeral sketches in the index `LogFile` are updated
accordingly.

The commit also adds a test that verifies that the merged sketches at
the store level produce the correct results under writes, deletions and
re-opening of the store.

This commit does not provide working sketches for post-compaction on the
tsi1 index.
2018-02-07 14:52:13 -07:00
Edd Robinson c8f30da88a
Tidy up tests 2018-02-07 14:52:13 -07:00