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

611 Коммитов

Автор SHA1 Сообщение Дата
Michael Berlin 65396155cf Merge pull request #1772 from michael-berlin/throttlerservice
Create RPC service for throttler and add it to vttablet.
2016-06-08 18:22:36 -07:00
Michael Berlin c4b1e665a9 throttler: Add RPC MaxRates to retrieve the current limits. 2016-06-08 15:44:56 -07:00
Michael Berlin c445e52a24 proto: Add a throttler service. 2016-06-08 01:23:12 -07:00
Alain Jobart aa6e6122e6 removing unused import and var. 2016-06-07 08:34:12 -07:00
Alain Jobart 4e490415f3 Deprecating --topology in run_local_database.py. 2016-06-07 08:30:38 -07:00
Alain Jobart 09aa64dcd7 Merge pull request #1765 from alainjobart/vtgatev2
Refactoring vtgatev2_test a bit.
2016-06-06 15:15:45 -07:00
Alain Jobart 77921e57e0 Refactoring vtgatev2_test a bit.
Not restarting processes when we don't have to.
Closing vtgate connections when not used.
Not waiting for SERVING state (when the start_vttablet does it already).
Killing vtgate explicitely at the end to avoid spam.

Execution time went from 210s to 145s on my WS.

Also swallowing execptions on the rollback() in close() for GRPC vtgate
client. We want to close that connection after all.
2016-06-06 14:52:13 -07:00
Erez Louidor 4d4ed60e20 Moved auxilary methods of Proto3Connection out of the class. 2016-06-03 18:24:41 -07:00
Michael Berlin c248d79bb9 Merge pull request #1749 from michael-berlin/schema_fix
schemamanager: Change PreflightSchemaChange to accept a list of changes instead of a single change.
2016-06-03 13:19:59 -07:00
Michael Berlin 3e822ee725 mysqlctl: Made tmutils.SchemaChangeResult a proto message.
This simplifies executing the new PreflightSchema and passing on its response.
2016-06-02 20:33:16 -07:00
Alain Jobart bf2ffee8ee Adding SrvVSchema object. 2016-06-02 14:07:43 -07:00
Michael Berlin 4e1a52b50d schemamanager: Change PreflightSchemaChange to accept a list of changes instead of a single change.
This makes it easier to test multiple changes which depend on each other e.g. a CREATE TABLE after a DROP TABLE if the table already exists.

Fixes issue https://github.com/youtube/vitess/issues/1731#issuecomment-222914389.
2016-06-01 15:00:19 -07:00
Alain Jobart 224981efab Allowing passing keyspace in v3 python client. 2016-05-27 11:51:39 -07:00
Alain Jobart 933d510652 Adding test cases, fixing the related bugs.
Test case for redirected keyspace, fixed the no db creation.
Test case for rdonly / replica access, fix the error in refactored
tablet creation code.
2016-05-26 08:22:13 -07:00
Alain Jobart 79c61e40bc Addressing comments from review.
Changing Shard's db_name to db_name_override.
Rewording a bunch of comments in proto.
Factoring out tablet creation code in vtcombo.
Rebuilding keyspace graph for redirected keyspaces too,
and also setting ShardingColumn{Name,Type} for them.
2016-05-26 07:59:57 -07:00
Alain Jobart f9ac9ff125 Adding go and python plumbing for vttest.proto.
Overall this is so much better than parsing and generating the old
string. Will remove the old code in a week or two.
2016-05-25 16:24:41 -07:00
Alain Jobart a8731c5ce1 vtcombo now also supports vttest topology param. 2016-05-25 16:24:41 -07:00
Alain Jobart 508ff06dcc Missed these files. 2016-05-25 16:24:41 -07:00
Sugu Sougoumarane 78fcdf8f20 Merge branch 'master' into v3 2016-05-20 10:00:01 -07:00
Sugu Sougoumarane dd30f0b5a1 v3 vschema: code review comments 2016-05-19 23:34:55 -07:00
Alain Jobart d73c337514 Removing keyspace.split_shard_count. Unused. 2016-05-19 09:36:06 -07:00
Sugu Sougoumarane 53e6ff7b34 Merge branch 'master' into v3 2016-05-18 14:53:53 -07:00
Sugu Sougoumarane 46b2d12769 v3: VSchemaFormal -> proto3
The most material difference in this PR is that the
JSON format has changed. The tags are all lowercased
now, and ColVindex is now col_vindex.
2016-05-18 14:38:33 -07:00
Alain Jobart 2f05afec43 Removing SrvShard. 2016-05-18 07:47:20 -07:00
Alain Jobart c32483d205 Removing Endpoint from proto. 2016-05-16 10:26:53 -07:00
Alain Jobart c7f808ed98 Removing EndPoints message. 2016-05-16 07:36:19 -07:00
Liang Guo 4ebced614f Fix discovery gateway handling, and also vtcombo. 2016-05-12 20:39:36 -07:00
Liang Guo e59dfa92ac Merge branch 'master' into status 2016-05-11 13:19:43 -07:00
Alain Jobart 1a5f6b1751 Lots of fixes after Anthony's comments.
Lameduck is clearer now.
Re-adding a lameduck case: when going unhealthy.
All lameduck mode is now conditioned on serving_state_grace_period > 0.
Adding reserved obsolete comments to proto for the fields I removed.
2016-05-10 09:08:04 -07:00
Alain Jobart 6d815ad12d No more healthmap in tablet. 2016-05-09 09:36:12 -07:00
Alain Jobart 5c7b385cce Removing targetTabletType from health check proto. 2016-05-09 08:18:45 -07:00
Liang Guo 0d4b8fe87b Merge branch 'master' into status 2016-05-05 14:22:07 -07:00
Alain Jobart a0c8f9e8e8 Removing GetSessionId from queryservice.
And session_id from RPC calls. We switched to target everywhere now.
2016-05-05 07:25:28 -07:00
Liang Guo 71838711e8 Merge branch 'master' into status 2016-05-04 18:44:17 -07:00
Liang Guo 48e7708c6d Delete shard gateway/conn related code, and also fix unit tests to use discoverygateway. 2016-05-04 15:20:36 -07:00
Alain Jobart af6a18b817 Adding BeginExecute{,Batch} rpc to gRPC code.
It is behind a flag for now, until it's been around for long enough, and
then I'll just enable it by default.
2016-04-27 08:11:32 -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 a946c6ad7f Adding client -> vtgate encryption, with test. 2016-04-05 07:43:22 -07:00
Sugu Sougoumarane a5e601481e Merge branch 'master' into v3 2016-03-30 22:20:42 -07:00
Sugu Sougoumarane 3d2fb0c4c2 v3: optional keyspace in request
If a keyspace is in the request, tables will only be searched
in that keyspace unless the query contains explicit references.
2016-03-30 18:03:52 -07:00
Erez Louidor dd7766e9a9 Integrated the new SplitQuery RPC into Vitess. 2016-03-28 16:52:34 -07:00
Alain Jobart ee73b3a056 More clean up on the python client. 2016-03-18 10:59:04 -07:00
Alain Jobart 35490249b1 Removing SHARD_ZERO constant.
It's an application-layer convention that the unique shard
in a keyspace is named '0'. It's not a Vitess-side convention.
2016-03-18 10:59:04 -07:00
Alain Jobart 93ffdb6b15 Refactoring python client. 2016-03-18 10:59:04 -07:00
Anthony Yeh ceea456854 py: Import main protobuf library first.
This helps avoid import order issues when the system version of protobuf
is different from another version in PYTHONPATH.
2016-03-16 17:16:54 -07:00
Alain Jobart aab0207426 Removing all non-go references to bson or gorpc. 2016-03-16 09:35:22 -07:00
Alain Jobart fce1157acf Removing go rpc python clients. 2016-03-16 09:15:57 -07:00
Alain Jobart 6b5b8c9155 Fixing python gRPC client. 2016-03-16 08:11:09 -07:00
Alain Jobart b03996d757 Fixing vtgate python cursor to not pass 2 sets of args. 2016-03-14 16:06:28 -07:00
Anthony Yeh 77d3751321 healthcheck: Add IgnoreHealthError command.
This command lets you selectively force individual tablets to temporarily
ignore health check errors that match the given regexp.
2016-03-07 17:33:28 -08:00