David Norton
90520beb70
fix #2944 : update unit test
2015-06-22 15:40:31 -04:00
David Norton
0467aa8fec
fix #2944 : don't require WHERE time on create CQ
2015-06-22 15:39:22 -04:00
Vladimir Lopes
02b8c6fbf1
Don't use deleted shard groups on pre-creation
...
The way it was, shard groups that were deleted by retention policy
enforcement were being recreated again, just to be deleted in the
next enforcement run. This change will help keep raft log free from
this unnecessary creation and deletion.
2015-06-18 15:20:23 -03:00
Philip O'Toole
01720aa246
Fix excessive shard group creation logging
...
Fixes issue #3029 .
2015-06-17 14:45:47 -07:00
Philip O'Toole
2428edb8a1
Correct skip of test
2015-06-17 11:58:16 -07:00
Philip O'Toole
c73ae8b845
Skip test TestStatementExecutor_ExecuteStatement_ShowGrantsFor
2015-06-17 11:56:48 -07:00
Philip O'Toole
4b332b7348
Enforce minimum retention duration of 1 hour
...
Fixes issue #2991 .
2015-06-17 11:02:07 -07:00
Dejan Golja
000d6b8b0b
added tests for SHOW GRANTS FOR statements
2015-06-17 01:24:09 +10:00
Dejan Golja
f133ceb350
Added support for SHOW GRANTS FOR USER syntax
2015-06-17 01:00:26 +10:00
Ben Johnson
a966482a8e
Ensure default retention policies are fully replicated
...
This commit sets the replication factor to the number of nodes
currently in the cluster.
2015-06-11 14:43:44 -06:00
Philip O'Toole
eaae2a1afb
Don't bother polling if leader already exists
2015-06-11 11:34:52 -07:00
Philip O'Toole
4dff5f48aa
Export WaitForLeader on MetaStore
...
This exported function can then be used by Services and
server-reporting, so those components don't make progress until the
cluster is ready.
2015-06-11 11:10:07 -07:00
Philip O'Toole
431034c8f4
Wait for Raft leader even when cluster exists
2015-06-11 01:23:30 -07:00
Philip O'Toole
b15a0df6d4
Wait for leader before reporting
2015-06-11 00:21:15 -07:00
Ben Johnson
405ec78f42
Limit cluster to 3 nodes
...
This commit restricts the maximum number of nodes in a cluster to 3.
Fixes #2750
2015-06-11 00:11:47 -06:00
Ben Johnson
52696ae3a1
Require replication factor to equal cluster size
...
This commit adds a requirement that retention policies must
be fully committed. This means that the replication factor
must be set to whatever the node count is in the cluster.
Fixes #2738
2015-06-11 00:11:03 -06:00
Ben Johnson
9f91cd7461
Fix missing protobuf data fields
...
This commit adds the following missing fields to the internal.Data:
- Term
- Index
- ClusterID
- MaxNodeID
- MaxShardGroupID
- MaxShardID
2015-06-10 22:48:44 -06:00
Ben Johnson
586da7f558
Generate cluster id on first node
...
This commit sets a cluster ID when the first node is initialized.
The ID is generated on every CreateNodeCommand so that it can be
applied consistently in the state machine of every server.
2015-06-10 22:33:58 -06: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
Philip O'Toole
5798d99692
Move shard precreation logic to meta/store
2015-06-10 15:37:00 -07:00
Philip O'Toole
481e1860a0
Remove obsolete shard precreation source
2015-06-10 15:27:38 -07:00
Philip O'Toole
6ce7c6e4ad
Merge pull request #2852 from influxdb/panic_change_rp
...
Don't panic when altering retention policy
2015-06-09 14:16:11 -07:00
Philip O'Toole
c455c374d1
Increase Raft timeouts during test
...
Previous timeouts may be too short for CI testing resources.
2015-06-09 12:32:16 -07:00
Philip O'Toole
21343e4e0f
Don't panic when altering retention policy
...
Fixes issue #2846
2015-06-09 11:39:09 -07:00
Philip O'Toole
4b94a00644
Set auto-created retetion period to infinity
...
Fix issue #2817
2015-06-08 19:47:37 -07:00
Philip O'Toole
cc03030b5e
Add missing call to WaitGroup.Done()
...
Fix issue #2806
2015-06-08 11:10:02 -07:00
Philip O'Toole
38f38a5bd4
Improve AutoCreate camelcase
2015-06-06 17:03:52 -07:00
Philip O'Toole
5fcae1eb04
Improve Go style of retention auto-create
2015-06-06 17:02:32 -07:00
Philip O'Toole
37c11e4c5d
Remove retention auto-create magic values
2015-06-06 17:02:32 -07:00
Philip O'Toole
a64f7edc33
Add config support for retention autocreate
2015-06-06 17:02:32 -07:00
Philip O'Toole
8d9a28a583
Store supports auto-creating retention policy
2015-06-06 17:02:32 -07:00
Ben Johnson
d3d43246e4
Add raft check to meta store.
2015-06-06 14:24:41 -06:00
Ben Johnson
5ffb032c43
Invalidate cache on shard owner lookup.
2015-06-05 23:23:10 -06:00
Jason Wilder
1024965db7
Create shard received from cluster writer
2015-06-05 22:16:51 -06:00
Ben Johnson
413da5cdc4
add mux.Serve()
2015-06-05 22:13:49 -06:00
Todd Persen
4bf024109f
Merge pull request #2779 from influxdb/hook-CQs-back-2733
...
fix #2733 : hook CQs back in
2015-06-05 20:40:31 -07:00
David Norton
5f49934a23
fix #2733 : trying to fix CI race
2015-06-05 20:49:12 -04:00
Ben Johnson
6cf78206f0
refactor run.Server to use tcp.Mux
2015-06-05 16:31:58 -06:00
Ben Johnson
db2d94a6a5
refactor store to use external listeners
2015-06-05 16:08:07 -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
Philip O'Toole
c59a234e7b
Deleted shard groups are not counted as "expired"
2015-06-05 13:08:36 -07:00
Philip O'Toole
d1864a4cdc
Unit test expired and deleted shard groups
2015-06-05 12:31:10 -07:00
Philip O'Toole
5e5f2cd37d
Move expired and deleted shard logic to MetaStore
2015-06-04 22:18:52 -07:00
Philip O'Toole
8600e2e036
Add shard group "DeletedAt" timestamps
2015-06-04 21:46:52 -07:00
Philip O'Toole
fab9adb361
Hook in actual retention service
2015-06-04 17:02:22 -07:00
Philip O'Toole
5b77a0f8e4
MetaStore supports returning leader state
2015-06-04 17:02:22 -07:00
Philip O'Toole
f449d8f687
Remove obsolete retention policy enforcer
2015-06-04 12:22:41 -07:00
Jason Wilder
4fa9fd5fe9
Merge pull request #2725 from influxdb/jw-client
...
Update client to use line protocol
2015-06-01 17:35:26 -06:00
Jason Wilder
e400e8f2d6
Use default retention policy if not specified during writes
2015-06-01 17:16:44 -06:00
Cory LaNou
d962283ae6
adding some integration tests
2015-06-01 16:04:20 -06:00