Граф коммитов

31 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart 1017ce6cfc Removing SASL over BSON support. 2015-09-01 09:15:37 -07:00
Alain Jobart aed022f0a8 Dropping more support for vts / encrypted port. 2015-07-29 15:32:47 -07:00
Anthony Yeh 6e519640d0 code.google.com/p/goprotobuf has moved to GitHub 2015-05-05 14:33:10 -07:00
Cihangir SAVAS 27380cc193 rpc: fix lint issues under rpcplus 2015-01-02 20:22:11 -08:00
Cihangir SAVAS c2f084c824 rpc: s/+= 1/++ 2015-01-02 20:20:45 -08:00
Cihangir SAVAS ab57f85f26 rpc: s/Id/ID 2015-01-02 20:19:16 -08:00
Cihangir SAVAS c1fd3f2970 rpcplus: added tests for http rpc server 2014-12-28 10:02:08 -08:00
Cihangir SAVAS 5311940482 Revert: rpcplus: splitted ServeCodecWithContext into two functions 2014-12-28 10:02:08 -08:00
Cihangir SAVAS 2c50a56cb6 rpcplus: splitted ServeCodecWithContext into two functions
ServeCodecWithContextOnce will be able to handle only one rpc request and send the response
2014-12-28 10:02:08 -08:00
Anthony Yeh 04f9e79bbc Rewrite imports for golang subrepositories.
As per this announcement:
https://groups.google.com/forum/m/#!msg/golang-announce/eD8dh3T9yyA/HDOEU_ZSmvAJ
2014-12-14 12:48:10 -08:00
Anthony Yeh b09ca93ea3 Add tracing in rpcplus and other places downstream from tabletmanager.
The goal is to start getting useful traces out of tabletmanager.
To start, we trace outgoing RPC calls on the client side.
Certain high-level TopoServer operations are also traced at this point.

To facilitate tracing, I've begun plumbing Context through tabletmanager
and all its users. At this time, it is simply a few regexes adding the
parameter so it can be used by tracing; no timeouts or cancellation are
using Context yet. Those use cases will require more careful
consideration.

Other than tabletmanager, most callers use context.TODO() since they
aren't plumbed yet.
2014-11-11 22:56:57 -08:00
Peter Lobsinger ea86ad835a Make proto.Context private and consolidate on context.Context.
Used some context.TODO calls for rpcplus calls that don't take a
context. Still deciding what to do with those.

Conflicts:
	go/rpcwrap/rpcwrap.go
	go/vt/tabletmanager/gorpctmserver/gorpc_server.go
	go/vt/tabletserver/gorpcqueryservice/sqlquery.go
	go/vt/topo/toporeader.go
	go/vt/vtgate/gorpcvtgateservice/server.go
2014-11-10 15:20:41 -08:00
Anthony Yeh a91d8823ad Add or fix package comments for reusable packages. 2014-09-24 14:35:23 -07:00
Anthony Yeh 8057dd62e4 Run goimports. 2014-07-23 15:18:42 -07:00
Anthony Yeh 9b4f1a8dc9 Skip long tests in "go test -short" mode. 2014-07-22 23:52:38 -07:00
Mike Solomon c661f52b8a Add comments. 2014-04-16 22:33:51 -07:00
Mike Solomon 8326a0d399 Add basic support for protobuf rpc. Check in envelope so there is no dependency on the proto compiler. 2014-04-15 23:24:09 -07:00
Sugu Sougoumarane 064d69300d go vet cleanup 2013-12-24 15:24:45 -08:00
Alain Jobart 1cf5b7c752 Fixing data race in context. And it's faster too. 2013-11-19 10:57:14 -08:00
Ryszard Szopa c34450c6f7 Run go fmt after the initial code.google.com -> github import. 2013-07-19 18:34:43 -07:00
Ryszard Szopa 0d046a5984 Replace code.google.com with github.com/youtube/vitess. 2013-07-18 18:18:20 -07:00
Ric Szopa 3ac1367751 Remove UpdateStream.String to avoid rpc log spam. 2013-02-20 15:48:03 -08:00
Alain Jobart 795856cbfa gofmt decided to remove trailing whitespaces, here is the
full change.

LGTM Ric.
2012-11-21 17:08:45 -08:00
Ric Szopa f4024cdfa5 RPC methods take a context argument.
* * *
The context object is passed around.
* * *
the context is passed as interface{}
* * *
Bring back old function signatures.
* * *
Context-taking RPC method can declare their arguments using the real context type.
* * *
Use inteface{} for context in rpcplus.
2012-10-24 12:49:59 -07:00
Alain Jobart 974e3d871e Refactoring some code in client.go so we don't remove and re-add
streaming RPC values. Minor detail.

LGTM Sugu.
2012-08-29 18:15:24 -07:00
Alain Jobart 5ce4b4cf28 Using a shorter EndOfStream marker.
LGTMike.
2012-08-28 18:24:12 -07:00
Alain Jobart e0a113f69c New version of the streaming RPC code. We simplified the protocol
to use the same message structure, not have a sub-sequence id,
and use an extra message to signal end-of-stream.
2012-08-27 14:06:09 -07:00
Alain Jobart 2c49b0e04b Initial set of changes on rpcplus to add streaming RPC support.
The code was forked because the changes are minimal and seem right,
and because of the backward compatibility.

The protocal is backward compatible on the wire (old clients and servers
will still work with this new library, provided they don't use
the streaming RPC feature).

On the server side, a new interface type is recognized:
func (t *T) method(args T1, sendNonFinalReply func(reply interface{}) error, finalReply *T2) error
so the server implementation can send as many responses as it wants.

On the client side, the implementation uses a channel to read
the responses (and the for : range construct, most likely).
2012-08-16 15:01:35 -07:00
Alain Jobart 7f62e42a4f Initial fork from go/net/rpc. We want to add streaming RPC support to this package.
Note it won't compile as is, as the paths are not correct.
2012-08-16 14:54:07 -07:00
Alain Jobart 986447753c Removing initial rpcplus import.
(we want the history to start wih the original files from go/net/rpc).
2012-08-16 14:51:46 -07:00
Alain Jobart ec1430962e Adding a working version of rpcplus (contains the original go rpc package,
modified to support streaming RPCs).
2012-08-16 11:05:14 -07:00