Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d02838de
Commit
d02838de
authored
Oct 24, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
80f4c105
3df77e48
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
0 deletions
+71
-0
mysql-test/include/analyze_failure_sync_with_master.test
mysql-test/include/analyze_failure_sync_with_master.test
+15
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+56
-0
No files found.
mysql-test/include/analyze_failure_sync_with_master.test
0 → 100644
View file @
d02838de
# Connect to both master and slave
connect
(
master
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,);
connect
(
slave
,
127.0
.
0.1
,
root
,,
test
,
$SLAVE_MYPORT
,);
vertical_results
;
echo
==
MASTER
===========================================================
;
connection
master
;
show
master
status
;
show
slave
status
;
echo
==
SLAVE
===========================================================
;
connection
slave
;
show
master
status
;
show
slave
status
;
mysql-test/mysql-test-run.pl
View file @
d02838de
...
@@ -2923,6 +2923,58 @@ sub find_testcase_skipped_reason($)
...
@@ -2923,6 +2923,58 @@ sub find_testcase_skipped_reason($)
}
}
sub
analyze_testcase_failure_sync_with_master
($)
{
my
(
$tinfo
)
=
@_
;
mtr_verbose
("
analyze_testcase_failure_sync_with_master
");
print
"
analyze_testcase_failure_sync_with_master
\n
";
my
$args
;
mtr_init_args
(
\
$args
);
mtr_add_arg
(
$args
,
"
--no-defaults
");
mtr_add_arg
(
$args
,
"
--silent
");
mtr_add_arg
(
$args
,
"
-v
");
mtr_add_arg
(
$args
,
"
--skip-safemalloc
");
mtr_add_arg
(
$args
,
"
--tmpdir=%s
",
$opt_tmpdir
);
mtr_add_arg
(
$args
,
"
--socket=%s
",
$master
->
[
0
]
->
{'
path_sock
'});
mtr_add_arg
(
$args
,
"
--port=%d
",
$master
->
[
0
]
->
{'
port
'});
mtr_add_arg
(
$args
,
"
--database=test
");
mtr_add_arg
(
$args
,
"
--user=%s
",
$opt_user
);
mtr_add_arg
(
$args
,
"
--password=
");
# Run the test file and append output to log file
mtr_run_test
(
$exe_mysqltest
,
$args
,
"
include/analyze_failure_sync_with_master.test
",
"
$path_timefile
",
"
$path_timefile
","",
{
append_log_file
=>
1
});
}
sub
analyze_testcase_failure
($)
{
my
(
$tinfo
)
=
@_
;
# Open mysqltest.log
my
$F
=
IO::
File
->
new
(
$path_timefile
)
or
mtr_error
("
can't open file
\"
$path_timefile
\"
: $!
");
while
(
my
$line
=
<
$F
>
)
{
# Look for "mysqltest: At line nnn: <error>
if
(
$line
=~
/mysqltest: At line [0-9]*: (.*)/
)
{
my
$error
=
$1
;
# Look for "could not sync with master"
if
(
$error
=~
/could not sync with master/
)
{
analyze_testcase_failure_sync_with_master
(
$tinfo
);
}
}
}
}
##############################################################################
##############################################################################
#
#
# Run a single test case
# Run a single test case
...
@@ -3011,6 +3063,10 @@ sub run_testcase ($) {
...
@@ -3011,6 +3063,10 @@ sub run_testcase ($) {
}
}
elsif
(
$res
==
1
)
elsif
(
$res
==
1
)
{
{
if
(
$opt_force
)
{
analyze_testcase_failure
(
$tinfo
);
}
# Test case failure reported by mysqltest
# Test case failure reported by mysqltest
report_failure_and_restart
(
$tinfo
);
report_failure_and_restart
(
$tinfo
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment