mirror of
https://github.com/MariaDB/server.git
synced 2026-04-18 06:15:32 +02:00
Adjust test wait timeout.
This commit is contained in:
parent
81113dae17
commit
ca2f2b7151
3 changed files with 6 additions and 6 deletions
|
|
@ -77,8 +77,8 @@ exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||||
|
|
||||||
# It will take 20 seconds to detect the long semaphore and mysqld to abort.
|
# It will take 20 seconds to detect the long semaphore and mysqld to abort.
|
||||||
# This test will be treated as pass as long as mysqld crash/restart is dectected
|
# This test will be treated as pass as long as mysqld crash/restart is dectected
|
||||||
# in 60 seconds.
|
# in 80 seconds.
|
||||||
let $counter= 60;
|
let $counter= 80;
|
||||||
let $mysql_errno= 0;
|
let $mysql_errno= 0;
|
||||||
while (!$mysql_errno)
|
while (!$mysql_errno)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ drop table if exists t1;
|
||||||
# Switch to connection con1
|
# Switch to connection con1
|
||||||
create table t1 (id integer, x integer) engine = InnoDB;
|
create table t1 (id integer, x integer) engine = InnoDB;
|
||||||
insert into t1 values(0, 0);
|
insert into t1 values(0, 0);
|
||||||
set @@debug_dbug="d,fatal-semaphore-timeout";
|
set DEBUG_DBUG='+d,fatal-semaphore-timeout';
|
||||||
set autocommit=0;
|
set autocommit=0;
|
||||||
# Sending query on con1,
|
# Sending query on con1,
|
||||||
# the session will hold lock table mutex and sleep
|
# the session will hold lock table mutex and sleep
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ eval create table t1 (id integer, x integer) engine = InnoDB;
|
||||||
insert into t1 values(0, 0);
|
insert into t1 values(0, 0);
|
||||||
|
|
||||||
# Enable the debug injection.
|
# Enable the debug injection.
|
||||||
set @@debug_dbug="d,fatal-semaphore-timeout";
|
set DEBUG_DBUG='+d,fatal-semaphore-timeout';
|
||||||
set autocommit=0;
|
set autocommit=0;
|
||||||
|
|
||||||
# The following query will hang for an hour since the debug injection
|
# The following query will hang for an hour since the debug injection
|
||||||
|
|
@ -82,8 +82,8 @@ exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||||
|
|
||||||
# It will take 20 seconds to detect the long semaphore and mysqld to abort.
|
# It will take 20 seconds to detect the long semaphore and mysqld to abort.
|
||||||
# This test will be treated as pass as long as mysqld crash/restart is dectected
|
# This test will be treated as pass as long as mysqld crash/restart is dectected
|
||||||
# in 60 seconds.
|
# in 80 seconds.
|
||||||
let $counter= 60;
|
let $counter= 80;
|
||||||
let $mysql_errno= 0;
|
let $mysql_errno= 0;
|
||||||
while (!$mysql_errno)
|
while (!$mysql_errno)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue