Michael Berlin
452265dadd
Merge pull request #703 from youtube/fix_docker_run_permissions_root
...
docker/test/run.sh: Make repo world readable for access from docker.
2015-05-19 18:19:47 -07:00
Michael Berlin
201532b076
Merge pull request #624 from youtube/mysql_flags_java_client
...
java/vtgate-client: Process new "Flags" MySQL field in result set.
2015-05-19 17:56:08 -07:00
Michael Berlin
a8785556be
docker/test/run.sh: Make repo world readable for access from docker.
...
Previously, the permissions of all items *within* the repository were already updated, but not the repository itself.
This resulted into the error 'cp: cannot stat `/tmp/src/*': Permission denied' when running "docker/test/run.sh mariadb".
2015-05-19 17:43:18 -07:00
Anthony Yeh
e8bd9ebfbb
Add Percona Live 2015 slides.
2015-05-19 10:43:51 -07:00
Ammar Aijazi
2f5a0c74aa
Merge pull request #541 from youtube/aaijazi_resharding_robustness_test
...
Added worker.py to cover worker integration tests
2015-05-18 16:30:48 -07:00
Ammar Aijazi
383e2c52e4
Added worker.py to cover worker integration tests
2015-05-18 16:29:47 -07:00
Shengzhe
a110de54ab
Merge pull request #700 from yaoshengzhe/fix_delete_resource_constraint
...
delete go/vt/concurrency/resource_constraint.go
2015-05-18 14:03:58 -07:00
Shengzhe Yao
01efe324e6
delete go/vt/concurrency/resource_constraint.go
...
resource_constraint.go is not used by other packages, delete it.
2015-05-17 20:14:59 -07:00
Shengzhe
c20d9ff974
Merge pull request #699 from yaoshengzhe/fix_schema_management_doc
...
remove deprecated information in schema management doc
2015-05-17 17:12:14 -07:00
Shengzhe Yao
0a95327707
remove deprecated information in schema management doc
...
1. Old vtctl commands ApplySchemaShard, ApplySchemaKeyspace, PreflightSchema
have been removed.
2. ApplySchema only supports doing schema changes for the whole keyspace.
2015-05-15 18:52:02 -07:00
Shengzhe
f4866b2602
Merge pull request #698 from yaoshengzhe/fix_autoschema_rework
...
autoschema rework
2015-05-15 11:32:56 -07:00
Shengzhe Yao
d48c3188f7
detect big schema change and reject it
...
1. Detect big schema change based on table rows. A schema change is
considered big if 1) alter more than 100,000 rows, or 2) change a
table with more than 2,000,000 rows.
2. Add unit test for TabletExecutor and also improve existing test cases.
2015-05-14 19:37:31 -07:00
Shengzhe Yao
82a0a18ac1
add unit test for ConsolveEventHandler
2015-05-14 19:37:31 -07:00
Anthony Yeh
ed9c969815
Merge pull request #697 from enisoc/reparent-stats
...
Report timings of fast external reparents.
2015-05-14 16:33:36 -07:00
Anthony Yeh
69540e5030
Report timings of fast external reparents.
...
Export counts and histogram as debug vars for:
* time until new master is visible
* time until full rebuild is complete
2015-05-14 16:22:03 -07:00
Shengzhe
7b3cd72183
Merge pull request #696 from yaoshengzhe/fix_schema_golint
...
enforce camel case for TABLE_VIEW and TABLE_BASE_TABLE
2015-05-14 12:54:52 -07:00
Alain Jobart
aefde8715e
Merge pull request #695 from youtube/log
...
Removing dependency from go/vt/health and go/vt/mysqlctl to topo.
2015-05-14 11:39:50 -07:00
Alain Jobart
333b9cd089
Removing dependency from go/vt/health and go/vt/mysqlctl to topo.
2015-05-14 11:26:18 -07:00
Shengzhe Yao
db1c4be5f2
enforce camel case for TABLE_VIEW and TABLE_BASE_TABLE
2015-05-14 11:24:57 -07:00
Shengzhe
6d4d890d12
Merge pull request #693 from yaoshengzhe/fix_autoschema_rework
...
autoschema rework
2015-05-14 11:14:09 -07:00
Alain Jobart
df8f703948
Merge pull request #694 from youtube/log
...
Let optional hooks also work when VTROOT is not set.
2015-05-14 10:03:50 -07:00
Alain Jobart
a748c47b1d
Let optional hooks also work when VTROOT is not set.
...
That's easier for unit tests.
2015-05-14 08:41:17 -07:00
Alain Jobart
9c41207892
Merge pull request #691 from youtube/resharding
...
Resharding
2015-05-14 06:59:02 -07:00
Shengzhe Yao
86f64b6769
fix mysqlctl/proto/schema.go coding styles
2015-05-13 22:46:20 -07:00
Shengzhe Yao
ce518953e8
add more test cases for DiffSchema
...
1. Remove ByReverseDataLength since no one uses it.
2. Add more test cases for DiffSchema
2015-05-13 22:36:15 -07:00
Shengzhe Yao
0245dfb5ae
add schema diffs in schemamanager
...
1. Make DiffSchema compare table views.
2. Add schema diffs in schemamanager. Each schema changes have to change
table structure and schemanager rejects a sql that does not change
any table definition.
2015-05-13 19:00:59 -07:00
Shengzhe Yao
7bd078f8af
return error when schema change fails
2015-05-13 19:00:00 -07:00
Shengzhe
7fa6086a51
Merge pull request #692 from yaoshengzhe/fix_autoschema_rework
...
Autoschema rework
2015-05-13 17:37:52 -07:00
Alain Jobart
119dd1b310
Fixing comment.
2015-05-13 16:43:23 -07:00
Shengzhe Yao
5b9d745e08
fix test/sharded.py to not reply on vtctl.ApplySchemaShard
2015-05-13 14:25:43 -07:00
Shengzhe Yao
a6daf21bb8
add ValidateSchemaKeyspace and ValidateSchemaShard back
2015-05-13 13:49:16 -07:00
Alain Jobart
2dfa25ea4c
Refactoring {Start,Stop}Slave in mysqlctl.
...
With new way of doing things, we keep replication flags
in mocks in sync better, and unit tests test more.
2015-05-13 11:24:28 -07:00
Shengzhe Yao
de3f07fccb
remove simple flag in vtctl.ApplySchema
2015-05-13 11:14:06 -07:00
Shengzhe Yao
6869f2e135
not return returncode from utils.run method
2015-05-13 10:46:53 -07:00
Shengzhe Yao
18099a706b
add vtctl ReloadSchema back
2015-05-13 10:40:26 -07:00
Alain Jobart
9ad065b906
Fixing reparent code to restart replication appropriately.
...
EmergencyReparent used to stop replication on all slaves,
then SetMaster would see replication is off, and not restart it.
Fixed unit and intergration tests to test this case.
MysqlDaemon fake now only has one place to store replication status.
API changes:
- SlaveStatus returns a myproto.ReplicationStatus (not a pointer any more)
- StopReplicationAndGetPosition is changed to StopReplicationAndGetStatus
- SetMaster has an extra forceStartSlave boolean.
2015-05-13 10:20:51 -07:00
Shengzhe Yao
56f3def562
make schemamanager unit test does not rely on go/vt/topo/test/faketopo
...
go/vt/topo/test/faketopo package replies on wrangler package which causes
an import cycle in tests.
2015-05-12 20:20:52 -07:00
Shengzhe Yao
9a5e04f571
rework schema integration test
2015-05-12 19:54:52 -07:00
Shengzhe Yao
85fae2e9be
make vtctl.ApplySchema accept a list sqls separated by semicolon
2015-05-12 19:54:22 -07:00
Shengzhe Yao
ee4b3c97c4
add returncode as one of return values from utils.run method
...
This change allows caller to know whether the vtctl command fails or not.
2015-05-12 19:36:30 -07:00
Shengzhe Yao
8d5f43bb1c
change wrangler.ApplySchemaKeyspace to use schemamanager
2015-05-12 19:24:36 -07:00
Shengzhe Yao
6a2257ed51
remove several schema commands out of vtctl
...
Remove ReloadSchema, ValidateSchemaShard, ValidateSchemaKeyspace,
PreflightSchema, ApplySchemaShard and ApplySchemaKeyspace commands
out of vtctl. Those endpoints are still presented in wrangler package
and will be removed once autoschema is mature.
2015-05-12 18:20:16 -07:00
Shengzhe Yao
100e7db414
add console event handler for schema manager
2015-05-12 13:57:25 -07:00
Alain Jobart
56c694b7df
Merge branch 'master' of github.com:youtube/vitess
2015-05-12 08:50:08 -07:00
Alain Jobart
c13f568bcd
Backport of fix in google tree.
2015-05-12 08:49:43 -07:00
Shengzhe
fa14c7920c
Merge pull request #689 from yaoshengzhe/fix_autoschema_rework
...
remove VtGateExecutor and add TabletExecutor
2015-05-11 17:58:39 -07:00
Shengzhe Yao
5d2cb62933
TabletExecutor.Validate should return err when sql syntax is invalid
...
Add a test case that schema change should fail if executor.Open returns error.
2015-05-11 16:15:14 -07:00
Shengzhe Yao
5716f02e81
remove VtGateExecutor and add TabletExecutor
...
1. Stop applying schema changes through VtGate, using tabletmanager instead.
2. Update Executor api to not accept a list of shards as input. Schema
changes need to apply to all shards.
3. Fix topo in SimpleDataSourcer.
2015-05-11 15:48:44 -07:00
Shengzhe
1f1c8b9df3
Merge pull request #688 from yaoshengzhe/fix_add_dbname_override_in_vtgate_test_helper
...
add dbname_override to java_vtgate_test_helper
2015-05-11 15:42:04 -07:00
Shengzhe Yao
da20fe2a4e
add dbname_override to java_vtgate_test_helper
...
By adding dbname_override flag, it makes caller be able to specify a
different dbname other than the default: vt_ + keyspace
2015-05-11 15:27:30 -07:00