Commit Graph

9950 Commits (e2eb93f6d4834d0992ffe57274237ee8870ccb2f)

Author SHA1 Message Date
Jonathan A. Sternberg e2eb93f6d4 Move changelog lines erroneously added to 0.12.0 to 0.13.0 2016-04-07 13:47:20 -04:00
Cory LaNou cd803d2554 Merge pull request #6257 from influxdata/meta-index-bug
CreateShardGroup was not idempotent at the meta store level
2016-04-07 12:18:51 -05:00
Cory LaNou 7eaf7f8855 CreateShardGroup was incrementing meta data index even when it was idempotent 2016-04-07 11:39:45 -05:00
Jonathan A. Sternberg 61aa2980ce Merge pull request #6255 from influxdata/js-6248-strings-in-select-panic
Throw an error when an invalid expression is used with aux iterators
2016-04-07 12:32:52 -04:00
Edd Robinson 5327a75a6f Merge pull request #6216 from influxdata/er-scope-proto
Change protobuf package names to avoid clashes
2016-04-07 16:38:21 +01:00
Jonathan A. Sternberg d176c8babb Throw an error when an invalid expression is used with aux iterators
The following query was fixed previously:

    SELECT 'value' FROM cpu

This ended up hitting the `buildExprIterator()` code path and was
handled properly. But this query:

    SELECT 'value', value FROM cpu

This took a different code path that would trigger a panic because it
triggered a panic instead of an error condition. This code path has now
been modified to trigger an error instead of a panic.

Fixes #6248.
2016-04-07 11:01:45 -04:00
Edd Robinson 09e08e8f55 Merge pull request #6249 from mvadu/Add_AppVeyor_ci_windows
Add AppVeyor ci config to enable continuous integration tests on Windows
2016-04-07 15:52:43 +01:00
mvadu b670ca1936 Add AppVeyor ci config to enable ci tests on Windows
Influxdb uses gdm for the dependency management. For gdm to work on Windows, it needs go 1.6. Influx still uses go 1.4.3. So go 1.6 will be sed for the pre-build stages, and go 1.4.3 to run the tests.
This arrangements is working in AppVeyor now.
2016-04-07 19:47:01 +05:30
Jonathan A. Sternberg 99715ecca9 Merge pull request #6240 from influxdata/js-6206-update-changelog
Update changelog for issue #6206
2016-04-07 09:22:08 -04:00
Jonathan A. Sternberg b15260dd4d Merge pull request #6201 from tehmaspc/tehmaspc_fix_typo
Fix config typo
2016-04-06 15:56:07 -04:00
Jonathan A. Sternberg ccac9858f1 Update changelog for issue #6206 2016-04-06 11:53:38 -04:00
Jonathan A. Sternberg a58430bb60 Merge pull request #6217 from influxdata/js-tsdb-unused-code
Remove unused code and increase some test coverage for the tsdb package
2016-04-06 10:07:43 -04:00
Jonathan A. Sternberg 028fdaff81 Merge pull request #6222 from influxdata/js-6206-descending-tsm1-iterators
Handle nil values from the tsm1 cursor correctly
2016-04-06 10:05:20 -04:00
Jonathan A. Sternberg 94ec92d669 Handle nil values from the tsm1 cursor correctly
Send nil values from the tsm1 cursor at the end of the cursor. After the
cursor reached tsm1, the `nextAt()` call would always return the default
value rather than a nil value.

Descending also didn't work correctly because the seeking functionality
for tsm1 iterators would always act like they were ascending instead of
descending when choosing which value to select. This resulted in very
strange output from the emitter since it couldn't figure out if it was
ascending or descending.

Fixes #6206.
2016-04-06 09:27:02 -04:00
Jonathan A. Sternberg 7a229c7e4e Remove unused code and increase some test coverage for the tsdb package 2016-04-06 09:24:56 -04:00
joelegasse 84f8dd7c85 Merge pull request #6190 from influxdata/jw-race
Fix race on measurementFields
2016-04-06 08:13:58 -04:00
joelegasse 734b14b2b5 Merge pull request #6224 from mvadu/fix_windows_failure
Fix failure on Windows
2016-04-06 08:11:44 -04:00
mvadu 94524a7699 Fix failure on Windows
Windows does not allow a file to be renamed while its in use. f.Sync does not close the handle. It needs to be explicitly closed before renaming.
2016-04-06 07:32:37 +05:30
Jonathan A. Sternberg 4fbd975c16 Merge pull request #6226 from influxdata/js-iterator-creator-from-shard-info
Modify cluster.TSDBStore interface to take a slice of meta.ShardInfo
2016-04-05 17:15:40 -04:00
Jonathan A. Sternberg 6040375370 Modify cluster.TSDBStore interface to take a slice of meta.ShardInfo
The tsdb package can't have a dependency on the meta package so it takes
a slice of uint64 types. The clustering implementation needs the full
ShardInfo to know the shard owners though, so a different implementation
needs to be used by clustering.

The `*tsdb.Store` type gets wrapped in the cluster package so it can
implement the `IteratorCreator` function without having a dependency on
the meta package.
2016-04-05 16:40:32 -04:00
Ben Johnson 455817af95 Merge pull request #6219 from benbjohnson/contributing-tmpl
Add tmpl to contributing document
2016-04-05 10:31:36 -06:00
Ben Johnson e194e1284e add tmpl to contributing document
This commit provides instructions on how to install the
`tmpl` utility and how to generate templates in the project.

Fixes #6215
2016-04-05 09:16:02 -06:00
Edd Robinson 184257a10d Scope all internal protobuf packages 2016-04-05 13:54:21 +01:00
Edd Robinson dfee15bd19 Scopes influxql Protobuf package to prevent clashes
Fixes #6211.

In Go-land packages with the same name, e.g., internal, do not clash
with each other when they're in different parts of the project. However
with protobufs definitions will clash if they share the same package
name.

This commit renames the influxql protobuf package to `influxql` to
avoid a clash with a message definition in another protobuf package
called internal. Go package aliases allow us to continue to refer to the
internal package as `internal` rather than `influxql`.
2016-04-05 13:36:47 +01:00
Paul Dix c2ac8c85b5 Merge pull request #6203 from influxdata/pd-012-release-notes
Update CHANGELOG.md with release notes for 0.12.0
2016-04-04 19:48:43 -04:00
Todd Persen 9c547220b0 Merge pull request #6205 from influxdata/tp-upgrade-error-message
Clarify the upgrade error message.
2016-04-04 16:21:15 -07:00
Todd Persen 05acce6645 Clarify the upgrade error message. 2016-04-04 15:28:35 -07:00
Paul Dix 092cf4ee4a Update CHANGELOG.md with release notes for 0.12.0 2016-04-04 17:54:19 -04:00
Tehmasp Chaudhri 13b74f3a20 Fix config typo 2016-04-04 15:23:42 -06:00
Jonathan A. Sternberg e22f098a11 Merge pull request #6187 from influxdata/js-plugin-executor
Cleanup QueryExecutor and add custom query execution code
2016-04-04 14:13:32 -04:00
Todd Persen ffa0ece3ac Update CHANGELOG.md 2016-04-04 11:12:35 -07:00
Todd Persen dba3849c80 Merge pull request #6195 from jonseymour/jss-6193-master
Fix TypeError when processing empty results in admin UI
2016-04-04 11:09:47 -07:00
Jonathan A. Sternberg 37b63cedec Cleanup QueryExecutor and split statement execution code
The QueryExecutor had a lot of dead code made obsolete by the query
engine refactor that has now been removed. The TSDBStore interface has
also been cleaned up so we can have multiple implementations of this
(such as a local and remote version).

A StatementExecutor interface has been created for adding custom
functionality to the QueryExecutor that may not be available in the open
source version. The QueryExecutor delegate all statement execution to
the StatementExecutor and the QueryExecutor will only keep track of
housekeeping. Implementing additional queries is as simple as wrapping
the cluster.StatementExecutor struct or replacing it with something
completely different.

The PointsWriter in the QueryExecutor has been changed to a simple
interface that implements the one method needed by the query executor.
This is to allow different PointsWriter implementations to be used by
the QueryExecutor. It has also been moved into the StatementExecutor
instead.

The TSDBStore interface has now been modified to contain the code for
creating an IteratorCreator. This is so the underlying TSDBStore can
implement different ways of accessing the underlying shards rather than
always having to access each shard individually (such as batch
requests).

Remove the show servers handling. This isn't a valid command in the open
source version of InfluxDB anymore.

The QueryManager interface is now built into QueryExecutor and is no
longer necessary. The StatementExecutor and QueryExecutor split allows
task management to much more easily be built into QueryExecutor rather
than as a separate struct.
2016-04-04 13:27:17 -04:00
Jonathan A. Sternberg fe635e6e47 Merge pull request #6189 from influxdata/js-reader-iterator-fix
Fix the reader iterator so it doesn't read the first point when creating the iterator
2016-04-04 10:38:05 -04:00
Jon Seymour 9c8bd466f7 fix TypeError when processing empty results in admin UI (#6193)
A change to the admin UI prevented the success message being displayed
for empty results. This change restores the original behaviour for
this case.

Signed-off-by: Jon Seymour <jon@wildducktheories.com>
2016-04-04 22:09:11 +10:00
Jason Wilder ca8b0ca143 Optimize locking in CreateFieldIfNotExists
Also remove some dead code that is no longer relevant with tsm.
2016-04-01 20:44:40 -06:00
Jason Wilder 3f4c5a5585 Fix race on measurementFields
Both Shard and Engine had the same reference to the measurementField map,
but they each protected it with their own locks.  This causes a race when
write and queries are occurring because writes can add new fields to the
map while queries are reading from it.

The fix moves the ownership to the Engine and provides protected accessors
to that Shard now users.  For the most parts, the access on shard were old
dead code.

Fixing the measurementFields map race created a new race on the internal
fields map.  This is now unexported and protected via MeasurementFields
exported funcs.

Fixes #6188
2016-04-01 18:57:01 -06:00
Jonathan A. Sternberg 43e3330480 Fix the reader iterator so it doesn't read the first point when creating the iterator 2016-04-01 17:31:28 -04:00
Jonathan A. Sternberg d45ca3741e Merge pull request #6183 from jonseymour/jss-use-go-1.4.3-in-builder-docker.sh
Use preferred go1.4.3 for docker images too.
2016-04-01 14:28:44 -04:00
Edd Robinson 1d6b38c803 Merge pull request #6181 from influxdata/er-fix-recreate-rp
Ensure ShardGroupDuration checked when recreating an RP
2016-04-01 15:30:59 +01:00
Jon Seymour f45263da91 Use preferred go1.4.3 for docker images too.
Some people (e.g. me!) use build-docker.sh to create docker images.

I got burnt by the go 1.5 performance issue because I didn't override
the default GO_VER variable.

This change sets the default to the same as used in the main build.

Signed-off-by: Jon Seymour <jon@wildducktheories.com>
2016-04-01 22:37:01 +11:00
Edd Robinson 10b271968c Merge pull request #5329 from bIgBV/patch-1
Update README.md to include simple error handling.
2016-04-01 12:36:11 +01:00
Edd Robinson 712cc3f290 ShardGroup Duration is checked when recreating rp
Fixes #6178.
2016-04-01 11:59:41 +01:00
Cory LaNou 2f6340b496 Merge pull request #6158 from influxdata/restore-fixes
WIP - Restore fixes
2016-03-31 17:39:19 -05:00
Cory LaNou 9bd60c3e07 remove node.json as well, change where we check for raft.db in startup 2016-03-31 17:15:58 -05:00
Cory LaNou 7bda8102ac update changelog 2016-03-31 17:15:58 -05:00
Cory LaNou 6c6fe87a40 add error message if detecting raft.db file 2016-03-31 17:15:42 -05:00
Cory LaNou a961ff9ebf minor restore fixes; fsync meta snapshots 2016-03-31 17:15:42 -05:00
Jonathan A. Sternberg c7758c546a Merge pull request #6166 from influxdata/js-influxdb-client-chunked-output
Support chunked queries in the Go InfluxDB client
2016-03-31 17:06:23 -04:00
Jonathan A. Sternberg 8752d1b1e3 Support chunked queries in the Go InfluxDB client
Modify the CLI to always use chunked queries.
2016-03-31 15:30:43 -04:00