Commit Graph

69 Commits (b9a60854801d9d6de1efdda28fee09fedecd0b73)

Author SHA1 Message Date
Ben Johnson 75450466a6 Fix leader id initialization. 2015-03-16 11:27:57 -06:00
Ben Johnson 41d357ac04 Fixes based on code review comments. 2015-03-14 14:07:09 -06:00
Ben Johnson b045ad5d92 Wrap open logic in anonymous functions. 2015-03-14 13:55:19 -06:00
Ben Johnson 96748cb217 Update file permissions. 2015-03-14 13:49:25 -06:00
Ben Johnson 53dbec8232 Add config notifications and increased test coverage. 2015-03-14 13:36:06 -06:00
Ben Johnson 12e8939647 Fix messaging client redirection. 2015-03-12 15:34:20 -06:00
Ben Johnson 7880bc2452 Add zero length data checks. 2015-03-12 12:12:26 -06:00
Ben Johnson 5f6bcf523f Fix broker integration bugs. 2015-03-11 12:00:45 -06:00
Ben Johnson 66115f95ca Merge branch 'master' of https://github.com/influxdb/influxdb into stateless-broker
Conflicts:
	cmd/influxd/run.go
	messaging/broker.go
	messaging/client.go
	messaging/client_test.go
	messaging/intg_test.go
	server.go
	tx_test.go
2015-03-10 16:27:37 -06:00
Ben Johnson 27e9132796 Integrate stateless broker into remaining packages. 2015-03-10 14:53:45 -06:00
Ben Johnson 4160d0b785 Add continuously streaming topic readers. 2015-03-09 22:32:12 -06:00
Ben Johnson 5f5c6ca297 Integrate stateless messaging into influxdb package. 2015-03-09 15:47:41 -06:00
Philip O'Toole c714f147e8 Merge pull request #1875 from influxdb/raft_log_trace
Support control of Raft debug logging
2015-03-09 08:31:06 -07:00
Ben Johnson 9b5aeb1a90 Refactor messaging client/conn. 2015-03-07 23:21:44 -07:00
Ben Johnson ef8658e0fc Continuing stateless broker refactor. 2015-03-08 15:28:43 -06:00
Philip O'Toole 710e0d7de9 Add unit test for client tracking leader URL 2015-03-06 15:19:18 -08:00
Philip O'Toole 96645c7b51 Only use scheme and host of redirected URL 2015-03-06 15:19:16 -08:00
Philip O'Toole fb618cb385 Support control of Raft debug logging 2015-03-06 15:13:33 -08:00
Philip O'Toole 317fe8335a Client should track current broker leader 2015-03-06 13:59:21 -08:00
Joseph Rothrock 9b63eed767 Merge branch 'master' of github.com:influxdb/influxdb into 1753
Conflicts:
	CHANGELOG.md
2015-03-06 12:37:15 -08:00
Joseph Rothrock 771ef1cec3 Don't Panic on Missing Dirs
Issue: 1753
Figure out what's missing, create it, and keep going.
2015-03-06 12:11:02 -08:00
David Norton ac8a062ab0 fix #1866: use RUnlock instead of Unlock 2015-03-06 12:53:19 -05:00
David Norton 8583260bc5 fix #1866: race accessing topic replicas map 2015-03-06 11:14:11 -05:00
Ben Johnson b937f06c1f Implementing stateless broker. 2015-03-05 19:32:20 -07:00
Ben Johnson 1bbf154f2a Removing replicas and subscriptions from broker. 2015-03-01 22:32:20 -07:00
Ben Johnson 85be4e1f6a Merge branch 'master' of https://github.com/influxdb/influxdb into broker-truncation 2015-03-01 09:47:39 -07:00
Ben Johnson 16dbe8ba2f Add Broker.Truncate(). 2015-03-01 07:06:25 -07:00
Cory LaNou ad16b1b1ed disabling test until fixed. Issue #1726 2015-02-25 11:20:37 -07:00
Ben Johnson 39ae8e6406 Add topic segmentation. 2015-02-24 20:32:20 -07:00
Todd Persen e45611cde3 Pull in cluster ID for reporting. 2015-02-23 10:42:39 -08:00
Ben Johnson 7107d4b0ac Start replica subscription from index zero. 2015-02-21 15:01:32 -08:00
Ben Johnson 408cf37e5a Fix broker reopen test, docs. 2015-02-21 15:25:11 -07:00
Ben Johnson a5692b71ee Add proper broker recovery.
This commit fixes the broker recovery so that it determines the last index
from the various topic logs instead of persisting the snapshot on every
message that comes in.
2015-02-21 08:21:51 -07:00
Paul Dix 36d16a3172 Update broker to have URLs for replicas
* Update the infludb broker to not need a server so that it'll work on non-data node servers
* Update messaging broker to keep track of connect urls for replicas
2015-02-17 21:02:53 -05:00
Ben Johnson 43e27680a4 Partial CQ structure.
Conflicts:
	cmd/influxd/run.go
2015-02-17 20:59:57 -05:00
Ben Johnson 6c14371df4 Refactor raft package.
This commit refactors the raft package to more loosely couple the individual parts. The clock is now broken into
an interface that signals individual actions in the log. The transport has been mocked to allow more control over
the log tests. The handler's log has been mocked to separate its testing from the log itself.
2015-02-04 18:59:06 -07:00
Philip O'Toole 00075be679 Disable TestBroker_Join until fixed
Panic on travis:

=== RUN TestBroker_Join
[raft] 2015/01/30 06:46:16 log open: created at
/tmp/influxdb-messaging-119432971/raft, with ID 0, term 0, last applied
index of 0
[raft] 2015/01/30 06:46:16 log state change: stopped => leader
[raft] 2015/01/30 06:46:16 log initialize: promoted to 'leader' with
cluster ID 3337066551442961397, log ID 1, term 1
[raft] 2015/01/30 06:46:16 log open: created at
/tmp/influxdb-messaging-071763182/raft, with ID 0, term 0, last applied
index of 0
[raft] 2015/01/30 06:46:17 log state change: stopped => follower
[raft] 2015/01/30 06:46:17 log join: entered 'follower' state for
cluster at http://127.0.0.1:33257  with log ID 2
[raft] 2015/01/30 06:46:17 log state change: follower => follower
[raft] 2015/01/30 06:46:17 log state change: follower => stopped
panic: write to: add stream writer: write to: replica unavailable
goroutine 410 [running]:
github.com/influxdb/influxdb/messaging_test.func·003()
    /home/travis/gopath/src/github.com/influxdb/influxdb/messaging/broker_test.go:260
+0x140
created by
github.com/influxdb/influxdb/messaging_test.(*Broker).MustReadAll
    /home/travis/gopath/src/github.com/influxdb/influxdb/messaging/broker_test.go:262
+0x14e
2015-01-29 22:47:32 -08:00
Philip O'Toole 9943f86cf4 Enable module-level logging 2015-01-29 15:07:58 -08:00
Ben Johnson 26f4cf6cba Add raw broker benchmark. 2015-01-28 21:44:13 -05:00
Ben Johnson efc0a263e3 Add Broker over HTTP benchmark. 2015-01-28 21:38:02 -05:00
Ben Johnson 0c64014fac Add additional broker HTTP redirection. 2015-01-28 03:41:28 -05:00
Ben Johnson cc025f3e74 Fix broker metadata persistence. 2015-01-28 03:21:00 -05:00
Ben Johnson 3601c3c79f Fix restarts and broker redirection. 2015-01-28 01:09:50 -05:00
Cory LaNou b815cb5689 go vet without arguments will now pass cleanly 2015-01-13 11:15:45 -07:00
Ben Johnson 071ab8510a Merge branch 'master' of https://github.com/influxdb/influxdb into write-series 2015-01-12 12:37:48 -07:00
Philip O'Toole 295d63cb57 More vet fixes 2015-01-11 15:14:22 -08:00
Ben Johnson 5652e12c63 Add write series. 2015-01-10 13:29:43 -07:00
Ben Johnson 6912c1415d Merge branch 'master' of https://github.com/influxdb/influxdb into write-series
Conflicts:
	server.go
2015-01-10 10:03:37 -07:00
Ben Johnson c20746ffa6 Code review fixes. 2015-01-10 09:08:00 -07:00
Ben Johnson 946007916c Partial write series code. 2015-01-10 08:48:50 -07:00