Skip to content

Multiraft Transport implementation#483

Merged
bdarnell merged 6 commits intocockroachdb:masterfrom
bdarnell:raft_transport
Mar 31, 2015
Merged

Multiraft Transport implementation#483
bdarnell merged 6 commits intocockroachdb:masterfrom
bdarnell:raft_transport

Conversation

@bdarnell
Copy link
Copy Markdown
Contributor

Picking up from @tnachen's #292, this PR adds an implementation of multiraft.Transport that uses gossip for addressing, enabling it to be used with multiple nodes. This also required changes to use protobufs on the wire, instead of gob encoding as in LocalRPCTransport.

@tnachen
Copy link
Copy Markdown
Contributor

tnachen commented Mar 26, 2015

@bdarnell thanks a lot for completing this, was hoping to finish it this week but you beat me to it :)
Sorry will definitely like to pick up more pieces when time allows. The changes ofcourse LGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this might be better named raft_transport.go or perhaps just raft.go.

Also, change copyright to 2015.

tnachen and others added 4 commits March 30, 2015 17:57
Adapt to upstream changes to gossip.New.

Add some extra logging. Needs to be changed before merging to
not create a goroutine per rpc.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we fix up this comment? It's a little vague.

@spencerkimball
Copy link
Copy Markdown
Member

LGTM

@bdarnell
Copy link
Copy Markdown
Contributor Author

PTAL with the cockroach/rpc/client changes.

@spencerkimball
Copy link
Copy Markdown
Member

LGTM

bdarnell added a commit that referenced this pull request Mar 31, 2015
Multiraft Transport implementation
@bdarnell bdarnell merged commit 3187089 into cockroachdb:master Mar 31, 2015
@bdarnell bdarnell deleted the raft_transport branch March 31, 2015 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants