Carlos Salguero
045c656839
Fixes for MasterSlave.pm
2018-01-22 16:27:36 -03:00
Carlos Salguero
af65e82ab7
MasterSlave check for errors on get_slave_status calls
2017-11-09 11:40:58 -03:00
Carlos Salguero
8ca82d085e
PT-139 Detect only 1 slave using rep channels
...
If there is only one slave but it is using replication channels but
--channel was not specified as a parameter, get_slave_status will
return null.
2017-05-22 15:48:32 -03:00
Carlos Salguero
820448fca3
PT-139 wait_for_master returns error if no channel was specified in a multi master env
2017-05-12 15:44:57 -03:00
Carlos Salguero
5744fdf583
PT-139 Added replication channels suport to pt-table-sync
2017-05-12 11:55:52 -03:00
frank-cizmich
dcfed36ebb
some error messages changed so changed tests
2016-02-11 19:57:50 -03:00
Daniel Nichter
b0cacd15f4
Improve MasterSlave::check_recursion_method() tests.
2013-10-02 11:15:58 -07:00
Daniel Nichter
92a36715c4
Remove test-env reset. Fix pt-fifo-split plan.
2012-08-14 17:08:06 -06:00
Daniel Nichter
217a45df6f
Conditionalize top 5 slowest test files, saving 25%/5m * 15 configs = 1hr.
2012-08-12 10:16:52 -06:00
Daniel Nichter
e6d31a666a
Rewrite how MasterSlave handles --recursion-methods.
2012-08-02 10:57:36 -06:00
Brian Fraser
e29aa514e3
t/lib/MasterSlave.t: A call to ->recurse_to_slaves() still used a string instead of an arrayref
2012-08-02 12:38:09 -03:00
Brian Fraser fraserb@gmail.com
a25b9eab40
MasterSlave: Rework how the recursion methods are checked & resolved
...
In part by removing the OptionParser usage out from get_slaves
and recurse_to_slaves and making them expect arrayrefs, thus
forcing our callers to deal with that, and in part by
splitting out the method-checking to MasterSlave::check_recursion_method
and the resolving (originally in find_slave_hosts) into
_resolve_recursion_methods.
2012-08-01 17:39:12 -03:00
Brian Fraser
a1f1168ab4
t/lib/MasterSlave.t: Check that recurse_to_slaves gets all three slaves, or give a diagnostic
2012-07-23 12:28:25 -03:00
Brian Fraser
8179b1f1a1
Updated the tests to use the new VersionParser
2012-07-11 15:21:47 -03:00
Daniel Nichter
2d7cc5e8a4
Check for leftover databases. Fix MasterSlave.t so it doesn't leave leftover dbs and it resets 12347.
2012-06-05 18:55:32 -07:00
baron
4906b52d3b
Make sure t/pt-slave-delay/auto_restart.t doesn't break replication on 12347 after restarting 12346; silence some noise from t/lib/MasterSlave.t when it restarts instances (mysqld will print warnings about thread_stack on mysql5.0)
2012-06-05 10:58:59 -04:00
Baron Schwartz
eb1cc3da5e
fix nondeterministic wait_for_master test
2012-06-03 22:18:44 -04:00
Baron Schwartz
6cc17a73c2
A few miscellaneous changes, including a fix for metadata locking and wipe_clean in Sandbox.pm
2012-06-03 17:20:12 -04:00
Daniel Nichter
bdbb66d22b
Re-add calls to Sandbox::ok().
2012-06-03 13:54:32 -04:00
Daniel Nichter
e969d8d9f7
Implement and test --recursion-method=none in MasterSlave.pm and pt-table-checksum.
2012-05-17 08:11:30 -06:00
Daniel Nichter
38c421351d
Fix lib tests.
2012-02-02 09:31:49 -07:00
Daniel Nichter
1a619cc47c
Test and fix typo in MasterSlave.pm and update that module in all tools.
2012-01-31 09:53:06 -07:00
Daniel Nichter
c45676abf1
Fix some lib/ tests.
2011-11-02 10:20:07 -06:00
Daniel Nichter
e2e40488c5
Add Cxn.pm. Make MasterSlave, NibbleIterator, and ReplicaLagWaiter use Cxn. Rewrite, simplify Retry.
2011-10-06 12:47:35 -06:00
Daniel Nichter
5f2cdad299
Implement MasterSlave::get_slaves() to get cxns from a DSN table. Add comments explaining use_repl_db().
2011-09-13 09:27:59 -06:00
Daniel Nichter
e93381d6b6
Make sandbox scripts simpler and more reliable. Remove "remove" option from stop-sandbox and update tests that used it.
2011-08-23 09:11:00 -06:00
Daniel Nichter
669957ae79
Test bug 819421. Cannot repro.
2011-08-22 10:45:09 -06:00
Daniel Nichter
1480606bb2
Fix MasterSlave::get_slave_lag(). Revert pt-table-checksum to use old SchemaIterator. Remove pt-table-usage tests. Fix use of var from another package in pt-query-digest. Remove reference to $VERSION from pt-show-grants. Change mk- to pt- in pt-variable-advisor sample.
2011-07-13 16:36:14 -06:00
Daniel Nichter
b805f7c92d
Remove $Revision$ and finish re-branding modules. Rename MaatkitTest.pm to PerconaTest.pm. Put copyrights on one line.
2011-07-12 15:47:07 -06:00
Daniel Nichter
6c501128e6
Add lib/, t/lib/, and sandbox/. All modules are updated and passing on MySQL 5.1.
2011-06-24 11:22:06 -06:00