XtraDB assertion at shutdown if posix_fallocate is used in ut_a(node->n_pending == 0 || node->space->stop_new_ops);
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Laurynas Biveinis | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Fix Released
|
High
|
Laurynas Biveinis | ||
5.6 |
Fix Released
|
High
|
Laurynas Biveinis |
Bug Description
This bug happens if you use posix_fallocate to extent filespace (e.g. on FusionIO ssd drive)
https:/
lp:maria/5.5 revno 3988
Suggested fix:
=== modified file 'storage/
--- storage/
+++ storage/
@@ -5027,10 +5027,16 @@ fil_extend_
mem_free(buf2);
- fil_node_
-
#ifdef HAVE_POSIX_
complete_io:
+ /* If posix_fallocate was used to extent the file space
+ we need to complete the io. Because no actual writes were
+ dispatched read operation is enough here. Without this
+ there will be assertion at shutdown indicating that
+ all IO is not completed. */
+ fil_node_
+#else
+ fil_node_
#endif
*actual_size = space->size;
Related branches
- George Ormond Lorch III (community): Approve (g2)
-
Diff: 11 lines (+1/-0)1 file modifiedPercona-Server/storage/innobase/fil/fil0fil.c (+1/-0)
- George Ormond Lorch III (community): Approve (g2)
-
Diff: 11 lines (+1/-0)1 file modifiedPercona-Server/storage/innobase/fil/fil0fil.cc (+1/-0)
affects: | percona-xtradb → percona-server |
tags: | added: contribution low-hanging-fruit xtradb |
Affected versions 5.5 and 5.6