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

5711 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart b047c8c87f Make mysqlctl.Backup work on MysqlDaemon.
(unit tests to follow).
2015-05-19 14:45:12 -07:00
Alain Jobart d5c0a692ba Making restore code only use MysqlDaemon.
(for easier soon-to-be unit testing)
2015-05-19 14:31:54 -07:00
Alain Jobart fec083cfce Add vtctl ListBackups and RemoveBackup commands, and tests. 2015-05-19 13:50:41 -07:00
Alain Jobart 8afc2cbd1b Merge branch 'master' into resharding 2015-05-19 11:55:29 -07:00
Alain Jobart b53f7e508d Adding fast fail when one routine reports an error. 2015-05-19 11:50:14 -07:00
Alain Jobart 6e9d87f6e7 Renaming checkInterrupted to checkDone to be more correct. 2015-05-19 11:42:34 -07:00
Alain Jobart 715c3fcddc Adding restore code to vttablet start. 2015-05-19 11:35:52 -07:00
Anthony Yeh e8bd9ebfbb Add Percona Live 2015 slides. 2015-05-19 10:43:51 -07:00
Alain Jobart c7a6896b30 Merge branch 'master' into resharding 2015-05-19 09:10:22 -07:00
Alain Jobart 7baba1c2f9 Refactoring worker code some more:
- worker error is remembered and displayed by the framework
- adding a StatusWorker that has common code for all workers
  which maintain a state with a mutex.
2015-05-19 08:32:32 -07:00
Alain Jobart bac1177fb6 Merge branch 'master' into log 2015-05-19 07:22:29 -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
Alain Jobart ded4a347c3 Refactoring Worker to have an explicit context.Context. 2015-05-18 16:22:26 -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
Alain Jobart f71c09363e Refactoring backup interface. 2015-05-18 12:20:32 -07:00
Alain Jobart 0dc6e4bdd7 Merge branch 'master' into resharding 2015-05-18 12:01:52 -07:00
Alain Jobart 60fc388dbf Implementation of the backup core functionnality.
New integration test only tests the backup appears to work,
nothing serious yet. Need to refactor a couple more things to
be much easier to test it all with unit tests.
2015-05-18 12:00:16 -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 d2acc23b5a Merge branch 'master' into resharding 2015-05-14 11:58:57 -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 0829bd0c85 Use ioutil.ReadDir, remove obsolete code. 2015-05-14 11:34:23 -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
Alain Jobart cf9f348d45 Using agent.MysqlDaemon when we can. 2015-05-14 11:18:14 -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 bf3823d40f Adding unit tests for FileBackupStorage. 2015-05-14 10:41:35 -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 7d69f86b1c Interface definition for BackupStorage, file implementation. 2015-05-14 08:39:08 -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