Ammar Aijazi
474ae441b5
Merge pull request #385 from youtube/aaijazi_vtworker_insert_as_client
...
vtworker inserts as App instead of Dba user
2015-02-10 10:44:36 -08:00
Ammar Aijazi
8c43304bde
Make DBConfigName into a real type
2015-02-09 16:59:01 -08:00
Ammar Aijazi
51c077b9b5
Workers now write data as App instead of Dba
2015-02-09 16:59:01 -08:00
Ammar Aijazi
c4d5b9572f
Add an App pool to Mysqld (and fix some lint errors while I'm here)
2015-02-09 16:59:01 -08:00
Alain Jobart
be7ddff91e
Adding a comment.
2015-02-09 12:53:41 -08:00
Alain Jobart
02d627684c
Simplifying the registration API a bit.
2015-02-09 10:40:20 -08:00
Alain Jobart
ec6d0bd60a
Making checkMysql private, removing unused method.
2015-02-09 10:11:13 -08:00
Alain Jobart
7cdeb1fb34
Adding QueryServiceControl interface, to handle registration
...
and mocking of the query service. Still needs some cleanup,
but it's a good time to get a review.
2015-02-09 10:00:41 -08:00
Shengzhe Yao
df03a39f70
add test and some minor changes to vtgateconn
...
1. add unit test
2. change RegisterDialer behavior, it will do nothing when one tries
to register an existing protocol instead of throwing a fatal error
3. add GetDialerWithProtocol function so that caller could use speficied
DialerFunc instead of relying on command line flag: vtgateProtocol to
choose a protocol.
4. both GetDialer and GetDialerWithProtocol will return nil DialerFunc
if protocol is not found in the dialers map. This allows one to write
unit test for GetDialerWithProtocol and won't make a big change on
error handling since dereferencing nil is almost same as throwing
a fatal error (both will crash an app)
2015-02-06 18:05:59 -08:00
Ammar Aijazi
2bed98cba6
Fix TabletManagerClient.IsTimeoutError so that it doesn't always return true
2015-02-06 17:36:09 -08:00
Anthony Yeh
9ed581be0a
Merge pull request #387 from youtube/local-cluster
...
Explain `init` versus `start` in local example.
2015-02-06 13:36:09 -08:00
Anthony Yeh
61d6cbbb01
Explain `init` versus `start` in local example.
...
Fixes #362
2015-02-06 13:29:08 -08:00
sougou
93447886c9
Merge pull request #386 from youtube/suguwork
...
tabletserver: use new ConnPool & DBConn
2015-02-06 11:26:55 -08:00
Sugu Sougoumarane
8ca331fe52
tabletserver: use new ConnPool & DBConn
2015-02-05 23:34:32 -08:00
Sugu Sougoumarane
23a9af9555
tabletserver: ConnPool tweaks.
...
The PoolConn abstraction does not need to be supported by
ConnPool. Only QueryEngine needs this. So, we'll move it there.
2015-02-05 19:46:53 -08:00
sougou
aae5e95c69
Merge pull request #384 from youtube/suguwork
...
New connection pool & connection
2015-02-05 15:24:07 -08:00
Sugu Sougoumarane
4a6da44d2e
tabletserver: disable manual test
2015-02-05 14:47:02 -08:00
Sugu Sougoumarane
edb546eb64
tabletserver: New connection pool and connection
...
Implementing a new pool and associated connection to
better manage connection problems. This new combination
addresses the following problems:
- On connection error, retry if allowed.
- CheckMySQL if necessary.
- New Exec API with deadline.
- Improved connection killer that kills the connection on
both sides.
This is just the framework for now. The next CL will
actually change the tabletserver to use this.
The test is manual for now. So, it's disabled by default.
2015-02-05 13:20:15 -08:00
Anand Henry
2a4c15f613
Merge pull request #379 from qfel/plugin
...
Enable plugins to change rendering of shards in serving_graph/dbtopo
2015-02-05 11:16:01 -08:00
Sugu Sougoumarane
91b2042abf
Merge branch 'master' into suguwork
2015-02-04 12:47:43 -08:00
Anand Henry
28700451d6
ThrottledError should extend DatabaseError
2015-02-04 09:32:33 -08:00
Anand Henry
16199ee801
Merge pull request #382 from youtube/travis-low-mem
...
Fix Travis build failure
2015-02-04 09:31:26 -08:00
Sugu Sougoumarane
d00bc47d63
Merge branch 'master' into suguwork
2015-02-03 22:56:52 -08:00
Ammar Aijazi
be365f6e66
Merge pull request #381 from youtube/aaijazi_add_worker_tests
...
Added SplitDiffWorker tests
2015-02-03 20:28:58 -08:00
Anand Henry
cfcddad470
Travis: Disable initial_sharding_bytes test
2015-02-03 20:10:04 -08:00
Ammar Aijazi
ca69a57626
Added a smoke test for SqlDiffWorker
2015-02-03 19:47:44 -08:00
Ammar Aijazi
86d9b1b41b
Added a smoke test for SplitDiffWorker
2015-02-03 19:32:58 -08:00
Anthony Yeh
1bcb33c93a
Merge pull request #380 from youtube/k8s-proxy-js
...
Add proxy prefix to /debug/vars in JS update func.
2015-02-03 19:04:16 -08:00
Ammar Aijazi
e764f863b6
Added a smoke test for VerticalSplitDiffWorker
2015-02-03 18:41:30 -08:00
Anand Henry
2e91dc1035
Travis: build before running test target
2015-02-03 18:06:34 -08:00
Anand Henry
125a365286
Travis: Skip initial_sharding test
...
It is running OOM since Travis environment got last updated
2015-02-03 17:52:53 -08:00
Anthony Yeh
9d8cbaaf63
Add proxy prefix to /debug/vars in JS update func.
...
e.g. if we're accessing the status page at:
http://my.proxy/vttablet-123/debug/status
then the JS on that page needs to request vars from:
/vttablet-123/debug/vars
instead of just /debug/vars.
2015-02-03 16:55:03 -08:00
Piotr Kufel
4da9963d51
Add Tag field to topotools.ShardNodes
...
- This will allow plugins to compute per-shard data in parallel instead of sequentially when rendering the template
2015-02-03 15:52:36 -08:00
Piotr Kufel
99d0a50566
Add hooks for plugins to process DbTopology and DbServingGraph
2015-02-03 15:51:23 -08:00
Ammar Aijazi
736cee1053
Modify Wrangler to take in a TabletManagerClient at creation
2015-02-03 15:49:02 -08:00
Piotr Kufel
04f211e25b
Export FuncMap
...
- Allows plugins to override template rendering helpers
- Postpones dummyTemplate creation until NewTemplateLoader is called (so changed to FuncMap during init are picked up)
2015-02-03 15:36:51 -08:00
Ammar Aijazi
4451e668c7
Added a trivial FakeTabletManagerClient
2015-02-03 15:32:50 -08:00
Ammar Aijazi
d43a2daa21
Revert FakeBinlogPlayer changes
2015-02-03 14:55:02 -08:00
Ammar Aijazi
24cd31119b
FakeBinlogPlayerMap
2015-02-03 14:55:02 -08:00
Sugu Sougoumarane
24cb427aaa
Merge branch 'master' into suguwork
2015-02-03 14:13:56 -08:00
Ammar Aijazi
4abc173fdd
Merge pull request #377 from youtube/aaijazi_add_worker_tests
...
Added integration tests for VerticalSplitCloneWorker
2015-02-03 10:08:19 -08:00
Ammar Aijazi
6624f23332
Added integration tests for VerticalSplitCloneWorker
2015-02-02 18:43:20 -08:00
Piotr Kufel
7bb300de35
Change [srv_]shard template helpers to accept ShardNodes instead of shard name (string)
...
- This allows for rendering more shard-related data in [srv_]shard
- Also cleanup indentation in HTML templates
2015-02-02 18:32:39 -08:00
Anthony Yeh
bc668d92f7
Merge pull request #376 from youtube/kube-down-failfast
...
Fail fast in *-down.sh scripts.
2015-02-02 16:24:12 -08:00
Anthony Yeh
a7b7933637
Fail fast in *-down.sh scripts.
...
This way the user is more likely to see the errors.
It's also easier to reason about the state of the system if you know the
script stopped at a certain point.
2015-02-02 15:30:41 -08:00
Anthony Yeh
13d830b859
Merge pull request #375 from youtube/diff_utils_test
...
Add some tests for vt/worker/diff_utils.
2015-02-02 12:20:39 -08:00
Anthony Yeh
cea1b0c9ea
Add some tests for vt/worker/diff_utils.
...
Chipping away at file in the top 10 for most lines missed according to
Coveralls.
2015-02-02 11:45:09 -08:00
Anand Henry
5005aa6171
Merge pull request #182 from youtube/exp-retry
...
Exponential backoff retry in VtGate client
2015-01-30 17:54:25 -08:00
Anand Henry
7f68fd04c5
Make vtgate_utils_test an executable Py script
2015-01-30 17:14:42 -08:00
Anand Henry
0dd9321146
Merge branch 'master' into exp-retry
2015-01-30 16:29:11 -08:00