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

9422 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart b440b602d3 Removing client-side use of GetSessionId.
Now the vtgate gateways all use Target instead.
2016-04-26 09:58:54 -07:00
Alain Jobart d66231aca6 Refactor tabletconntest.
It is now checking all error types. Lots of clean-up too.
2016-04-26 09:09:27 -07:00
Alain Jobart a4d70c7370 Adding unit tests for new methods.
The BeginExecute and BeginExecuteBatch RPC methods now have tests, that
also make sure the transactionID is returned in case of an exec error.
2016-04-26 09:09:27 -07:00
Alain Jobart 8aa12343ac Adding combo methods to gateway interface.
Now we have BeginExecute and BeginExecuteBatch in gateway. They call the
corresponding tabletconn methods.

Also using them in scatter_conn.go. And in there, fixing a bug where the
transactionID would be forgotten after an ExecuteBatch error (but a
successful Begin).
2016-04-26 09:09:27 -07:00
Alain Jobart ed80827889 Adding combo methods to tabletconn.
These are BeginExecute and BeginExecuteBatch. In most places for now,
they still do the two RPCs. Will add tests first before adding a single
RPC in the gRPC proto.
2016-04-26 09:09:27 -07:00
Alain Jobart 2c3b2dec7c Removing unused test code.
(good thing it's unused, sleeps are not a good idea).
2016-04-26 09:09:27 -07:00
Alain Jobart 7a0c90d15e Fixing the test fixtures to use separate counts.
In vtgate tests, we were counting a Begin, Commit or Rollback twice.
With the upcoming merge, it didn't make much sense any more.
2016-04-26 09:09:27 -07:00
Alain Jobart 41e59f03b9 Moving begin() calls around.
This way Begin() and Execute() or ExecuteBatch() calls are right next to
eachother. It is now very easy to merge these into a single call.
2016-04-26 09:09:27 -07:00
Alain Jobart 78d657a986 Refactoring scatter_conn.
To separate the transaction paths and the non-transaction paths.
2016-04-26 09:09:27 -07:00
sougou 2ce36f38b8 Merge pull request #1649 from youtube/vindex_varchar_support
Vindex varchar support
2016-04-25 15:33:40 -07:00
Ashudeep Sharma ac81c132ca Incorporating Review Comments 2016-04-26 03:28:47 +05:30
Ashudeep Sharma 33880c5613 Removed the bytes.ToLower in block3DES.Encrypt func, already taken care of in GetBytes() 2016-04-25 15:44:29 +05:30
Ashudeep Sharma d0265aa713 Incorporating Review Comments 2016-04-25 15:39:08 +05:30
Ashudeep Sharma 1c773b1cd2 Removing Commented Code 2016-04-25 02:06:11 +05:30
Ashudeep Sharma 03c10ffc22 Adding tests for varchar and varbinary Vindexes 2016-04-25 02:03:58 +05:30
Ashudeep Sharma 347cf7199b VarChar/VarBinary Column Support Changes in Vindex 2016-04-24 00:26:24 +05:30
Michael Berlin bd52c0814b worker: Refactored tests to use Run()+WaitForCommand() instead of calling the command's method.
The previous version was very low level. The new version is much closer to what the vtworker binary and the RPC servers do.
2016-04-22 20:16:05 -07:00
Anthony Yeh fb1f128bd8 doc: Fix keyspace id description in Concepts
It was confusing the *keyspace ID* concept with the `keyspace_id`
column.
2016-04-22 14:52:45 -07:00
Michael Berlin 1d7937d0d6 Merge pull request #1648 from michael-berlin/always_install_go_grpc_plugin
Makefile: Remove optimization that we skip installing the gRPC Go pro…
2016-04-22 23:34:57 +02:00
Anthony Yeh 9dca569392 Add Percona Live 2016 slides. 2016-04-22 14:28:07 -07:00
Michael Berlin 7509f82286 Makefile: Remove optimization that we skip installing the gRPC Go protobuf plugin if it already exists in $GOROOT/bin.
This optimization would not pick up version changes (e.g. when we
upgrade the vendor'd "github.com/golang/protobuf/protoc-gen-go" repo
copy by running bootstrap.sh) and unnecessarily introduce confusion.

Without the optimization, "make proto" won't be slowed down noticeable
when the plugin was already installed.
2016-04-21 15:18:13 -07:00
Erez Louidor 3b855119d8 Merge pull request #1646 from erzel/add_gen_load_to_vttest
Adding a flag to run_local_database.py to allow populating the databa with initial random data.
2016-04-21 13:46:45 -07:00
Erez Louidor b6efc506b2 Adding a flag to run_local_database.py to allow populating the database with initial random data. 2016-04-21 13:26:37 -07:00
Alain Jobart 7a6816b741 Merge pull request #1647 from alainjobart/streamtransaction
Removing transactionID from client side interface.
2016-04-21 10:06:00 -07:00
Alain Jobart e1082849d3 Removing transactionID from client side interface.
transaction_id is not present on the server side for streaming queries
(and won't be in the foreseeable future). So removing it from the
client side interfaces as well. gRPC protos don't even have it.
2016-04-21 08:59:58 -07:00
Michael Berlin 24dd44e08b Merge pull request #1645 from michael-berlin/pin_protobuf_grpc_go_plugin
bootstrap: Pin protobuf plugin which generates gRPC Go code.
2016-04-20 22:34:26 -07:00
Michael Berlin 24537c3951 Makefile: "proto" target explicitly "go install"s the gRPC Go protobuf plugin.
Note that I have to copy the code from the vendor/ directory to $GOPATH because "govendor" currently has no command like "restore" which "godep" did have.
2016-04-20 17:23:58 -07:00
Michael Berlin 23d56b6f26 bootstrap: Add a comment how to update an existing dependency. 2016-04-20 12:26:25 -07:00
Michael Berlin 95c972cd4c bootstrap: Pin protobuf plugin which generates gRPC Go code.
The gRPC library itself is already pinned by "govendor" and protects as
from breaking changes. The plugin was recently updated and broke us
again. Now this should no longer happen.
2016-04-20 12:24:23 -07:00
Michael Berlin daa1eddbb3 Merge pull request #1644 from michael-berlin/export_test_fix
Exporting internal changes back to open-source.
2016-04-20 12:24:01 -07:00
Michael Berlin d9047979ba vendor: Update gRPC Go version due to breaking change
https://github.com/grpc/grpc-go/pull/642.

(We didn't pin the protobuf grpc Go plugin yet and got broken because of
that.)
2016-04-20 12:03:42 -07:00
Michael Berlin ce210b356c Update generated grpc Go code after breaking change in
https://github.com/grpc/grpc-go/pull/642.
2016-04-20 11:53:32 -07:00
Michael Berlin 75c4fd89f0 Exporting internal changes back to open-source.
NOTE: This is an automated export. Changes were already LGTM'd internally.
2016-04-19 21:59:49 -07:00
Anthony Yeh 229422035c doc/k8s: Update load balancer note. 2016-04-15 22:26:58 -07:00
Anthony Yeh dd318c8eb8 Merge pull request #1642 from enisoc/guestbook-v3
guestbook: Update to use V3 for sharding and resharding.
2016-04-15 22:22:41 -07:00
Anthony Yeh faed5ff5fc guestbook: Update to use V3 for sharding and resharding. 2016-04-15 19:17:43 -07:00
Anthony Yeh 1345bcfa32 Merge pull request #1641 from enisoc/vtctl-vschema
vtctl: Fix vschema commands for new keyspace argument.
2016-04-15 19:14:57 -07:00
Anthony Yeh f7087cf57a vtctl: Fix vschema commands for new keyspace argument. 2016-04-15 17:59:34 -07:00
Anthony Yeh 4da6638820 Merge pull request #1640 from mattharden/patch-1
Fix healthcheck ipv6 bug
2016-04-15 14:15:30 -07:00
Anthony Yeh 18bb48fb44 docker/test/run.sh: Also preserve new Go vendor directory. 2016-04-15 13:41:29 -07:00
Matt Harden 9c51b62d09 Fix healthcheck ipv6 bug 2016-04-15 13:33:26 -07:00
Anthony Yeh 6022a6e8c5 docker: Keep vitess tree from bootstrap.
This is needed so we don't clobber the new vendor directory.

We used to need to clear the tree from bootstrap, because otherwise
files that had been deleted since the last bootstrap image was built
would remain. However, we now only copy a minimal set of files into the
bootstrap image (just enough to run bootstrap.sh), so this is no longer
a concern for ordinary source files.
2016-04-15 11:13:51 -07:00
Anthony Yeh d737a870f9 Merge pull request #1636 from enisoc/vendor
Use govendor instead of godep.
2016-04-15 10:43:11 -07:00
Alain Jobart 05bc6655d6 Merge pull request #1635 from alainjobart/merge
Adding a db merge end to end test.
2016-04-15 08:23:23 -07:00
Alain Jobart 85c70cc733 Fixing a couple comments. 2016-04-15 08:22:49 -07:00
Michael Berlin 643bb90ab9 Merge pull request #1637 from michael-berlin/export_auto_resolver
Export internal changes.
2016-04-14 23:43:02 -07:00
Michael Berlin 5bf08455d2 Export internal changes.
Note: Changes were already LGTM'd internally.
2016-04-14 23:27:55 -07:00
Anthony Yeh 441e5ef26a Use govendor for all Go dependencies.
Instead of `go get`. This way we control when to update versions.
2016-04-14 19:17:52 -07:00
Anthony Yeh 587f3a9c3f Use govendor instead of godep.
Like godep, govendor helps manage the native Go vendor dir. But it also
supports a mode where you don't have to copy all the files into your own
repo. Instead, you run `govendor sync` after updating the `vendor.json`
file, and it reconciles everything by downloading as needed.
2016-04-14 19:15:41 -07:00
Anthony Yeh 7c862e9dff php: Add pixelfederation PDO adapter as a submodule.
To make it easier to find and to simplify later examples and docs.
2016-04-14 19:14:28 -07:00