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
da214608
Commit
da214608
authored
Jul 18, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add verbose printouts for im_start and im_stop
parent
6971ddee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+16
-17
No files found.
mysql-test/mysql-test-run.pl
View file @
da214608
...
@@ -3417,8 +3417,9 @@ sub im_start($$) {
...
@@ -3417,8 +3417,9 @@ sub im_start($$) {
return
;
return
;
}
}
$instance_manager
->
{'
pid
'}
=
my
$pid
=
mtr_get_pid_from_file
(
$instance_manager
->
{'
path_pid
'});
mtr_get_pid_from_file
(
$instance_manager
->
{'
path_pid
'});
$instance_manager
->
{'
pid
'}
=
$pid
;
mtr_verbose
("
im_start: pid:
$pid
");
}
}
...
@@ -3460,25 +3461,23 @@ sub im_stop($) {
...
@@ -3460,25 +3461,23 @@ sub im_stop($) {
# Try graceful shutdown.
# Try graceful shutdown.
mtr_debug
("
IM-main pid:
$instance_manager
->{'pid'}
");
mtr_verbose
("
Stopping IM-main, pid:
$instance_manager
->{'pid'}
");
mtr_debug
("
Stopping IM-main...
");
mtr_kill_process
(
$instance_manager
->
{'
pid
'},
'
TERM
',
10
);
mtr_kill_process
(
$instance_manager
->
{'
pid
'},
'
TERM
',
10
);
# If necessary, wait for angel process to die.
# If necessary, wait for angel process to die.
if
(
defined
$instance_manager
->
{'
angel_pid
'})
my
$pid
=
$instance_manager
->
{'
angel_pid
'};
if
(
defined
$pid
)
{
{
mtr_debug
("
IM-angel pid:
$instance_manager
->{'angel_pid'}
");
mtr_verbose
("
Waiting for IM-angel to die, pid:
$pid
");
mtr_debug
("
Waiting for IM-angel to die...
");
my
$total_attempts
=
10
;
my
$total_attempts
=
10
;
for
(
my
$cur_attempt
=
1
;
$cur_attempt
<=
$total_attempts
;
++
$cur_attempt
)
for
(
my
$cur_attempt
=
1
;
$cur_attempt
<=
$total_attempts
;
++
$cur_attempt
)
{
{
unless
(
kill
(
0
,
$
instance_manager
->
{'
angel_pid
'}
))
unless
(
kill
(
0
,
$
pid
))
{
{
mtr_
debug
("
IM-angel died.
");
mtr_
verbose
("
IM-angel died.
");
last
;
last
;
}
}
...
@@ -3494,14 +3493,14 @@ sub im_stop($) {
...
@@ -3494,14 +3493,14 @@ sub im_stop($) {
{
{
if
(
kill
(
0
,
$instance_manager
->
{'
pid
'}))
if
(
kill
(
0
,
$instance_manager
->
{'
pid
'}))
{
{
mtr_
debu
g
("
IM-main is still alive.
");
mtr_
warnin
g
("
IM-main is still alive.
");
last
;
last
;
}
}
if
(
defined
$instance_manager
->
{'
angel_pid
'}
&&
if
(
defined
$instance_manager
->
{'
angel_pid
'}
&&
kill
(
0
,
$instance_manager
->
{'
angel_pid
'}))
kill
(
0
,
$instance_manager
->
{'
angel_pid
'}))
{
{
mtr_
debu
g
("
IM-angel is still alive.
");
mtr_
warnin
g
("
IM-angel is still alive.
");
last
;
last
;
}
}
...
@@ -3509,7 +3508,7 @@ sub im_stop($) {
...
@@ -3509,7 +3508,7 @@ sub im_stop($) {
{
{
if
(
kill
(
0
,
$pid
))
if
(
kill
(
0
,
$pid
))
{
{
mtr_
debu
g
("
Guarded mysqld (
$pid
) is still alive.
");
mtr_
warnin
g
("
Guarded mysqld (
$pid
) is still alive.
");
last
;
last
;
}
}
}
}
...
@@ -3525,18 +3524,18 @@ sub im_stop($) {
...
@@ -3525,18 +3524,18 @@ sub im_stop($) {
if
(
defined
$instance_manager
->
{'
angel_pid
'})
if
(
defined
$instance_manager
->
{'
angel_pid
'})
{
{
mtr_
debug
("
Killing IM-angel...
");
mtr_
verbose
("
Killing IM-angel, pid:
$instance_manager
->{'angel_pid'}
");
mtr_kill_process
(
$instance_manager
->
{'
angel_pid
'},
'
KILL
',
10
)
mtr_kill_process
(
$instance_manager
->
{'
angel_pid
'},
'
KILL
',
10
)
}
}
mtr_
debug
("
Killing IM-main...
");
mtr_
verbose
("
Killing IM-main, pid:
$instance_manager
->{'pid'}
");
mtr_kill_process
(
$instance_manager
->
{'
pid
'},
'
KILL
',
10
);
mtr_kill_process
(
$instance_manager
->
{'
pid
'},
'
KILL
',
10
);
# Shutdown managed mysqld-processes. Some of them may be nonguarded, so IM
# Shutdown managed mysqld-processes. Some of them may be nonguarded, so IM
# will not stop them on shutdown. So, we should firstly try to end them
# will not stop them on shutdown. So, we should firstly try to end them
# legally.
# legally.
mtr_
debug
("
Killing guarded mysqld(s)...
"
);
mtr_
verbose
("
Killing guarded mysqld(s)
"
.
join
(
@mysqld_pids
)
);
mtr_kill_processes
(
\
@mysqld_pids
);
mtr_kill_processes
(
\
@mysqld_pids
);
# Complain in error log so that a warning will be shown.
# Complain in error log so that a warning will be shown.
...
...
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