Commit Graph

51 Commits (9c916b0b762ab2bebc23e1a79b84b01d69922a7d)

Author SHA1 Message Date
David Norton 3208564192 fix RP not found error messages 2015-12-03 08:04:09 -06:00
David Norton 657877dd94 make not found err messages more consistent 2015-12-03 08:04:09 -06:00
Cory LaNou 70e1a832d2 Automatically promote node to raft if needed 2015-11-11 10:04:26 -06:00
Pablo Miranda b2195d03a8 completes lint for met folder 2015-11-06 22:54:23 -08:00
David Norton a3d127f797 Revert "add RENAME DATABASE"
This reverts commit 7212bfce83.

Conflicts:
	influxql/parser.go
	influxql/token.go
	meta/internal/meta.pb.go
	meta/internal/meta.proto
2015-10-20 09:01:34 -04:00
David Norton 84803a41a1 Revert "update user privileges on database rename"
This reverts commit 1383d964aa.
2015-10-20 08:42:19 -04:00
David Norton 73a0c0a247 Revert "return error when database rename conflicts with continuous queries"
This reverts commit 60d298936e.
2015-10-20 08:39:03 -04:00
Nathaniel Cook 8b31007aa7 Adds subscriber service for creating/dropping subscriptions to the
InfluxDB data stream.
2015-10-14 15:23:45 -06:00
linearb 60d298936e return error when database rename conflicts with continuous queries 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 7212bfce83 add RENAME DATABASE 2015-10-09 13:55:38 -04: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 eaae1cbe24 remove comment 2015-10-01 15:48:17 -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 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 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 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 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
Philip O'Toole b423599776 Update comment re shard group creation and sorting
[ci skip]
2015-09-01 13:30:59 -07:00
Philip O'Toole 8f700c36bc Store ShardGroups sorted by time 2015-09-01 13:21:51 -07:00
Ben Johnson 767307eed6 convert meta shard owners to objects
This commit converts meta.ShardInfo.OwnerIDs from a slice of ids
to a slice of objects. This is to support adding statuses for a
shard for a given node. For example, a node may have a shard
assigned to it but it is currently copying the shard and is not
ready to serve data for it.

The old `OwnerIDs` is marked as deprecated, however, the code
still supports loading from older protobuf-encoded data.
2015-08-31 16:33:13 -06:00
David Norton fca932b943 skip deleted shard groups 2015-08-25 10:56:41 -04:00
David Norton 88f556af72 convert SHOW MEASUREMENTS to a distributed query 2015-08-23 23:09:51 -04:00
Philip O'Toole 878d7fc5f5 Update shard retention time when policy changes
Fixes issue #3702.
2015-08-19 12:42:05 -07:00
Jason Wilder ffcca1ceff Cap auto-created retention policy replica count at 3
Defaulting to the number of nodes in the cluster is doesn't make
sense with larger clusters. (e.g. 10 nodes = RF 10)
2015-08-12 14:18:02 -06:00
Jason Wilder abfd438a11 Implement remote meta data fetch
This adds some basic plumbing to make remote procedure calls to other cluster
members.  This first implementation allows a node to contact the raft leader
and fetch a copy of the meta data. This will be used by non-raft members to
pull down the latest metadata.
2015-07-23 10:21:22 -06:00
gunnaraasen 9ba37325f6 Fixes authorization.
Adds GRANT and REVOKE statements for admin privilege. Adds authorization to the query endpoint.
2015-07-17 11:33:06 -07:00
Philip O'Toole 74cb96646c Refactor query engine for distributed query support
With this change, the query engine code gathers information about
shards and tagsets by working with individual shards, collating the
information, and returning that to the client. It does not assume that any
particular shard is local, and accesses all shards through abstracted
Mappers, of which there are two types -- a Mapper type for Raw queries
and a second type for Aggregate queries. There are corresponding
Executors for each type of Mapper, but both types of Executors share the
same interface.
2015-07-15 12:54:55 -07:00
Philip O'Toole 88e8babc91 Shard supports returned OwnedBy node ID 2015-06-29 12:33:10 -04:00
Philip O'Toole 64ace983e8 Support return of shard groups for timerange 2015-06-26 17:28:52 -04:00
Dejan Golja f133ceb350 Added support for SHOW GRANTS FOR USER syntax 2015-06-17 01:00:26 +10: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
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 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
Jason Wilder e400e8f2d6 Use default retention policy if not specified during writes 2015-06-01 17:16:44 -06:00
Paul Dix 072dacc1ab Update tx.go to work with tsdb 2015-05-29 14:59:57 -06:00
Ben Johnson 75ab63b538 Refactor meta statement execution to meta.StatementExecutor. 2015-05-29 14:54:04 -06:00
Ben Johnson 736875b858 Integrate meta package. 2015-05-29 14:54:04 -06:00
Ben Johnson 7258a9be3c Implement meta.Store and meta.Data. 2015-05-25 16:28:58 -06:00
Jason Wilder 01d7bfb398 Move coordinator to data package 2015-05-21 10:16:54 -06:00