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
7bf45bec
Commit
7bf45bec
authored
Jul 24, 2014
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix too agressive long semaphore wait output and add guard against introducing
compression failures on insert buffer.
parent
06655a19
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
42 deletions
+83
-42
mysql-test/include/mtr_warnings.sql
mysql-test/include/mtr_warnings.sql
+1
-0
storage/innobase/page/page0zip.c
storage/innobase/page/page0zip.c
+1
-0
storage/innobase/sync/sync0arr.c
storage/innobase/sync/sync0arr.c
+40
-21
storage/xtradb/page/page0zip.c
storage/xtradb/page/page0zip.c
+1
-0
storage/xtradb/sync/sync0arr.c
storage/xtradb/sync/sync0arr.c
+40
-21
No files found.
mysql-test/include/mtr_warnings.sql
View file @
7bf45bec
...
...
@@ -159,6 +159,7 @@ INSERT INTO global_suppressions VALUES
(
"InnoDB: Error: in ALTER TABLE `test`.`t[123]`"
),
(
"InnoDB: Error: in RENAME TABLE table `test`.`t1`"
),
(
"InnoDB: Error: table `test`.`t[123]` .*does not exist in the InnoDB internal"
),
(
"InnoDB: Warning: semaphore wait:"
),
/*
BUG#32080 - Excessive warnings on Solaris: setrlimit could not
...
...
storage/innobase/page/page0zip.c
View file @
7bf45bec
...
...
@@ -1272,6 +1272,7 @@ page_zip_compress(
records. */
if
(
srv_simulate_comp_failures
&&
!
dict_index_is_ibuf
(
index
)
&&
page_get_n_recs
(
page
)
>=
2
&&
((
ulint
)(
rand
()
%
100
)
<
srv_simulate_comp_failures
))
{
...
...
storage/innobase/sync/sync0arr.c
View file @
7bf45bec
...
...
@@ -971,27 +971,6 @@ sync_array_print_long_waits(
stderr
);
sync_array_cell_print
(
stderr
,
cell
,
&
reserver
);
noticed
=
TRUE
;
}
else
{
fputs
(
"InnoDB: Warning: semaphore wait:
\n
"
,
stderr
);
sync_array_cell_print
(
stderr
,
cell
,
&
reserver
);
}
/* Try to output cell information for writer recursive way */
while
(
reserver
!=
0
)
{
sync_cell_t
*
reserver_wait
;
reserver_wait
=
sync_array_find_thread
(
sync_primary_wait_array
,
reserver
);
if
(
reserver_wait
&&
reserver_wait
->
wait_object
!=
NULL
&&
reserver_wait
->
waiting
)
{
fputs
(
"InnoDB: Warning: Writer thread is waiting this semaphore:
\n
"
,
stderr
);
sync_array_cell_print
(
stderr
,
reserver_wait
,
&
reserver
);
}
else
{
reserver
=
0
;
}
}
if
(
diff
>
fatal_timeout
)
{
...
...
@@ -1005,6 +984,46 @@ sync_array_print_long_waits(
}
}
/* We found a long semaphore wait, wait all threads that are
waiting for a semaphore. */
if
(
noticed
)
{
for
(
i
=
0
;
i
<
sync_primary_wait_array
->
n_cells
;
i
++
)
{
void
*
wait_object
;
os_thread_id_t
reserver
=
0
;
cell
=
sync_array_get_nth_cell
(
sync_primary_wait_array
,
i
);
wait_object
=
cell
->
wait_object
;
if
(
wait_object
==
NULL
||
!
cell
->
waiting
)
{
continue
;
}
fputs
(
"InnoDB: Warning: semaphore wait:
\n
"
,
stderr
);
sync_array_cell_print
(
stderr
,
cell
,
&
reserver
);
noticed
=
TRUE
;
/* Try to output cell information for writer recursive way */
while
(
reserver
!=
0
)
{
sync_cell_t
*
reserver_wait
;
reserver_wait
=
sync_array_find_thread
(
sync_primary_wait_array
,
reserver
);
if
(
reserver_wait
&&
reserver_wait
->
wait_object
!=
NULL
&&
reserver_wait
->
waiting
)
{
fputs
(
"InnoDB: Warning: Writer thread is waiting this semaphore:
\n
"
,
stderr
);
sync_array_cell_print
(
stderr
,
reserver_wait
,
&
reserver
);
}
else
{
reserver
=
0
;
}
}
}
}
sync_array_exit
(
sync_primary_wait_array
);
if
(
noticed
)
{
...
...
storage/xtradb/page/page0zip.c
View file @
7bf45bec
...
...
@@ -1276,6 +1276,7 @@ page_zip_compress(
records. */
if
(
srv_simulate_comp_failures
&&
!
dict_index_is_ibuf
(
index
)
&&
page_get_n_recs
(
page
)
>=
2
&&
((
ulint
)(
rand
()
%
100
)
<
srv_simulate_comp_failures
))
{
...
...
storage/xtradb/sync/sync0arr.c
View file @
7bf45bec
...
...
@@ -995,27 +995,6 @@ sync_array_print_long_waits(
stderr
);
sync_array_cell_print
(
stderr
,
cell
,
&
reserver
);
noticed
=
TRUE
;
}
else
{
fputs
(
"InnoDB: Warning: semaphore wait:
\n
"
,
stderr
);
sync_array_cell_print
(
stderr
,
cell
,
&
reserver
);
}
/* Try to output cell information for writer recursive way */
while
(
reserver
!=
0
)
{
sync_cell_t
*
reserver_wait
;
reserver_wait
=
sync_array_find_thread
(
sync_primary_wait_array
,
reserver
);
if
(
reserver_wait
&&
reserver_wait
->
wait_object
!=
NULL
&&
reserver_wait
->
waiting
)
{
fputs
(
"InnoDB: Warning: Writer thread is waiting this semaphore:
\n
"
,
stderr
);
sync_array_cell_print
(
stderr
,
reserver_wait
,
&
reserver
);
}
else
{
reserver
=
0
;
}
}
if
(
diff
>
fatal_timeout
)
{
...
...
@@ -1029,6 +1008,46 @@ sync_array_print_long_waits(
}
}
/* We found a long semaphore wait, wait all threads that are
waiting for a semaphore. */
if
(
noticed
)
{
for
(
i
=
0
;
i
<
sync_primary_wait_array
->
n_cells
;
i
++
)
{
void
*
wait_object
;
os_thread_id_t
reserver
=
0
;
cell
=
sync_array_get_nth_cell
(
sync_primary_wait_array
,
i
);
wait_object
=
cell
->
wait_object
;
if
(
wait_object
==
NULL
||
!
cell
->
waiting
)
{
continue
;
}
fputs
(
"InnoDB: Warning: semaphore wait:
\n
"
,
stderr
);
sync_array_cell_print
(
stderr
,
cell
,
&
reserver
);
noticed
=
TRUE
;
/* Try to output cell information for writer recursive way */
while
(
reserver
!=
0
)
{
sync_cell_t
*
reserver_wait
;
reserver_wait
=
sync_array_find_thread
(
sync_primary_wait_array
,
reserver
);
if
(
reserver_wait
&&
reserver_wait
->
wait_object
!=
NULL
&&
reserver_wait
->
waiting
)
{
fputs
(
"InnoDB: Warning: Writer thread is waiting this semaphore:
\n
"
,
stderr
);
sync_array_cell_print
(
stderr
,
reserver_wait
,
&
reserver
);
}
else
{
reserver
=
0
;
}
}
}
}
sync_array_exit
(
sync_primary_wait_array
);
if
(
noticed
)
{
...
...
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