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

3857 Коммитов

Автор SHA1 Сообщение Дата
sougou 05ee74b9aa Merge pull request #146 from youtube/vtgate
Vtgate
2014-11-07 21:51:57 -08:00
Sugu Sougoumarane 75f8261512 vtgate v3: remove currently untesttable code
v3 api doesn't get along with the existing keyspace_id
scheme in tablet manager. This means that we can't
integration test the VTGate entry points. So, it's
better if such code is removed.
2014-11-07 20:16:37 -08:00
Sugu Sougoumarane 8c06776fb1 vtgate v3: add tests to cover new code paths 2014-11-07 12:19:30 -08:00
Sugu Sougoumarane 18cd4e6b68 vtgate v3: planbuilder cleanup 2014-11-07 01:15:25 -08:00
Anthony Yeh 5953f6cc77 Merge pull request #145 from youtube/rebuild
Expand lock to avoid race in RebuildShard.
2014-11-06 17:54:03 -08:00
Anthony Yeh 243385f657 Expand lock to avoid race in RebuildShard.
Lock before reading topo, to prevent another rebuild from writing
fresher data that could then be overwritten with stale data by a slow
rebuild.
2014-11-06 17:18:11 -08:00
Anthony Yeh db347f1918 Add a hook to zk TestServer for use in tests. 2014-11-06 17:17:11 -08:00
Anand Henry e8fb4b16d9 Merge pull request #144 from youtube/split-query
Minor refactor of GetMRSplits
2014-11-06 09:03:08 -08:00
Anand Henry 89f9379872 Rename QuerySplit to SplitQueryPart 2014-11-06 09:00:25 -08:00
Sugu Sougoumarane 046e0ed4fa vtgate v3: planbuilder unit tests complete 2014-11-06 00:44:43 -08:00
Anand Henry 4fe9287868 SplitQuery should be shard agnostic
Specify total number of splits instead of splitsPerShard
2014-11-05 23:13:47 -08:00
Anand Henry b7220631a7 Rename GetMRSplits to SplitQuery
The functionality is not specific to MapReduce, any job that wants to
split a large query into non-overlapping sub queries can use this end point.
2014-11-05 22:46:05 -08:00
sougou d390cb8418 Merge pull request #143 from youtube/vtgate
Vtgate
2014-11-05 22:06:53 -08:00
Sugu Sougoumarane 2fd3153861 vtgate v3: add comments to v3 specific files 2014-11-05 16:27:16 -08:00
Sugu Sougoumarane 39c6e555aa vtgate v3: comprehensive tests for select 2014-11-05 16:25:33 -08:00
Anthony Yeh 4e5f3832d5 Merge pull request #140 from youtube/docker
Add Kubernetes config for vtgate, and a sample vtgatev2 client.
2014-11-05 15:30:52 -08:00
Alain Jobart 9ef168e40c Merge pull request #142 from youtube/replication
Replication
2014-11-05 14:17:53 -08:00
Alain Jobart 5b407545c9 Merge branch 'master' into replication 2014-11-05 14:15:11 -08:00
Alain Jobart e53acdcf4b Removing flakiness in this test. The queryIndex variable was
being accessed concurrently.
2014-11-05 14:14:24 -08:00
Anthony Yeh 3d4f767e4a Read topology from vtgate.
This is a temporary work-around until the VTGate V2 client is
topology-free.
2014-11-05 13:53:42 -08:00
Anthony Yeh c804bddf65 Use vitess/base Docker image for client commands.
Instead of running as root with vitess/root. The user shouldn't need to
download any additional image since vitess/root has vitess/base as a
dependency.
2014-11-05 13:33:17 -08:00
shrutip 34744244fb Merge pull request #141 from youtube/shruti_work
Changed format of vtgate error for easier parsing.
2014-11-05 13:16:31 -08:00
Shruti Patil d528845c4f Changed format of vtgate error for easier parsing. 2014-11-05 11:23:26 -08:00
Sugu Sougoumarane 1ad44e7f86 vtgate v3: comprehensive schema tests 2014-11-05 00:10:38 -08:00
Sugu Sougoumarane 1dfae2f4ec vtgate v3: remove VTGate prefix from planbuilder 2014-11-04 21:32:45 -08:00
Anthony Yeh 5eb0c12476 Add Kubernetes config for vtgate, and a sample vtgatev2 client. 2014-11-04 17:38:02 -08:00
Anthony Yeh 40e8797d6a Enable rowcache in Kubernetes example.
Without it, we can't do ApplySchemaShard -simple, because the replicas
will never notice the new schema and will fail to build query plans.
2014-11-04 17:34:39 -08:00
Anthony Yeh 2e73aa1c1e Merge pull request #139 from youtube/onterm
Add OnTermSync for hooks that we should wait for before dying.
2014-11-04 13:21:12 -08:00
Anthony Yeh fbaf2b13db Upgrade shard rebuild to OnTermSync to give it more time.
Removing ourselves from the serving graph when going down gracefully is
important enough to extend lameduck beyond the minimum specified by the
-lameduck-period flag.
2014-11-04 11:58:21 -08:00
Anthony Yeh ff8252376d Add OnTermSync for hooks that we should wait for before dying.
Previously, the lameduck period specified both the minimum and maximum
wait duration. We need a way for certain hooks to specify that they are
important enough to wait for even after lameduck expires. The lameduck
period effectively now specifies the minimum wait time, while the new
onterm_timeout specifies the maximum.
2014-11-04 11:46:56 -08:00
sougou d11190e8e0 Merge pull request #138 from youtube/vtgate
Vtgate
2014-11-03 10:05:03 -08:00
Sugu Sougoumarane ea34dc53e1 vtgate v3: end-to-end: SelectSingleShardKey
Got one plan working end to end. Ssome constructs are still
awkward and need polish, but it all works.
2014-11-02 23:23:00 -08:00
Sugu Sougoumarane 9e2e3e86c9 vtgate v3: no ShardKey special naming
Since each keyspace can have its own ShardKey, it's not a good
ShardKey as a special name because the index may also need to map
to a physical table, which will cause conflicts. Instead, and index
now has a Type field, which can be ShardKey or Lookup.
2014-11-02 20:15:31 -08:00
Sugu Sougoumarane dc98582669 vtgate v3: hash index functionality 2014-11-02 15:30:22 -08:00
Sugu Sougoumarane a6cb5f709a vtgate v3: iterating on ScatterConn API 2014-11-01 21:56:13 -07:00
Sugu Sougoumarane 8f13919a4d vtgate v3: new ScatterConn 'Multi' functions 2014-11-01 20:21:54 -07:00
Sugu Sougoumarane 2170b4e349 vtgate v3: Simplified async logic in ScatterConn
Rollback and close used to happen asynchronously. This creates
confusion, makes the code less readable and less testable.
And it doesn't buy you much.
2014-11-01 13:17:43 -07:00
Sugu Sougoumarane fac06a5b2b vtgate v3: removed plan building from V2 API
We currently don't plan to test V3 with V2. So, there's no
need to build V3 plans for the V2 API.
2014-11-01 13:05:40 -07:00
Sugu Sougoumarane ed8e0ca97a vtgate v3: prep work for new router 2014-11-01 12:17:39 -07:00
Sugu Sougoumarane 666dcaaf4d vtgate v3: Improved input JSON file structure 2014-10-31 21:46:44 -07:00
Anand Henry 0d2e0c2ef4 Java client tests: increase timeout in failure test 2014-10-31 19:56:58 -07:00
Anand Henry bd52d40a23 Merge pull request #135 from youtube/java_client_tests
Java client tests: Add test for tx_pool_full
2014-10-31 19:14:54 -07:00
Anand Henry 41167add89 Java client tests: Add test for tx_pool_full
Drop and recreate table after each test
2014-10-31 19:00:32 -07:00
Ammar Aijazi c32a07b535 Merge pull request #134 from youtube/aaijazi_fix_ramdisk_size
Changing documentation about ramdisk to use 4g instead of 2g
2014-10-31 18:54:21 -07:00
Anthony Yeh b0f64ca15b Merge pull request #133 from youtube/docker
Kubernetes setup for vttablet
2014-10-31 17:48:08 -07:00
Ammar Aijazi c4403552c3 Changing documentation about ramdisk to use 4g instead of 2g 2014-10-31 17:28:30 -07:00
Anthony Yeh fe532c2165 Add instructions for launching vttablet. 2014-10-31 17:02:39 -07:00
Anthony Yeh a0daec7ebc Wait for MySQL to come up and create database. 2014-10-31 16:52:36 -07:00
Anand Henry 65a6c4a5db MapReduce tests should not use JUnit4 2014-10-31 16:35:26 -07:00
sougou 8a42e4250a Merge pull request #113 from youtube/vtgate
Vtgate
2014-10-31 15:21:18 -07:00