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
71450a86
Commit
71450a86
authored
Aug 31, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#21721 Test suite does not start with NDB, hangs forever; problem around "ndb_mgmd"
- Wait for ndb_mgmd with timeout
parent
f19bdd99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-4
No files found.
mysql-test/mysql-test-run.pl
View file @
71450a86
...
...
@@ -1955,6 +1955,23 @@ sub mysqld_wait_started($){
}
sub
ndb_mgmd_wait_started
($)
{
my
(
$cluster
)
=
@_
;
my
$retries
=
100
;
while
(
ndbcluster_wait_started
(
$cluster
,
"
--no-contact
")
and
$retries
)
{
# Millisceond sleep emulated with select
select
(
undef
,
undef
,
undef
,
(
0.1
));
$retries
--
;
}
return
$retries
==
0
;
}
sub
ndb_mgmd_start
($)
{
my
$cluster
=
shift
;
...
...
@@ -1975,13 +1992,12 @@ sub ndb_mgmd_start ($) {
"",
{
append_log_file
=>
1
});
# FIXME Should not be needed
# Unfortunately the cluster nodes will fail to start
# if ndb_mgmd has not started properly
while
(
ndbcluster_wait_started
(
$cluster
,
"
--no-contact
"
))
if
(
ndb_mgmd_wait_started
(
$cluster
))
{
select
(
undef
,
undef
,
undef
,
0.1
);
mtr_error
("
Failed to wait for start of ndb_mgmd
"
);
}
# Remember pid of ndb_mgmd
...
...
@@ -2046,7 +2062,7 @@ sub ndbcluster_start ($$) {
mtr_error
("
Cluster '
$cluster
->{'name'}' already started
");
}
my
$pid
=
ndb_mgmd_start
(
$cluster
);
ndb_mgmd_start
(
$cluster
);
for
(
my
$idx
=
0
;
$idx
<
$cluster
->
{'
nodes
'};
$idx
++
)
{
...
...
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