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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ae1eaff2
Commit
ae1eaff2
authored
Feb 21, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-build
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.0-build
parents
54fc802a
fa7707ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
mysql-test/include/ndb_wait_connected.inc
mysql-test/include/ndb_wait_connected.inc
+26
-0
mysql-test/t/ndb_autodiscover.test
mysql-test/t/ndb_autodiscover.test
+1
-0
mysql-test/t/ndb_autodiscover3.test
mysql-test/t/ndb_autodiscover3.test
+9
-0
No files found.
mysql-test/include/ndb_wait_connected.inc
0 → 100644
View file @
ae1eaff2
# Check that mysqld has reconnected to ndbd after
# restart of ndbd
#
--
disable_query_log
--
disable_result_log
let
$mysql_errno
=
1
;
let
$counter
=
600
;
while
(
$mysql_errno
)
{
--
error
0
,
157
CREATE
TABLE
ndb_wait_connected
(
a
int
primary
key
);
if
(
$mysql_errno
)
{
if
(
!
$counter
)
{
die
Failed
waiting
for
mysqld
to
reconnect
to
ndbd
;
}
dec
$counter
;
--
sleep
0.1
}
}
DROP
TABLE
ndb_wait_connected
;
--
enable_query_log
--
enable_result_log
mysql-test/t/ndb_autodiscover.test
View file @
ae1eaff2
...
...
@@ -491,6 +491,7 @@ select * from t1;
select
*
from
t1
;
--
exec
$NDB_MGM
--
no
-
defaults
-
e
"all start"
>
/
dev
/
null
--
exec
$NDB_TOOLS_DIR
/
ndb_waiter
--
no
-
defaults
>
/
dev
/
null
--
source
include
/
ndb_wait_connected
.
inc
use
test
;
drop
database
test_only_ndb_tables
;
...
...
mysql-test/t/ndb_autodiscover3.test
View file @
ae1eaff2
...
...
@@ -25,6 +25,13 @@ insert into t1 values (1);
--
exec
$NDB_MGM
--
no
-
defaults
-
e
"all restart"
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_waiter
--
no
-
defaults
-
c
$connect_str
>>
$NDB_TOOLS_OUTPUT
# Create separate connection and use that for detecting
# when mysqld has reconnected to ndbd
connect
(
ndb_wait_con
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,);
--
source
include
/
ndb_wait_connected
.
inc
disconnect
ndb_wait_con
;
connection
server1
;
--
error
1297
insert
into
t1
values
(
2
);
--
error
1296
...
...
@@ -44,6 +51,7 @@ select * from t2 order by a limit 3;
--
exec
$NDB_TOOLS_DIR
/
ndb_waiter
--
no
-
defaults
-
c
$connect_str
>>
$NDB_TOOLS_OUTPUT
--
connection
server2
--
source
include
/
ndb_wait_connected
.
inc
create
table
t2
(
a
int
key
)
engine
=
ndbcluster
;
insert
into
t2
values
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
select
*
from
t2
order
by
a
limit
3
;
...
...
@@ -58,6 +66,7 @@ select * from t2 order by a limit 3;
--
exec
$NDB_TOOLS_DIR
/
ndb_waiter
--
no
-
defaults
-
c
$connect_str
>>
$NDB_TOOLS_OUTPUT
--
connection
server1
--
source
include
/
ndb_wait_connected
.
inc
show
tables
;
create
table
t2
(
a
int
key
)
engine
=
ndbcluster
;
insert
into
t2
values
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
...
...
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