Ben Johnson
fc9fafbace
Merge pull request #148 from xiangli-cmu/fix_test
...
test(server_test.go) Fix a deadlock.
2014-01-10 08:22:45 -08:00
Xiang Li
8b5f68b899
Merge pull request #149 from xiangli-cmu/spelling_fix
...
Fix spelling mistake in snapshot.go comment
2014-01-10 02:47:56 -08:00
Baruch Even
caaebb1b56
Fix spelling mistake in snapshot.go comment
2014-01-10 18:47:14 +08:00
Xiang Li
a778d942b3
test(server_test.go) Fix a deadlock.
...
We stop all the servers before finishing the MultiNode test. The mock transporter directly calls to the function of the target server. If the target is stopped, the transporter will just hang there waiting for a reply. So the sender server will also hang for a reply. We add a timeout for the reply to solve this problem.
2014-01-10 18:05:09 +08:00
Ben Johnson
749f09af61
Merge pull request #136 from goraft/refactor
...
Refactor
2014-01-09 14:30:44 -08:00
Xiang Li
cede927431
refactor(peer.go) clean up debugging info
2014-01-09 21:26:35 +08:00
Xiang Li
a4ce4f07b9
refactor(server.go) try non-blocking send first
2014-01-09 18:54:58 +08:00
Xiang Li
33e7b45920
merge with master
2014-01-09 18:18:06 +08:00
Xiang Li
873eeadcd7
Merge pull request #147 from jbcrail/spelling-fixes
...
Fix spelling errors in comments and strings.
2014-01-08 20:26:59 -08:00
Joseph Crail
c6a6491d39
Fix spelling errors in comments and strings.
2014-01-08 22:59:13 -05:00
Ben Johnson
c064081f63
Merge pull request #145 from goraft/remove_timeout
...
remove command timeout
2014-01-02 15:28:43 -08:00
Ben Johnson
d96553b3af
Merge pull request #146 from gdb/master
...
Make HttpTranporter.Transport into an exported field
2014-01-02 15:16:15 -08:00
Greg Brockman
3509cfa7b1
Make HttpTranporter.Transport into an exported field
...
With this patch, it becomes possible to use the HTTPTransporter over
custom transports, such as Unix sockets.
2014-01-01 23:40:29 -08:00
Xiang Li
42e4b8d3f5
remove command timeout
2013-12-30 16:58:38 +08:00
Ben Johnson
7b9d2828c3
Merge branch 'master' of https://github.com/goraft/raft
2013-12-29 15:59:44 -07:00
Ben Johnson
48031ef708
Merge pull request #144 from goraft/election-heartbeat-events
...
Election Threshold and Heartbeat Timeout Event Types
2013-12-29 14:59:31 -08:00
Ben Johnson
14c4999b1c
Merge branch 'master' of https://github.com/goraft/raft
2013-12-29 12:56:11 -07:00
Ben Johnson
4fa809b18d
Merge branch 'master' of https://github.com/goraft/raft
2013-12-29 12:54:15 -07:00
Ben Johnson
390a4b2c72
Add election threshold and heartbeat timeout events.
2013-12-29 12:54:00 -07:00
Ben Johnson
891ea65ab0
Merge pull request #143 from goraft/fix_race
...
fix(server.go)
2013-12-29 09:44:05 -08:00
Xiang Li
007b8dec33
fix(server.go) we should clean the commit channle after the receiver receives the message; or the receiver might receive on a nil channel, which will cause timeout
2013-12-29 18:52:40 +08:00
Ben Johnson
7defa721ab
Fix internal log index deadlock.
2013-12-27 15:23:59 -07:00
Ben Johnson
b50c4eb188
Add Context.CommitIndex().
2013-12-23 16:07:40 -07:00
Ben Johnson
4d569a84f6
Merge pull request #142 from goraft/context
...
Command Context
2013-12-23 14:54:43 -08:00
Ben Johnson
50eaefe123
Command.Apply(Context)
2013-12-23 07:23:11 -07:00
Ben Johnson
311ccba13b
Merge pull request #141 from goraft/event-dispatch
...
Event Dispatch
2013-12-20 14:34:14 -08:00
Ben Johnson
ce8ada2f9a
Add Event Dispatch.
2013-12-20 15:24:38 -07:00
Ben Johnson
faee0712de
Merge pull request #140 from Scooletz/AppendVsCommitComment
...
append vs commit comment changed
2013-12-18 10:08:22 -08:00
Scooletz
267449da18
append vs commit comment changed
2013-12-17 22:33:11 +01:00
Ben Johnson
3892138807
Merge pull request #139 from klobucar/test-version
...
Test more versions of go
2013-12-07 12:39:39 -08:00
Jonathon Klobucar
0543d54adc
Test more versions of go
...
Test latest
* 1.1.2
* 1.2
Pre-compile build before test as well
2013-12-06 23:33:41 -08:00
Xiang Li
aecf7cf857
Merge pull request #138 from philips/add-contact-and-resources
...
feat(README): add contact and resources section
2013-12-05 22:22:11 -08:00
Brandon Philips
7ed53fe155
feat(README): add contact and resources section
...
Add contact and resources section with links to raft-dev, Ben's slides
and the raft consensus homepage
2013-12-05 22:19:46 -08:00
Xiang Li
6d064b5ca5
refactor make deny vote more clear
2013-11-27 00:50:03 -05:00
Xiang Li
2252dfea4c
chrod more clear debug info for committing
2013-11-27 00:42:01 -05:00
Xiang Li
59cb7259c2
fix(server.go/peer.go) server.stop should stop heartbeat before close the log
2013-11-27 00:30:03 -05:00
Xiang Li
1c6f2fcd27
refactor(server.go) do not construct the string if not necessary
2013-11-26 23:43:02 -05:00
Xiang Li
3deb46e6f5
refactor(peer.go) use async send if possible
2013-11-26 23:38:07 -05:00
Xiang Li
c83db5e6e2
refactor(server.go) make async really async.
2013-11-26 23:36:42 -05:00
Xiang Li
acd1f65ec2
Merge pull request #135 from goraft/use_ticker
...
refactor(peer.go) use ticker
2013-11-26 20:31:21 -08:00
Xiang Li
908dd124bd
refactor(peer.go) use ticker
2013-11-26 23:28:50 -05:00
Xiang Li
8a044e7056
Merge pull request #134 from JensRantil/doc-improvements
...
Additional documentation
2013-11-24 15:22:46 -08:00
Jens Rantil
3bbf4cbeb5
Additional documentation
2013-11-25 00:15:02 +01:00
Ben Johnson
ef7586fd77
Add InfluxDB to Projects list.
2013-11-24 15:56:31 -07:00
Ben Johnson
fdd1851583
Merge pull request #132 from JensRantil/correct-readme-link
...
README: benbjohnson => goraft
2013-11-24 14:04:05 -08:00
Jens Rantil
ee05555109
README: benbjohnson => goraft
2013-11-24 21:28:01 +01:00
Ben Johnson
c5d2a9f276
Merge pull request #131 from goraft/fix-restart
...
Fix commit channel on restart.
2013-11-12 19:23:10 -08:00
Ben Johnson
1f3bdcca9b
Fix commit channel on restart.
2013-11-12 22:12:13 -05:00
Xiang Li
6a9a7d2858
Merge pull request #129 from davew2/master
...
reuse the http client, otherwise it keeps making new connections till it...
2013-11-07 21:58:02 -08:00
david williams
1de1658cbd
reuse the http client, otherwise it keeps making new connections till it runs out of resources
2013-11-07 21:15:32 -08:00