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

39 Коммитов

Автор SHA1 Сообщение Дата
Morgan Tocker 4ae9c03e74 Implement a small subset of config file refactor
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-10-27 17:59:45 -06:00
Sugu Sougoumarane 8d64d53801
Merge pull request #5337 from planetscale/morgo-cleanup
Cleanup some left over code from previous changes
2019-10-23 21:45:23 -07:00
hwdef ff0d02b624 test: update license
Signed-off-by: hwdef <hwdef97@gmail.com>
2019-10-22 13:12:59 +08:00
Morgan Tocker 28ecc0b561 Cleanup some left over code from previous changes
Stabalizes the testsuite on "MySQL56" == MySQL 5.7 in modern usage.

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-10-21 16:17:53 -06:00
deepthi a549a40d04 Install xtrabackup in percona docker image
Fix how we set passwords in integ tests to work for different versions
of mysql

Signed-off-by: deepthi <deepthi@planetscale.com>
2019-05-31 21:18:39 -07:00
deepthi a3b7b04f08 MySQL 8.0 should be started with mysqlx=0
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-04-08 15:19:25 -07:00
DK 5084a4c3c0 Updating configurations and dependency versions
This commit updates all fixed dependencies to their latest version and
mades changes to the default configs to.

1. Increase the defaults for a few key values
2. Move some settings to new files to support MariaDB 10.3
3. Add a sample production configuration to allow easy deployment

Signed-off-by: DK <dk@planetscale.com>
2018-12-03 15:04:01 -08:00
Dan Kozlowski 0d54495736 Adding in support for MariaDB 10.3
Signed-off-by: Dan Kozlowski <koz@planetscale.com>
2018-09-10 09:50:04 -07:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Alain Jobart 110ac06ecd Fixing MySQL flavr env variable. 2017-01-18 08:58:28 -08:00
Michael Berlin 0f4d4db253 test: Create registry mechanism for MySQL failover implementations.
This allows us to register an internal flavor in our internal code base.
2017-01-17 12:56:16 -08:00
Michael Berlin 598c725848 test: Add "demote_master_commands" to MysqlFlavor class.
Use it in the reparent.py test case for TabletExternallyReparented.

Other changes:
- Fixed pylint issues in mysql_flavor.py.
2017-01-04 18:58:39 +01:00
Alain Jobart 7de2467675 Adding EventToken, using it in binlog services.
- Adding an EventToken structure in query.proto.
- Using it in Binlog Streamer and filtered replication.
- Using it in Update Stream in POS events as well.

Note the main change there is that an EventToken has a replication
position (GTIDSet), not a transaction ID (GTID). Both server and clients
were computing the position individually anyway by accumulating
transaction IDs, might as well just send the position. And it will make
more sense for later use of EventToken.

Also, we don't set the 'Shard' field of the EventToken just yet. I'm
still not sure vttablet should do it, as opposed to vtgate.
2016-08-30 09:27:54 -07:00
Alain Jobart 1b6e299170 Fixing health check.
The aggregator was not preserving the special error case, now it does,
and has unit tests to prove it.

The integration tests were not fully resetting replication (using 'reset
slave' and not 'reset slave all'). The difference is 'reset slave'
clears the values from 'show slave status', whereas 'reset slave all'
makes the status show nothing (as is the startup case).
2016-05-10 07:47:58 -07:00
Anthony Yeh 50a2870285 Fixes for new semi-sync handling. 2016-02-27 03:22:54 -08:00
Anthony Yeh 44d10d40c4 Use semi-sync in integration tests.
Some tests had to be modified to not assume that masters without
replicas will still accept writes. Also, some tests would create tablets
as SPARE without enabling healthcheck. As a result, the tablet has no
way of knowing whether it will eventually be a replica or rdonly, and
hence can't decide whether to enable semi-sync before starting
replication.

Healthcheck is basically required now, and definitely will be once we
fully switch to vtgate discovery mode. So I've removed cases where
tablets were being started SPARE without enabling healthcheck.
2016-02-24 18:08:12 -08:00
Anthony Yeh a8cad68191 Fix some pylint issues to try to trigger Travis. 2016-02-17 19:58:51 -08:00
Anthony Yeh b89d988e30 Make MySQL users and privileges configurable.
This gets rid of the opaque mysql-db-dir.tbz archive, replacing it with
a .sql file. The .sql file approach makes it clear what state the DB is
initialized with, and also makes it easy to customize.
2015-11-10 11:41:24 -08:00
Dean Yasuda 91318ff64d Fix a few more python lint errors. 2015-08-30 22:03:22 -07:00
Dean Yasuda 6f1e821634 Make some lint fixes to test/*.py. 2015-08-25 18:54:04 -07:00
Alain Jobart ad4dcbd726 Replacing all python %u by %d. Apparently it's what we need to do now. 2015-08-07 12:42:36 -07:00
Alain Jobart 7d0dc20d7c Changing the proto3 binlog protocol to pass a string as
replication position, not the complicated GTID structure.
Also changing the python client API.
2015-07-23 08:39:32 -07:00
Anthony Yeh 494ae5c0a4 Implement MySQL 5.6 flavor in test/mysql_flavor.py. 2015-05-07 22:30:06 -07:00
Anthony Yeh c935f5ca06 Add extra_my_cnf for MySQL 5.6. 2015-05-05 15:30:56 -07:00
Anthony Yeh 3b3d7c23b8 Add bootstrap data dir archive for MySQL 5.6.
Generated with data/bootstrap/upgrade.sh from inside the
vitess/bootstrap:mysql56 Docker image.
2015-04-22 15:31:51 -07:00
Anthony Yeh cba3b12058 Change capitalization of MySQL56 flavor ID.
It should match the convention established with "MariaDB".

I looked into making them case-insensitive, but it would be more tricky
than it's worth because flavor IDs are used as part of the protocol
between servers. So an old server that is case-sensitive would choke on
a message from a new one.
2015-04-22 13:02:10 -07:00
Alain Jobart dc70ca6174 Removing support for Google MySQL 5.1. 2015-02-19 13:03:12 -08:00
Alain Jobart 7d403bbc30 Fixing integration tests to not expect QS running when it shouldn't be.
Also fixing the test so the reparent commands actually work.
It's needed now that we expect the tablet to become healthy.
2015-02-12 09:53:46 -08:00
Anthony Yeh 4fa03c6592 Add support for binlog_checksum in MariaDB.
When binlog_checksum is enabled, it changes the binlog format in a
backwards-incompatible way. Even though we don't currently verify
checksums, we need to know how to strip them and how to signal that
we understand the new format. Otherwise a server with checksums
enabled will refuse to send us binlogs.
2014-10-15 15:05:17 -07:00
Anthony Yeh f5b4ada790 Use #!/usr/bin/env python for integration tests. 2014-10-01 16:38:59 -07:00
Anthony Yeh 6782ac5158 Restrict auto-detect to a specific test case. 2014-10-01 14:17:16 -07:00
Anthony Yeh 315a7c9e0e Auto-detect MySQL flavor. 2014-09-18 00:02:50 -07:00
Anthony Yeh 795c7fddef Add --mysql-flavor flag to integration tests. 2014-09-09 00:28:49 -07:00
Anthony Yeh b6ec355811 Fix BinlogStreamer for MariaDB. 2014-09-05 12:58:17 -07:00
Anthony Yeh 5b8415ec87 Use GTIDSet to specify replication position. 2014-09-03 17:45:10 -07:00
Anthony Yeh a81303e283 Include innodb dir in bootstrap archive.
Leaving it out breaks MariaDB replication status tables.
2014-08-28 14:35:51 -07:00
Anthony Yeh dcc2205a32 Make new DB data dir and config file for MariaDB. 2014-08-20 21:11:49 -07:00
Anthony Yeh 2205f4ef40 Fix python indentation. 2014-07-28 13:48:16 -07:00
Anthony Yeh f358837620 Centralize MySQL Flavor handling in tests. 2014-07-28 13:48:16 -07:00