Commit Graph

7176 Commits (af175c6b6591242e7e29790d2491ba6ca956388d)

Author SHA1 Message Date
Philip O'Toole af175c6b65 Merge pull request #3898 from nickrobinson/patch-1
Updating imports in README example
2015-08-31 10:55:50 -07:00
Nick Robinson 40a18d82a8 Updating imports in README example
Updating imports in the README example so that it will compile
2015-08-30 07:51:18 -04:00
Philip O'Toole 2de059c663 Merge pull request #3892 from influxdb/if_not_exists
CREATE DATABASE [IF NOT EXISTS] ...
2015-08-29 10:08:01 -07:00
Philip O'Toole 4304526fea Update CHANGELOG 2015-08-29 09:56:15 -07:00
Philip O'Toole 78170bd798 Parse multiple tokens at once (NOT EXISTS) 2015-08-29 09:56:15 -07:00
Philip O'Toole 5ae004d062 Update INFLUXQL keywords
[ci skip]
2015-08-29 09:56:15 -07:00
Philip O'Toole 0805773dd3 Circle overrides exist, remove wrong comment 2015-08-28 22:25:18 -07:00
Philip O'Toole 1a55951f36 Backend support for database IF NOT EXISTS 2015-08-28 19:04:54 -07:00
Philip O'Toole 1228c985ea Parser support for CREATE DATABASE IF NOT EXISTS 2015-08-28 19:04:50 -07:00
Philip O'Toole 0a80d8f7ab Merge pull request #3890 from influxdb/neater_startup_log2
Make the startup log message actually first
2015-08-28 15:27:46 -07:00
Philip O'Toole e0066760ba Make the startup log message actually first 2015-08-28 15:14:20 -07:00
Jason Wilder b745d63728 Merge pull request #3886 from influxdb/jw-wal
Prevent write timeouts due to lock contention in WAL
2015-08-28 15:26:50 -06:00
Jason Wilder 4ff9695c64 Update changelog 2015-08-28 15:11:47 -06:00
Jason Wilder af2531b373 Use read lock to check current memory size of partition
A write lock was being taken to read the memory size to determine if writes
should be paused.  What happens is that writers get blocked indefintely when
trying to acquire a write lock which makes writes pause (or stop) for long periods
of time.
2015-08-28 15:11:30 -06:00
Jason Wilder 6ba17eca36 Reduce lock contention on Log.WritePoints
The log was deferring the release of the read lock on the WAL.  This had
the affect that a read-lock was held until after the partition finished writing
(which maintains it's own locks).  The read lock is only needed around the call
to pointsToPartions so it can get a consistent copy of the points to write.  After
that calls returns, a lock is not needed so free it immediatedly.
2015-08-28 15:11:30 -06:00
Philip O'Toole f388dd398d Update CHANGELOG for PR 3868
[ci skip]
2015-08-28 14:01:21 -07:00
Philip O'Toole dd0530bd83 Merge pull request #3868 from SwannCroiset/fix-script-init
Add shell option to start the daemon on CentOS
2015-08-28 14:00:21 -07:00
Jason Wilder ef1699aec2 Merge pull request #3884 from influxdb/jw-wal
Fix two panics in the WAL
2015-08-28 13:58:34 -06:00
Jason Wilder 87f0e15560 Update changelog 2015-08-28 13:41:37 -06:00
Jason Wilder f5f8f04116 Fix panic in addToCache
addToCache is called in a goroutine and can panic if the server is closed while opening.  If
part of the open func errors, it returns an error and immediately calls close.  close sets
p.cache to nil which causes the goroutine trying to initialized the cache to panic as well.  The
goroutine should run under a write lock to avoid this race/panic.
2015-08-28 13:01:17 -06:00
Jason Wilder eb4a8d4f4a Fix panic when logging error in WAL
If LoadMetadataIndex() tries to log an error, it causes a panic because the
logger is not set until Open() is called, which is after LoadMetaDataIndex() returns.
Instead, just set the logger up when the WAL is created.
2015-08-28 12:59:38 -06:00
Philip O'Toole cf58c38995 go fmt fixes 2015-08-27 18:20:41 -07:00
Philip O'Toole 52ecfffce7 Merge pull request #3877 from influxdb/rm_obsolete_diags
Remove obsolete diagnostics code
2015-08-27 17:24:45 -07:00
Philip O'Toole 6453777bc0 Remove obsolete diagnostics code 2015-08-27 17:07:00 -07:00
Philip O'Toole 841319e8a0 Account for older-style response in tests
It appears this response may still be emitted sometimes.
2015-08-27 16:23:59 -07:00
Philip O'Toole 584d3c68ea Minor formatting typo in CHANGELOG 2015-08-27 16:11:51 -07:00
Philip O'Toole 5cf8920d4d Merge pull request #3856 from influxdb/retention_tweaks
Minor retention tweaks
2015-08-27 16:10:37 -07:00
Philip O'Toole 3184103c2a Update CHANGELOG 2015-08-27 16:09:48 -07:00
Philip O'Toole d771612718 Set default retention check interval to 30 minutes
Since the minimum retention period is 1 hour, checking every 10 minutes
seems excessive and generates noise in the logs.
2015-08-27 16:08:03 -07:00
Philip O'Toole ae825fdf3d Correct typo in retention service logs 2015-08-27 16:08:03 -07:00
Philip O'Toole afa3cd02c7 Merge pull request #3863 from influxdb/move_to_go1.5
Move to Go 1.5
2015-08-27 15:27:26 -07:00
Jason Wilder 6493cfdc45 Merge pull request #3870 from influxdb/jw-3869
Remove unused Database index names and sorting
2015-08-27 14:00:30 -06:00
Daniel Morsing bb36faff4c Merge pull request #3862 from influxdb/seekonce
WIP don't bother seeking a cursor if it wont yield a useful value
2015-08-27 13:36:47 -06:00
Philip O'Toole 55d71a075c Explicit sync with test server to avoid races
From
516f0d1c90

"Note that we use a channel send here and not a close.
The race detector doesn't know that we're waiting for a timeout
and thinks that the waitgroup inside httptest.Server is added to
concurrently with us closing it. If we timed out immediately, we could close
the testserver before we entered the handler. We're not timing out immediately
and there's no way we would be done before we entered the handler, but the
race detector doesn't know this, so synchronize explicitly.
2015-08-27 11:51:02 -07:00
Jason Wilder a4c1d9a9a7 Remove unused Database index names and sorting
Writes could timeout and when adding new measurement names to the
index if the sort took a long time.  The names slice was never
actually used (except a test) so keeping it in index wastes memory
and sort it wastes CPU and increases lock contention.  The sorting
was happening while the shard held a write-lock.

Fixes #3869
2015-08-27 11:57:20 -06:00
dgnorton fec53e8357 Merge pull request #3866 from influxdb/dgn-influxql-spec-update
update INFLUXQL.md
2015-08-27 13:35:38 -04:00
aviau 0b4a55ded6 Fix 32bit Dockerfile 2015-08-27 09:58:19 -07:00
Philip O'Toole e7978a0995 Install Go 1.5 in the Docker i386 container 2015-08-27 09:58:19 -07:00
Philip O'Toole 05a124b24d Update CHANGELOG 2015-08-27 09:58:19 -07:00
Philip O'Toole 191163c7c7 Move to Go 1.5 2015-08-27 09:58:15 -07:00
Daniel Morsing ca7a806e93 Only seek the cursor if it would yield a value of interest
If we've seeked a cursor, then we can be sure that there will be no
data between it and the point that was seeked to. Take advantage of
this fact to only seek when it would yield us a value that would be
different from the last.

In addition, only init the pointsheap when doing a raw query. For
aggregate queries, it is reinitialized on every time bucket, so no
need to seek through all the cursors

For a synthetic database where there was only entries for a tiny
slice of time, it cut queries from 112 seconds to 30 seconds doing
`select mean(value) from cpu where time > now - 2h group by time(1h)`
2015-08-27 10:57:18 -06:00
Swann Croiset 421fc875ca Add shell option to start the daemon on CentOS
Unless a valid shell for the user running influxdb, the command su fails with
the error:
 This account is currently not available.

The user shouldn't have a valid shell although the package creates influxdb
user with /bin/bash
2015-08-27 15:32:05 +02:00
David Norton 3c45838c10 update INFLUXQL.md 2015-08-27 08:38:16 -04:00
Philip O'Toole a74f7e32aa Merge pull request #3859 from influxdb/log_go_version
Log Go runtime version
2015-08-26 14:59:08 -07:00
Philip O'Toole 94484067f3 Log Go runtime version 2015-08-26 14:47:59 -07:00
Sean Beckett ecd35c9678 Update CHANGELOG.md 2015-08-26 14:40:33 -07:00
Philip O'Toole ad94329fba Fix typo in 0.9.3 release date 2015-08-26 14:37:44 -07:00
Philip O'Toole e33ca89559 0.9.3 is out 2015-08-26 14:37:22 -07:00
Paul Dix f865648403 Update README.md 2015-08-26 17:24:24 -04:00
Jason Wilder 4d417db3b0 Merge pull request #3857 from influxdb/jw-deadlock
Fix deadlock in metastore
2015-08-26 14:50:32 -06:00