Ben Johnson
41459cf687
fix flush deadlock
...
This commit fixes a deadlock that occurs during b1 flushes. It's
caused by taking locks in a different order. In the flush, b1
locks the engine and then bolt. However, in the query cursor, a
lock is obtained on bolt first (via `DB.Begin()`) and then the
engine is locked while reading from the engine's cache.
2015-11-25 15:00:06 -07:00
Paul Dix
b11308133a
Only limit field count for non-tsm engines
2015-10-06 15:49:37 -07:00
Paul Dix
1c8eac1523
Add PerformMaintenance to store for flushes and compactions.
...
Also fixed shard to work again with b1 and bz1 engines.
2015-10-05 20:06:22 -04:00
Paul Dix
7555ccbd70
WIP: engine work
2015-10-05 20:06:21 -04:00
Ben Johnson
96715d7d90
rename Cursor.Seek() to Cursor.SeekTo()
2015-09-22 13:23:16 -06:00
Ben Johnson
b213ddad78
refactor cursor
2015-09-22 13:10:12 -06:00
Ben Johnson
a5269e9cc7
rename direction to ascending.
2015-09-22 13:09:26 -06:00
Cory LaNou
d19a510ad2
refactor Points and Rows to dedicated packages
2015-09-16 15:33:08 -05:00
Jason Wilder
7fa3d445f7
Support reverse iteration for b1 engine
2015-09-03 22:31:58 -06:00
Jason Wilder
5a6b0afc4b
Replace cursor direction with a type
2015-09-03 22:31:48 -06:00
Jason Wilder
266bdc1c2b
Support sort by time DESC in wal and bz1 engines
2015-09-03 22:28:36 -06:00
Ben Johnson
deff06f850
add copier service
...
This commit adds the copier service which allows one server to
copy shards from another server. This will be used for moving
shards in the cluster.
2015-09-03 13:07:35 -06:00
Paul Dix
73f3dc1e14
Update store to properly manage WAL create/delete.
...
* Update the store to remove the WAL directories associated with a shard or database when they are deleted.
* Fix the Store so that it creates separate WAL directories for databases and retention policies.
2015-08-21 11:22:04 -04:00
Paul Dix
c31b88de60
Merge pull request #3569 from influxdb/pd-wal
...
Add initial WAL implementation and tests
2015-08-18 20:45:32 -04:00
Paul Dix
3348dab4e0
Fix bug with new shards not getting series data persisted.
2015-08-16 15:45:09 -04:00
Daniel Morsing
432fa31060
protect engine points cache from concurrent modifications.
...
Creating a cursor would access the engine cache concurrently with
writes, causing data races. Fix by adding a mutex around cache
accesses.
2015-08-14 14:02:03 -07:00
Ben Johnson
10c1ae782a
fix duplicate points in b1/cursor
...
This commit fixes the b1 cursor so that reads from either the cache
or bolt buffer will check against the previously read key to ensure
that two of the same keys are not returned.
Fixes #3571 .
2015-08-11 13:43:44 -06:00
Ben Johnson
25293052b6
add b1 test harness
2015-08-10 12:46:57 -06:00
Ben Johnson
a9cbf6c857
Rename v1 engine to b1
...
This commit changes the 'v1' engine to 'b1' to represent "bolt v1".
2015-07-29 08:55:07 -06:00