Commit Graph

204 Commits (ad35dcea3866d759dbff16255b0a3b9b2d32e8e0)

Author SHA1 Message Date
Jason Wilder 59ddaa960b Fix meta.WaitForDataChanged not signaling for remote nodes
WaitForDataChanged is used to block a goroutine so it can be woken
up when the metastore has been updated.  This makes it so clients
to the metastore do not need to poll the metastore repeatedly to
watch for changes.  This was only working for local raft nodes, but
was supposed to work for remote nodes as well.
2015-10-13 10:20:38 -06:00
linearb 60d298936e return error when database rename conflicts with continuous queries 2015-10-09 13:57:02 -04:00
linearb 37964a032f improvements from code review 2015-10-09 13:57:02 -04:00
linearb 1383d964aa update user privileges on database rename 2015-10-09 13:56:23 -04:00
linearb 668b5b9bfb change syntax to ALTER DATABASE ... RENAME TO ... 2015-10-09 13:56:23 -04:00
linearb 7212bfce83 add RENAME DATABASE 2015-10-09 13:55:38 -04:00
Philip O'Toole eb28817afe Don't panic when DROPing non-existent nodes 2015-10-05 16:56:19 -07:00
Philip O'Toole 2ac0357406 Support dropping non-Raft nodes 2015-10-04 00:19:52 -07:00
Philip O'Toole d74e0690c7 Revert "Merge pull request #4233 from influxdb/drop-server"
This reverts commit 0bdb36f6dc, reversing
changes made to 3085fbc138.
2015-10-02 08:39:57 -07:00
Cory LaNou e294c89308 use concurrenty safe Peers method 2015-10-02 09:17:15 -05:00
Cory LaNou 42896fee0f use close instead of shutdown 2015-10-02 09:10:01 -05:00
Cory LaNou efc8a57a75 checkRaftState -> enableLocalRaftIfNecessary 2015-10-01 17:13:47 -05:00
Cory LaNou 785ff6a235 use safe call that is already locked 2015-10-01 17:04:08 -05:00
Cory LaNou 2379a0a406 check for nil raftState 2015-10-01 16:54:46 -05:00
Cory LaNou 114b20ec5c need some locking, remove redundant check 2015-10-01 16:52:14 -05:00
Cory LaNou def2551d65 to much code depends on setting this to nil yet 2015-10-01 15:57:55 -05:00
Cory LaNou eaae1cbe24 remove comment 2015-10-01 15:48:17 -05:00
Cory LaNou 98de77eeaf attempt to heal a cluster, shut down raft after removing a node 2015-10-01 15:39:16 -05:00
Cory LaNou c108c6eb96 fix remove peer, add leader to show servers 2015-10-01 15:39:16 -05:00
Cory LaNou 3071eec2ca only the leader can remove a peer 2015-10-01 15:39:16 -05:00
Cory LaNou df08a070f6 do not remove raft files unless it is the node being removed 2015-10-01 15:39:16 -05:00
Cory LaNou 96d63cf9f0 simpler remove peer 2015-10-01 15:39:16 -05:00
Cory LaNou 6f74a64bf6 clarify comment and refactor 2015-10-01 15:39:16 -05:00
Cory LaNou b9a7f51f12 must always test... 2015-10-01 15:39:16 -05:00
Cory LaNou 50ac00f378 log errors for removePeer 2015-10-01 15:39:16 -05:00
Cory LaNou 0191319370 ErrNodeDataLossImminent -> ErrShardNotReplicated 2015-10-01 15:39:15 -05:00
Cory LaNou 76c45fdf55 not dealing with pointers, need to update original 2015-10-01 15:39:15 -05:00
Cory LaNou f50813460e protobuf update.. :-( 2015-10-01 15:39:15 -05:00
Cory LaNou 99da67007d no more shutdown 2015-10-01 15:39:15 -05:00
Cory LaNou 73372ed907 [Ee]xecuteShutdown -> [Mm]onitorShutdown 2015-10-01 15:39:15 -05:00
Cory LaNou 7a3e1f6b27 removing peer wip 2015-10-01 15:39:15 -05:00
Cory LaNou 93507c0b51 add force for drop server, misc fixes, more wip 2015-10-01 15:39:15 -05:00
Cory LaNou e50eb3172a drop server command 2015-10-01 15:39:14 -05:00
Philip O'Toole 591e33b1d8 Initial work, does not address issue 2015-09-30 11:58:42 -07:00
Philip O'Toole 82f866702a Remove obsolete comment 2015-09-28 20:56:43 -07:00
Cory LaNou 72f6f7d268 Merge pull request #4134 from influxdb/issue-3447
Refactor Points and Rows to dedicated packages
2015-09-17 15:27:48 -05:00
Philip O'Toole 9b900a0b3b Add RP create-and-get test cases 2015-09-16 16:21:41 -07:00
Cory LaNou ba830be3b9 actually move influxql.Row* -> models.Row* 2015-09-16 16:32:50 -05:00
Philip O'Toole ca07b86254 Prohibit dropping the default retention policy
This is to prevents users from putting their system into an awkward
state. It is a policy that all databases must have at least a default
retention policy.

Fixes issue #3699.
2015-09-08 23:00:19 -07:00
Philip O'Toole db120f4c0e Log database and retention policy creation 2015-09-08 11:24:59 -07:00
Philip O'Toole 52737917e6 No error required if policy does not exist
This is the same way Database() works, and allows the caller to know it
should access the Raft leader.
2015-09-08 11:23:43 -07:00
Jason Wilder 380d82b078 Fix race in local node creation
It was possible for the metastore Open call to return before it actually
created it's local node.
2015-09-05 09:07:37 -06:00
Jason Wilder 08656f515e Merge pull request #4000 from influxdb/jw-3960
Fix cluster restarting issues
2015-09-04 15:16:51 -06:00
Jason Wilder 3404fe3872 Wait for meta-store to find the leader before returning
The meta-store would open but may not have finished loading the raft log. If write
requests came in, they could fail or be dropped because of missing shard group
info.  This change makes the meta store only return after it has found the leader
and is really ready.

This change also fixed a race in the ClusterRestart test that may be causing it
to fail sporadically.

Fixes #3677 #3960
2015-09-04 14:51:57 -06:00
Cory LaNou d060f3aba9 move all aggregate validations to the parser validation from map/reduce functions 2015-09-04 13:30:40 -05:00
Philip O'Toole cf5a655249 Don't precreate shard groups entirely in past
Fixes issue #3722
2015-09-04 08:31:50 -07:00
Ben Johnson bbc5539517 add SHOW SHARDS statement
This commit adds the ability to list all shards in the cluster
and return their id, start time, end time, expiry time, and
owner ids. Shards are grouped by database.

Fixes #3562
2015-09-03 15:46:52 -06:00
Philip O'Toole a50b7b55f3 Fix race by replacing entire Data instance 2015-09-02 11:20:30 -07:00
Philip O'Toole 14c04eb4d6 Merge pull request #3916 from influxdb/new_stats_diags
Statistics and Diagnostics service
2015-09-01 18:30:53 -07:00
Philip O'Toole f05dc20b58 Hook new monitor service to server
u
2015-09-01 15:03:52 -07:00