Jason Wilder
c97dedfa3d
Be more explicit about boolean value parsing
...
Supported boolean values are now t, T, true, TRUE, f, F, false, and
FALSE. This is what the strconv.ParseBool function supports with
the exception of 1 and 0. 1 and 0 would be parsed as ints in the
line protocol.
Previously, any non-true value would be parsed as false. e.g.
value=blah would parse to false. This will now return an error as
parsing time.
2015-06-11 14:53:53 -06:00
Jason Wilder
6d115a7552
Return the line that failed to parse
...
Make it easier to find a bad line in a batch when writing points.
2015-06-11 13:59:30 -06:00
Jason Wilder
0d82acfde7
Prevent invalid numbers from being parsed via line protocol
...
Adds more tests for invalid numbers such as 0.1a, -2.-4, as well
test for supported formats for negative and positive integers/floats
as well as scientific notation.
2015-06-11 13:50:28 -06:00
Jason Wilder
b497256dc7
Fix panic when no value is passed to a field
...
Fixes #2927
2015-06-11 11:25:25 -06:00
Philip O'Toole
64af1b6241
Report number of measurements and series per node
2015-06-11 00:21:15 -07:00
Philip O'Toole
ee5406d8a0
Merge pull request #2901 from influxdb/no_query_panic
...
SHOW DIAGNOSTICS is not yet (re)implemented
2015-06-10 21:12:02 -07:00
Philip O'Toole
ffda846f33
SHOW DIAGNOSTICS is not yet (re)implemented
2015-06-10 21:09:25 -07:00
Ben Johnson
bc31783a00
Refactor backup and restore
...
This commit updates the snapshot code as well as the "backup" and
"restore" command to work with the new architecture.
2015-06-10 22:07:01 -06:00
Paul Dix
325ca4ab4b
Merge pull request #2885 from influxdb/datatype-refactor
...
change influxql DataType from string to int
2015-06-10 21:06:08 -07:00
Philip O'Toole
6d26f9c8a8
Merge pull request #2856 from influxdb/rv_fixes
...
Series was not already dropped, return false (and other fixes)
2015-06-10 20:57:46 -07:00
Philip O'Toole
344a1f4948
Don't even return value from DropSeries
2015-06-10 20:50:07 -07:00
Philip O'Toole
5ead14c1d0
Unit test returning empty set when no database
2015-06-10 19:22:16 -07:00
Philip O'Toole
4c2c1ae1dd
Return empty results set if no shard meta database
2015-06-10 19:22:16 -07:00
Philip O'Toole
10ca99ffb8
SHOW DIAGNOSTICS is not yet (re)implemented
2015-06-10 15:49:00 -07:00
Jason Wilder
0d9a2a5053
Fix wrong value used for incorrect type error message
...
Would result in saying that the field type was always a string which
is incorrect. The field key is a string but the value may not be.
Fixes #2700
2015-06-10 15:57:27 -06:00
Jason Wilder
67d4ef0e28
Don't queue write failures that due to type conflicts
...
These will never succeed and will stay in the queue indefinitely.
2015-06-10 14:52:59 -06:00
Jason Wilder
999f4a4c41
Return field type errors as client write errors
...
Fixes #2849
2015-06-10 14:52:26 -06:00
David Norton
29777f2a8e
change influxql DataType from string to int
2015-06-10 16:02:26 -04:00
Jason Wilder
bc7e1f6fd6
Fix panic when adding new fields
...
Fixes #2869
When adding a new field to an existing measurment, Shard.validateSeriesAndFields
would also encode the fields as a side-effect. In the case of a new field
that needed to be created, the encoding would fail because the field type
had not been created for the measurement yet. The fields are re-encoded
after validateSeriesAndFields returns and after the field encoding have been
setup properly so this additional encoding during
validation isn't necessary.
2015-06-10 10:30:14 -06:00
Philip O'Toole
98d315b8d8
Ensure tags are always marshalled the same way
...
This added check ensures it's always alphabetically ordered when
marshalled.
2015-06-09 17:10:46 -07:00
Philip O'Toole
8a5b337ae5
There is no more metastore, so correct comment
2015-06-09 14:57:19 -07:00
Jason Wilder
3e969166c9
Fix parsing commas in string field values
...
Fixes a panic on writes because the field value was not parse correctly.
panic: unsupported value type during encode fields: <nil>
goroutine 117 [running]:
github.com/influxdb/influxdb/tsdb.(*FieldCodec).EncodeFields(0xc2081c4020, 0xc2081dc180, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/jason/go/src/github.com/influxdb/influxdb/tsdb/shard.go:573 +0x8e3
2015-06-09 15:53:21 -06:00
Philip O'Toole
bc68afbe85
Fix minor spelling mistake
2015-06-09 14:35:38 -07:00
Philip O'Toole
85fd3d0292
Series was not already dropped, return false
2015-06-09 14:25:20 -07:00
Cory LaNou
a43054adce
add test for querying across shards and fields
2015-06-09 12:51:59 -05:00
David Norton
fc0bbaf0d1
fix #2814 : remove locking cruft from batcher
2015-06-09 00:34:46 -04:00
David Norton
3b15a49f7c
fix #2814 : revert making batcher channels buffered
2015-06-09 00:34:46 -04:00
David Norton
d5f52333a1
fix #2814 : hook collectd service back up
2015-06-09 00:34:46 -04:00
Paul Dix
8f712eaf85
Ignore shards that don't have the selected measurement in them.
...
Fixes #2815 and fixes #2818 .
2015-06-08 17:14:42 +02:00
Paul Dix
f39cddebf6
Fix locking on write path for getting measurement field encoding.
2015-06-07 11:09:47 +02:00
Jason Wilder
044e5b71f5
Remote temp dirs in store_test
2015-06-05 22:16:51 -06:00
Ben Johnson
b925e1c1af
Multi-node clustering.
...
This commit adds the ability to cluster multiple nodes together to share
the same metadata through raft consensus.
2015-06-05 14:41:19 -06:00
Todd Persen
0ee71b9755
Merge pull request #2743 from influxdb/tsdb-benchmarks
...
add shard & index benchmarks
2015-06-05 13:15:38 -07:00
Philip O'Toole
ca9f231fa1
Merge pull request #2776 from influxdb/enforce_retention_2_phase
...
Enforce retention policies
2015-06-05 11:15:21 -07:00
Paul Dix
4ba7c5d1c1
Merge pull request #2787 from influxdb/pd-drop-database
...
Wire up DROP DATABASE query
2015-06-05 20:09:06 +02:00
Paul Dix
61ac4aad80
Fix spelling in test
2015-06-05 20:07:52 +02:00
Paul Dix
885e484746
Fix comment typo
2015-06-05 12:47:53 -04:00
Paul Dix
70e10b136e
Wire up DROP DATABASE query.
2015-06-05 12:31:04 -04:00
Philip O'Toole
81ec7353ce
TSDB store can return all known Shard IDs
2015-06-04 17:02:22 -07:00
Paul Dix
55e0de30bd
Merge pull request #2773 from influxdb/pd-locking
...
Ensure proper locking of index structures on writes and queries.
2015-06-04 19:50:49 -04:00
Paul Dix
9bf09ee026
Correct comments in tsdb/meta
2015-06-04 16:08:12 -04:00
Philip O'Toole
c36f5f3f5f
Merge pull request #2771 from influxdb/enforce_retention_2_phase
...
Support deleting shards from TSDB store
2015-06-04 12:32:39 -07:00
Philip O'Toole
5ea2042356
Add DeleteShard to TSDB store
2015-06-04 12:22:38 -07:00
Paul Dix
408bc3f81e
Ensure proper locking of index structures on writes and queries.
2015-06-04 14:50:32 -04:00
Cory LaNou
bafdb7f7cb
explicitly parse time if needed
2015-06-04 12:15:18 -06:00
Cory LaNou
780fdedbd4
remove spew
2015-06-04 11:29:18 -06:00
Cory LaNou
47d605b69a
make line protocol round or parse precision as expected
2015-06-04 11:22:53 -06:00
Cory LaNou
3b9738c87a
fixing more error message regressions
2015-06-03 15:36:18 -06:00
Cory LaNou
3e7b458eae
fix regression in distinct on tags error
2015-06-03 15:28:45 -06:00
Paul Dix
99446786f9
Merge pull request #2752 from influxdb/pd-drop-measurement
...
Wire up DROP MEASUREMENT
2015-06-03 14:02:37 -04:00