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

4064 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart 1da6040140 Fixing worker to not use the first character of a number
to see if it's negative, but use the new flags we have.
2015-06-26 16:49:42 -07:00
Alain Jobart 9a3c4d3a1d Fix necessary for gRPC. 2015-06-26 16:24:22 -07:00
Alain Jobart cfca645770 Merge branch 'master' into resharding 2015-06-26 15:35:53 -07:00
Alain Jobart 78af5ef2b8 Various fixes and test changes to get grpc to work for tabletmanager. 2015-06-26 15:17:35 -07:00
Alain Jobart 58a4df1f83 Adding grpc tm plugins. 2015-06-26 14:55:49 -07:00
Alain Jobart 731fc7dc90 Adding proper grpc dial options. 2015-06-26 14:52:11 -07:00
Alain Jobart a55349540c Factoring out log event functions. 2015-06-26 14:47:19 -07:00
Alain Jobart dc59d5a1f5 Finishing gRPC tablet manager implementation. 2015-06-26 14:36:36 -07:00
Anthony Yeh 1c7437bfff Fix data race in throttled logger test.
The check for skippedCount=1 after logging, but before the throttler
prints anything, cannot be done without racing. It's not necessary
anyway because the resulting log line proves the value of skippedCount.

When checking the value of skippedCount after the throttler prints,
we need to acquire the lock so we know the throttler's goroutine has
had a chance to finish and update skippedCount.
2015-06-26 14:18:03 -07:00
Alain Jobart 15cc088d6f Implementing a few more gRPC tm calls. 2015-06-26 12:04:21 -07:00
Alain Jobart cc14dbc5a5 First pass a gRPC tabletmanager code. Not passing yet, missing
a lot of implementations.
2015-06-26 10:52:39 -07:00
Anthony Yeh 682b1bfb94 Make vtctl print human-readable QueryResults.
The values within each row of a QueryResult were being JSON-encoded as
base64 byte arrays for every type. This JSON encoding was only being
used for tests, until the recent addition of vtctl commands that display
JSON-encoded QueryResults.

Now that we are displaying these to humans, we should display the
results as strings instead of as byte arrays.
2015-06-25 14:57:39 -07:00
Alain Jobart 0a4d922670 Adding a few proto3 methods in preparation for tabletmanager. 2015-06-25 14:54:46 -07:00
Alain Jobart e456c3d20d Merge pull request #830 from alainjobart/resharding
Resharding
2015-06-25 10:03:56 -07:00
Michael Berlin 59691af9db Merge pull request #825 from michael-berlin/clarify_exit
exit package: Clarified package description.
2015-06-25 18:44:08 +02:00
Alain Jobart c50188e6f2 Better library functions for logutil times for proto3. 2015-06-25 08:06:13 -07:00
Alain Jobart 197a06d851 Splitting up time and logger event to logutil proto3. 2015-06-25 07:37:19 -07:00
Alain Jobart 944550c8a8 Merge branch 'master' into resharding 2015-06-25 06:53:12 -07:00
Anthony Yeh ab92c25bc2 Restart queryservice after InitMaster or InitSlave.
If queryservice was already running before a RESET MASTER,
the rowcache invalidator will silently stop working.

This is because the invalidator connects as a slave, and executing
RESET MASTER while slaves are connected is unsupported:

https://dev.mysql.com/doc/refman/5.6/en/reset-master.html
2015-06-24 16:44:44 -07:00
Alain Jobart a23d4b8323 Fixing integration tests to pass with gRPC, both MariaDB and MySQL 5.6. 2015-06-24 13:01:06 -07:00
Alain Jobart 72dd02252e Moving mysql proto conversions to their own file. 2015-06-24 11:47:35 -07:00
Alain Jobart 7b8aed7679 Adding gRPC support for binlog. 2015-06-24 11:38:19 -07:00
Michael Berlin b5fc06318e exit package: Clarified package description. 2015-06-24 12:08:59 +02:00
Alain Jobart e8bf916d5e Removing two obsolete flags. 2015-06-23 16:41:18 -07:00
Alain Jobart 0d73e6e48e Fixing data race condition in this test.
errFunc can only be called after the log channel is closed.
2015-06-23 14:09:21 -07:00
Ammar Aijazi f8aa0d4daa diff workers now return an error when they detect a mismatch 2015-06-19 17:45:04 -07:00
Alain Jobart b69ed8e6ed Splitting out service map to protocol_flavors. That way non-default
protocols can be enabled more easily.
2015-06-19 14:01:03 -07:00
Alain Jobart 281d9c2efa Fix for thread sanetizer-reported issue. 2015-06-19 11:50:28 -07:00
Alain Jobart de1301efb6 Merge branch 'master' into resharding 2015-06-19 08:43:17 -07:00
Liang d336b6256a Merge pull request #809 from youtube/vtgatecode
Use own context to query topo.
2015-06-19 08:39:41 -07:00
Alain Jobart eac090cd50 Renaming a few proto files. Turns out the proto we use in google3
cannot have the same <package name>.<data type> as these, or we cannot
load them at the same time. So to fix this:
- renaming the conflicting ones from xxx.proto to xxxdata.proto.
- renaming vtgateservice.VTGate to vtgateservice.Vitess

Note we can still change the names I chose here, just not back to
conflicting ones. If anyone has better ideas, we can implement
in subsequent changes. This is to get the import to google3 unstuck.
2015-06-19 08:20:58 -07:00
Alain Jobart 7f7373bfe5 Fixing package name. 2015-06-19 07:33:13 -07:00
Alain Jobart d48208ac3a Merge branch 'master' into resharding 2015-06-19 07:04:29 -07:00
Michael Berlin 4edf263463 Merge pull request #805 from michael-berlin/automation_vtctlclient
Automation: CopySchemaShard task and fake for vtctlclient.
2015-06-18 23:56:04 -07:00
Liang Guo 390078c10e Rename the new ctx var. 2015-06-18 17:49:11 -07:00
Liang Guo 81813d2db7 Use own context to query topo. 2015-06-18 16:25:16 -07:00
Alain Jobart bb34ba9ee2 Merge branch 'master' into resharding 2015-06-18 14:48:43 -07:00
Ammar Aijazi bf9484316d Improvements to tabletconntest 2015-06-18 14:24:29 -07:00
Alain Jobart d8e0c280af Merge branch 'master' into resharding 2015-06-18 10:48:45 -07:00
Alain Jobart c7d43ee5e7 Fixing the context cancellation during streaming queries. 2015-06-18 10:21:19 -07:00
Alain Jobart 3799e10fa8 Now registering grpc port for vttablet in portmap.
Also fixing bind variable conversions that were broken
(I need to figure out where to add unit tests for these).
2015-06-18 08:37:32 -07:00
Alain Jobart 4e803c6ec1 Adding grpc go plugins for queryservice.
Unit tests fixes to support gRPC query service.
2015-06-18 08:14:01 -07:00
Alain Jobart ba54cd4aa8 Merge branch 'master' into resharding 2015-06-18 07:38:03 -07:00
Michael Berlin 75cd500dd6 Add fake implementation for vtctlclient.
Use the fake in a unit test for the CopySchemaShard automation task.
2015-06-18 00:25:32 -07:00
Michael Berlin 0785e2c410 automation: Add helper method to run vtctl commands.
Added CopySchemaShardTask as first task which is using it.
2015-06-17 21:25:23 -07:00
Michael Berlin bfec3d563b Move vtctlclient boiler plate code from main into a generic method. 2015-06-17 17:17:45 -07:00
Ammar Aijazi 44f4901af0 Merge pull request #765 from youtube/aaijazi_more_vttablet_rpc_errors
Add RPCErrors to more QueryService RPC responses
2015-06-17 15:51:35 -07:00
Alain Jobart a1b197b84a Merge branch 'master' into resharding 2015-06-17 12:41:21 -07:00
Michael Berlin cc2d459bde Merge pull request #796 from michael-berlin/automation_binaries
Binaries for automation client and server
2015-06-17 11:40:30 -07:00
Michael Berlin 307a244efc automation_client: Move polling into extra function. 2015-06-17 10:39:44 -07:00