Alain Jobart
96f6b35711
Now using strings instead of ReplicationPosition structures in tabletmanager.
...
That limits the number of encoding / decoding, and is all around easier.
We now only use the real structures when talking to mysqlctl module.
2015-11-10 09:03:29 -08:00
Alain Jobart
a49338fbcb
Now using proto3's Schema structures.
2015-11-09 17:46:17 -08:00
Alain Jobart
da12bb239b
Permissions now use the proto3 structure.
2015-11-09 16:47:18 -08:00
Sugu Sougoumarane
3d85ca461a
Merge branch 'master' into suguwork
2015-11-09 14:17:24 -08:00
Sugu Sougoumarane
03dd9b6f32
[]mproto.Field -> []*query.Field
...
This part 1 of the QueryResult revamp. With this change,
vitess does not see any MySQL types. The BSON layer still
sends mysql types for backward compatibility, which will
be deleted once deprecated.
2015-11-09 01:52:07 -08:00
Alain Jobart
86120a7717
Switching all uses of BlpPosition to the proto3 version.
...
Note this changes TabletManager gorpc protocol, but not the proto3 one.
2015-11-06 17:06:45 -08:00
Alain Jobart
0754be310f
Replacing Charset and BinlogTransaction with thier proto3 version.
2015-11-05 11:16:00 -08:00
Anthony Yeh
8cc50a346b
backup: Implement plugin for Google Cloud Storage.
2015-10-21 02:49:17 -07:00
Anthony Yeh
1ce9b4007d
backup: Gracefully handle partial restore success.
...
When -restore_from_backup flag is used:
* As before, start up empty if no backups are found.
* If DB already exists, assume vttablet was restarted.
* If restore succeeds, but there's no current master, set the position
anyway and let a subsequent reparent fix it.
2015-10-21 02:42:28 -07:00
Anthony Yeh
fb78c13b51
mysqlctl: Allow setting slave pos without starting slave.
...
Replace StartReplicationCommands with SetSlavePositionCommands.
This makes it possible to set the slave pos without knowing who the
master is yet.
2015-10-21 01:29:17 -07:00
Anthony Yeh
cdd7ae181a
backupstorage: Rename bucket to directory.
...
The use of the term bucket in the generic backupstorage interface didn't
match the way it's used in GCS or S3. To avoid confusion, we'll call
this the directory, since that's what it actually is in the file-based
case, and in the blobstore case we are emulating the concept of a
directory with object name prefixes.
2015-10-20 16:16:08 -07:00
Sugu Sougoumarane
e8a79f4c92
fakesqldb: fix other usage
...
fakesqldb is used by more than tabletserver. Fix all other
places to use the new scheme.
2015-09-22 22:03:03 -07:00
Alain Jobart
1f94d704cb
Changing Sql in binlog to always be a string too.
2015-09-11 07:53:47 -07:00
Ammar Aijazi
f8fb95ef83
Fix some golint errors; Sql => SQL
2015-08-30 17:04:40 -07:00
Michael Berlin
828ee81da2
go: Unbreak Go tests.
...
Tests were failing with error message: "grpc: no transport security set"
This is due to a recent change in grpc-go: https://github.com/grpc/grpc-go/issues/307
2015-08-27 21:01:39 -07:00
Michael Berlin
8a771f7488
mysqlctl: Remove unused methods.
2015-08-21 18:42:02 -07:00
Alain Jobart
9df8070ac2
Removing jscfg package. It wasn't doing much, except
...
using panics to return errors.
2015-08-17 08:13:58 -07:00
Alain Jobart
2fc3c2713d
Now mysql port is a int32, to be consistent with other places.
...
Also fixing all linter issues.
2015-08-11 18:21:54 -07:00
Alain Jobart
0ac6e67c08
Changing port to int32 in JoinHostPort.
...
int32 is used in all of our proto3 files for port.
2015-07-28 12:08:46 -07:00
Alain Jobart
63daac2a5d
Now using strings in remote RPC communication for replication position.
...
Much simpler than the big proto file.
2015-07-24 10:29:28 -07:00
Alain Jobart
df32088737
Switching mysqlctl command protocol from bsonrpc to gRPC.
2015-07-06 15:17:41 -07:00
Anthony Yeh
ae27174ed1
Use IF NOT EXISTS for database schema.
...
This allows CopySchemaShard to work on tablets that have been
bootstrapped with an empty database.
2015-06-27 16:15:11 -07:00
Alain Jobart
0a4d922670
Adding a few proto3 methods in preparation for tabletmanager.
2015-06-25 14:54:46 -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
7b8aed7679
Adding gRPC support for binlog.
2015-06-24 11:38:19 -07:00
Anthony Yeh
80f7568bd4
Add --force to mysql_upgrade.
...
Without it, mysql_upgrade dies with exit code 1 if the database doesn't
need to be upgraded.
2015-06-11 23:07:36 -07:00
Anthony Yeh
eb4c6e9b52
Simplify mysql_upgrade output logging.
...
The docs say it's technically incorrect to use Run() together with
StderrPipe().
2015-06-11 23:01:49 -07:00
Anthony Yeh
5e49324680
Fix mysql_upgrade during Restore.
...
1) mysqld needs to be running to use mysql_upgrade.
2) mysql_upgrade needs to be told how to connect to mysqld.
2015-06-10 13:50:51 -07:00
Alain Jobart
ea93cb3343
Using context for backup / restore too.
2015-06-03 14:29:00 -07:00
Alain Jobart
374bb645a6
Now using context in mysqlctld communication, and in
...
mysql Start/Shutdown.
2015-06-03 14:21:39 -07:00
Alain Jobart
a72346bd85
Now running mysql_upgrade after a restore.
2015-06-03 09:12:23 -07:00
Alain Jobart
8058dd0359
Using right DBA abstraction in copy_schema_shard_test.go.
...
Also using VtctlPipe.
2015-05-28 16:16:28 -07:00
Anthony Yeh
9f02107679
Check error on Close() and Flush() in Backup.
...
We are probably doing a bad job of checking these errors in a lot of
places, but it's particularly important to get it right for backups.
We don't worry about Close() on the Reader side.
When using an AllErrorRecorder, we don't have to worry about hiding the
Write error with a Close error. But we do need to make sure not to call
Close as part of saving the arguments of a defer statement.
2015-05-26 16:23:13 -07:00
Alain Jobart
f49b4877eb
Adding {Enable,Disable}BinlogPlayer to MysqlDaemon.
2015-05-22 13:04:40 -07:00
Alain Jobart
5b039af896
Revert "Removing now empty {Enable,Disable}BinlogServer methods."
...
This reverts commit 80678fa46b
.
2015-05-22 12:55:06 -07:00
Alain Jobart
bf3777c6b0
Now converting binlog player to MysqlDaemon.
2015-05-22 09:52:41 -07:00
Alain Jobart
2fbb54133d
Converting a couple more methods to MysqlDaemon.
2015-05-22 09:33:23 -07:00
Alain Jobart
cc148e81d9
Converting FindSlaves to MysqlDaemon.
2015-05-22 09:20:50 -07:00
Alain Jobart
b0c2337210
Converting one more call to MysqlDaemon.
2015-05-21 19:52:43 -07:00
Alain Jobart
a5b3f2aa53
Removing unused mysqld parameter for method.
2015-05-21 19:12:46 -07:00
Alain Jobart
80678fa46b
Removing now empty {Enable,Disable}BinlogServer methods.
...
(they were useful before we switched to using a MySQL connection).
2015-05-21 19:01:53 -07:00
Alain Jobart
794e034a08
Moving filebackupstorage into its own package.
2015-05-21 11:15:29 -07:00
Alain Jobart
d89f042c5a
Fixing backup timestamp format to be UTC, human readable, and correctly comparable.
...
Example backup name: test_nj-0000062345.2015-05-21.163734
2015-05-21 09:39:28 -07:00
Alain Jobart
a5fd0206c4
Making GetBackupStorage return en error, instead of Fatalf-ing out.
2015-05-21 09:28:45 -07:00
Alain Jobart
d0cc07ae69
Simplifying file backup storage (implementation and plugins).
2015-05-21 08:54:52 -07:00
Alain Jobart
cf568fdc28
Adding unit test for findFiles for backup.
...
Making other unit test simpler. Removing special case
for symlinks, unused.
2015-05-20 16:18:28 -07:00
Alain Jobart
9776e112ce
Removing couple unused methods.
2015-05-20 13:54:55 -07:00
Alain Jobart
a4bb4d36ad
Removing now unused mysqld.GetMasterAddr and related uses.
2015-05-20 13:43:47 -07:00
Alain Jobart
979f0fdc4e
Adding a unit test for backup/restore. Had to export a couple
...
flags so it's unit-testable.
2015-05-20 13:13:57 -07:00
Alain Jobart
9b9f96abd8
Deleting old Snapshot/Restore/Clone code.
2015-05-20 09:26:52 -07:00