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

4064 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart 65ed3c6f6b Simplifying tablet error to RPC error. 2015-06-17 09:31:11 -07:00
Alain Jobart c7a126eb2b Refactoring error handling in gRPC. Now unit tests pass. 2015-06-17 08:24:46 -07:00
Alain Jobart 4c790a265c Add SplitColumn to proto3, implement most of server side. 2015-06-17 07:12:10 -07:00
Ammar Aijazi 5f43cc76ac Add a StreamResult2 end-point 2015-06-16 15:31:46 -07:00
Shengzhe Yao e8b3216261 log schema change error only when error is not nil 2015-06-16 14:14:38 -07:00
Alain Jobart 9ff4793807 Finishing client implementation. 2015-06-16 12:30:35 -07:00
Alain Jobart 390bd77e42 WIP: proto3 gRPC query service client and server.
(It's a lot of changes, my WS is acting up, so committing this).
2015-06-16 11:44:24 -07:00
Liang Guo 799134b0a8 Clean up log for new tablet connection. 2015-06-16 10:58:46 -07:00
Anthony Yeh 4ae255187b Merge pull request #795 from enisoc/reparent-timings
Initialize ExternalReparents timings to 0.
2015-06-16 10:34:35 -07:00
Michael Berlin 0a9f9f88b0 automation: Command line wrapper around scheduler (server) and client.
These binaries will be used to run the automation code from the integration tests.
2015-06-15 22:27:05 -07:00
Michael Berlin a48db6a7aa vtctl: Make CopySchemaShard idempotent.
Skip copying the schema if the same exists already on the destination.
2015-06-15 19:33:22 -07:00
Michael Berlin a30503ca0b vtctl: CopySchemaShard optionally allows source shard instead of source
tablet as argument.
2015-06-15 19:13:34 -07:00
Michael Berlin e8d8012ed2 CopySchemaShard unit test: Verify GetQueryCalledNum counts. 2015-06-15 19:12:58 -07:00
Michael Berlin fa62a403b1 Fix typo. 2015-06-15 19:12:10 -07:00
Michael Berlin 9ff062a4c5 Merge pull request #790 from michael-berlin/copyschemashard_optional_tablet
Re-add test for vtctl CopySchemaShard.
2015-06-15 19:03:09 -07:00
Anthony Yeh 32c27f538b Initialize ExternalReparents timings to 0.
When a category of the timings map goes from undefined to defined,
that event will be missed by rate aggregations. For events that happen
often (like queries), missing one is fine. But many reparent events will
be the first time that tablet has become master (since the last restart)
so missing the first event skews aggregations significantly.
2015-06-15 16:42:11 -07:00
Ammar Aijazi 22559c79e3 Add Begin2 to tabletserver, rename to Commit2 and Rollback2 2015-06-15 15:47:57 -07:00
Alain Jobart fd73ab9e34 Renaming SqlQuery to just Query to be shorter. 2015-06-12 11:38:27 -07:00
Ammar Aijazi 3da1d6d4de Change UnsupportedNewCommit and UnsupportedNewRollback to match the new proto3 interface, revert client changes to Rollback and Commit 2015-06-11 23:22:20 -07:00
Anthony Yeh 80f7568bd4 Add --force to mysql_upgrade.
Without it, mysql_upgrade dies with exit code 1 if the database doesn't
need to be upgraded.
2015-06-11 23:07:36 -07:00
Anthony Yeh eb4c6e9b52 Simplify mysql_upgrade output logging.
The docs say it's technically incorrect to use Run() together with
StderrPipe().
2015-06-11 23:01:49 -07:00
Ammar Aijazi 820d9dbffd Merge remote-tracking branch 'origin/master' into aaijazi_more_vttablet_rpc_errors 2015-06-11 17:59:00 -07:00
Michael Berlin fb0057a167 Fix typos. 2015-06-11 15:51:07 -07:00
Alain Jobart fe8de91ed5 Renaming caller_id to effective_caller_id to be consistent. 2015-06-11 15:11:34 -07:00
Alain Jobart 694388479b Adding immediate caller id to query service. 2015-06-11 14:36:52 -07:00
Alain Jobart 2f5a3265e7 Fixing typo. 2015-06-11 11:13:04 -07:00
Ammar Aijazi be53632914 Fix a test, and remove an duplicate one 2015-06-10 17:21:23 -07:00
Anthony Yeh 5e49324680 Fix mysql_upgrade during Restore.
1) mysqld needs to be running to use mysql_upgrade.
2) mysql_upgrade needs to be told how to connect to mysqld.
2015-06-10 13:50:51 -07:00
Ammar Aijazi d0c935aa4e Add new Commit and Rollback RPC endpoints for QueryService 2015-06-10 12:52:17 -07:00
Ammar Aijazi 856856f234 Send Err in QueryService.StreamExecute's QueryResult responses, handle them in tabletconn 2015-06-10 12:52:17 -07:00
Ammar Aijazi 876c4a658b Add RPCErrors to more QueryService RPC responses 2015-06-10 12:52:15 -07:00
Anthony Yeh a3c11d0f34 Merge pull request #778 from enisoc/fast-external-reparent
Remove old external reparent.
2015-06-10 12:41:32 -07:00
Anthony Yeh 7198b602c6 Rename unused flag to make sure it's really unused. 2015-06-10 12:40:52 -07:00
Anthony Yeh 132809a54c Remove old external reparent. 2015-06-10 11:58:08 -07:00
Alain Jobart 2337af3820 Now splitting automation proto. 2015-06-10 11:35:58 -07:00
Alain Jobart 337e97c341 Now splitting vtctl service. 2015-06-10 10:39:23 -07:00
Alain Jobart 14b82b06db Now splitting binlog. 2015-06-10 10:11:40 -07:00
Alain Jobart c47fc6ca94 Now splitting tabletmanager. 2015-06-10 09:32:15 -07:00
Alain Jobart 0f667475ec Now splitting queryservice into types and RPCs. 2015-06-10 09:26:39 -07:00
Alain Jobart 229f252570 Splitting vtgateservice into structures and services. 2015-06-10 09:22:08 -07:00
Alain Jobart 66c62bdf98 Merge pull request #772 from youtube/topo
Topo
2015-06-10 07:42:24 -07:00
Ammar Aijazi 7a1b86cc70 Merge pull request #771 from youtube/aaijazi_change_unused_from_string_to_struct
Change all unused RPC args or replies to rpc.Unused instead of empty strings
2015-06-09 17:21:00 -07:00
Alain Jobart 26cbe7fc7f Merge pull request #776 from youtube/log
Adding unit test for permissions.
2015-06-09 16:05:51 -07:00
Alain Jobart a8320bde12 Adding unit test for permissions.
Using Alias.IsZero() more often.
2015-06-09 14:24:49 -07:00
Shengzhe de5863a4fc Merge pull request #770 from yaoshengzhe/fix_stop_early_if_no_schema_changes
make schema manager stop early if there is no schema change
2015-06-09 13:33:17 -07:00
Alain Jobart d7a2185ecf Small fix to indexes. 2015-06-09 11:44:22 -07:00
Alain Jobart 057a901d6f COuple fixes to tabletmanager.proto. 2015-06-09 11:40:12 -07:00
Alain Jobart ee1a57f664 Adding full version of tabletmanager.proto, fixed. 2015-06-09 11:34:54 -07:00
Ammar Aijazi 6a88960d0a Change all unused RPC args or replies to rpc.Unused instead of empty strings 2015-06-09 11:29:50 -07:00
Alain Jobart 0d708af66f Adding binlog and replication protos. 2015-06-09 10:53:27 -07:00
Alain Jobart c2742b3a3d Adding vtgateservice proto. 2015-06-09 10:32:25 -07:00
Alain Jobart a6d79f30d8 Adding vtrpc.proto, using it in queryservice.
(defines CallerID and RPCError).
2015-06-09 09:43:50 -07:00
Shengzhe Yao 4a9265be11 make schema manager stop early if there is no schema change 2015-06-09 09:16:23 -07:00
Alain Jobart 31891be3fa Adding topo.proto, reworking queryservice.proto. 2015-06-09 07:57:47 -07:00
Michael Berlin d8e24074df Correct help text and comments for "ScrapTablet" to make sure that it does not run "RebuildKeyspaceGraph". 2015-06-08 18:14:51 -07:00
Alain Jobart e2c8349304 Merge branch 'master' into topo 2015-06-08 14:23:19 -07:00
Alain Jobart 48dbec85b0 Removing Cell from queryservice. 2015-06-08 12:45:01 -07:00
Ammar Aijazi 17507055ff Merge pull request #760 from youtube/aaijazi_rpc_errors_for_vttablet
Pass RPCErrors by pointer instead of value
2015-06-08 11:01:04 -07:00
Alain Jobart 4800a5406f Merge branch 'master' into topo 2015-06-08 06:59:56 -07:00
Alain Jobart 0f7923ea6f Updating proto file. 2015-06-08 06:53:02 -07:00
Shengzhe 05b2c862d2 Merge pull request #762 from yaoshengzhe/fix_use_underscores_for_command_line_params
use underscores for vtctld command line params
2015-06-05 11:23:24 -07:00
Anthony Yeh 8a11c9e5a4 Merge pull request #757 from enisoc/serving-graph-updates
Lock-free serving graph updates
2015-06-05 11:00:10 -07:00
Shengzhe Yao abdcfb94ca use underscores for vtctld command line params 2015-06-05 10:53:10 -07:00
Alain Jobart f5e18b586f Removing primecache. Not useful any more.
(with faster replication in MariaDB and MySQL 5.6, this is now
not necessary).
2015-06-05 09:14:32 -07:00
Anthony Yeh 9c841b21b8 Rebuild only the old and new master in fast external reparent.
Instead of doing a full serving graph rebuild.
2015-06-05 05:41:08 -07:00
Anthony Yeh aaec6d9752 Make RebuildShard resilient against lock-free updates. 2015-06-05 04:58:18 -07:00
Anthony Yeh 6a6bdb9dd3 Use UpdateTabletEndpoints for init and healthcheck. 2015-06-05 04:44:52 -07:00
Anthony Yeh 2f24bcdf4a Add compatibility flag to lock for all serving graph updates. 2015-06-05 02:22:42 -07:00
Anthony Yeh 9341a267e0 Remove UpdateTabletEndpoint() from topo.Server.
It has been replaced by topotools.UpdateTabletEndpoints().
2015-06-05 01:55:35 -07:00
Anthony Yeh 439b778999 Add UpdateTabletEndpoints for lock-free single-tablet updates. 2015-06-05 01:39:58 -07:00
Ammar Aijazi d339c32c49 Pass RPCErrors by pointer instead of value 2015-06-04 20:26:00 -07:00
Michael Berlin 2b233c083e vtctl: Remove unnecessary ")" from help output. 2015-06-04 18:11:01 -07:00
Anthony Yeh c06971eb8a Fix golint suggestions. 2015-06-04 15:04:34 -07:00
Anthony Yeh 8437f38e4f Make topo EndPoints functions version-aware. 2015-06-04 14:55:43 -07:00
Anthony Yeh 100325673a fakezk: respect version in Delete. 2015-06-04 14:51:50 -07:00
Alain Jobart 27a8b86f85 Using contexts in a more standard way. 2015-06-04 09:01:20 -07:00
Alain Jobart 49ab48b06e Merge pull request #747 from youtube/topo
Topo
2015-06-04 06:47:08 -07:00
Alain Jobart 408a039aff Merge pull request #749 from youtube/replication
Replication
2015-06-04 06:46:44 -07:00
Ammar Aijazi 4cca822417 Move rpc-error-only-in-reply flag to tabletserver instead of being implementation specific 2015-06-03 19:27:21 -07:00
Ammar Aijazi 6e0f5d68c3 Add a flag and some tests for returning RPC errors in RPC responses 2015-06-03 19:27:21 -07:00
Ammar Aijazi fb4c5fb10e queryservice's Execute should return RPCErrors as part of QueryResult 2015-06-03 19:27:21 -07:00
Alain Jobart ea93cb3343 Using context for backup / restore too. 2015-06-03 14:29:00 -07:00
Alain Jobart 374bb645a6 Now using context in mysqlctld communication, and in
mysql Start/Shutdown.
2015-06-03 14:21:39 -07:00
Alain Jobart a72346bd85 Now running mysql_upgrade after a restore. 2015-06-03 09:12:23 -07:00
Alain Jobart 5cc30160cb Adding custom sharding support to SplitQuery.
SPlitQuery can now return either KeyRangeQuery for range-based sharding, or QueryShard for custom sharding.
2015-06-02 14:27:40 -07:00
Alain Jobart 81667cc406 Adding SplitQuery to vtctl, and a way to call it from tests. 2015-06-02 14:01:42 -07:00
Alain Jobart 06ac33e7d8 Now setting ServedTypes properly for custom-sharding shards.
And unit test.
2015-06-02 14:01:05 -07:00
Alain Jobart b0e00a3341 Resetting the getVersionFromTablet variable for unit test. 2015-06-01 14:09:11 -07:00
Alain Jobart dcab010154 Merge branch 'master' into log 2015-06-01 13:01:05 -07:00
Alain Jobart fdce70b2bd Adding a unit test for wrangler's version code. 2015-06-01 12:14:48 -07:00
Alain Jobart ebaab78642 Merge pull request #741 from youtube/replication
Replication
2015-06-01 11:33:52 -07:00
Shengzhe Yao b2d56113c0 make fakesqldb returns an error for unrecognized query
fakesqldb returns an empty QueryResult if a query is not recognized.
This behavior reduces typing in unit tests but also causes confusions.
In general, if caller does not set the mock result for a particular
query, fakesqldb should return an error.
2015-06-01 10:24:06 -07:00
Alain Jobart f21971dba9 Fixing comment. 2015-06-01 09:54:08 -07:00
Alain Jobart ae1dfe8175 Adding notInTransaction flag to vtgate go API. 2015-06-01 09:46:57 -07:00
Alain Jobart 5a7a9e58ff Adding 'vtctl VtGateExecuteShard' command.
Using it in new custom_sharding.py test.
2015-06-01 09:14:16 -07:00
Alain Jobart 5a803ac580 (missing from previous commit). 2015-06-01 08:29:19 -07:00
Alain Jobart 8133e6a36f Adding 'vtctl VtGateExecute' command, and integration test. 2015-06-01 08:28:10 -07:00
Alain Jobart b5f5970651 Merge pull request #740 from youtube/log
Log
2015-06-01 06:50:53 -07:00
Alain Jobart d2562b48c6 Merge pull request #737 from youtube/resharding
Resharding
2015-06-01 06:50:36 -07:00
Alain Jobart b2978cbca2 Adding unit test for migrate_served_types. 2015-05-29 16:06:38 -07:00