Merge lp:~laurynas-biveinis/percona-xtrabackup/bug1098498-1132763-2.0 into lp:percona-xtrabackup/2.0
Status: | Merged |
---|---|
Approved by: | Alexey Kopytov |
Approved revision: | no longer in the source branch. |
Merged at revision: | 513 |
Proposed branch: | lp:~laurynas-biveinis/percona-xtrabackup/bug1098498-1132763-2.0 |
Merge into: | lp:percona-xtrabackup/2.0 |
Diff against target: |
450 lines (+58/-201) 14 files modified
test/inc/common.sh (+23/-19) test/inc/ib_part.sh (+16/-2) test/t/bug766033.sh (+1/-1) test/t/bug766607.sh (+9/-12) test/t/ib_part_databases.sh (+2/-0) test/t/ib_part_include.sh (+1/-4) test/t/ib_part_include_stream.sh (+1/-1) test/t/ib_part_tf_innodb.sh (+1/-0) test/t/ib_part_tf_innodb_stream.sh (+1/-0) test/t/ib_part_tf_myisam.sh (+1/-0) test/t/xb_export.sh (+1/-1) test/t/xb_incremental.sh (+0/-106) test/t/xb_partial.sh (+0/-53) test/testrun.sh (+1/-2) |
To merge this branch: | bzr merge lp:~laurynas-biveinis/percona-xtrabackup/bug1098498-1132763-2.0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Approve | ||
George Ormond Lorch III | g2 | Pending | |
Review via email: mp+152262@code.launchpad.net |
This proposal supersedes a proposal from 2013-03-04.
Description of the change
Take 3:
Addressed the review comments.
http://
BT 28340.
Take 2:
http://
Alexey's suggestion of killing always is implemented. But xb_export.sh still needs a shutdown due to what seems to be a table import crash-non-safety. Also, not all the testcases have the server datadirs removed before the restore. Bug reports pending for both of these issues.
Take 1:
No BT or ST but is one of the prerequisites for BT 28340.
http://
Fix bug 1098498 (Sporadic xb_incremental_
Jenkins) and bug 1132763 (No need to shutdown servers cleanly before
wiping their datadirs in the testsuite).
Most tests shutdown the server cleanly before copying back the
restored datadir. These shutdowns may:
1) timeout sporadically (bug 1098498);
2) are not required in the first place (bug 1132763), because the
server data is about to be wiped, thus kill -9 would work just as
fine.
Fixed by
1) introducing new function kill_server() in test/inc/common.sh that
kill -9s, removes the PID file, releases the mysqld port and testsuite
server variables.
2) removing the shutdown timeout and kill-if-
stop_server_
required to stop cleanly, kill is a wrong substitute, and the shutdown
timeouts can be taken care of by the overall testcase timeouts.
3) reviewing the testcases and replacing stop_server calls with
kill_server where safe.
4) fixing a typo in testrun.sh and using kill_server() in
get_version_info() too.
5) removing an unused function stop_all_servers() in common.sh.
Nice work. I had started on something similar but like your solution better.