[MDEV-10548] Some of the debug sync waits do not work with InnoDB 5.7 (branch bb-10.2-jan) Created: 2016-08-12 Updated: 2016-09-14 Resolved: 2016-09-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Jan Lindström (Inactive) | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
In tests:
branch bb-10.2-jan commit 3f1b8c9474e351e50a6556675108864d5aac5528 Example:
|
| Comments |
| Comment by Sergei Golubchik [ 2016-09-08 ] |
|
jplindst, I've fixed the first three, the last one is yours, as discussed |
| Comment by Michael Widenius [ 2016-09-08 ] |
|
The problem is in this new code: /* When using the REPLACE statement or ON DUPLICATE clause, a The related code will cause new inserts to be blocked on a leaf page of an unique index. In the test we do (note that k is an unique secondary key) What happens is: I have verified that MySQL 5.7 also will block for this test Possible fixes:
|
| Comment by Jan Lindström (Inactive) [ 2016-09-14 ] |
|
See detailed analysis of innodb.auto_increment_dup test case in http://bugs.mysql.com/bug.php?id=66301. In my opinion current behavior is correct and previous behavior was incorrect. |
| Comment by Jan Lindström (Inactive) [ 2016-09-14 ] |
|
Part 2 of this (no public bug): commit c93b0d9a972cb6f98fd445f2b69d924350f9128a Bug #11758237 INSERT ON DUPLICATE KEY UPDATE SOMETIMES WRITES BINLOG Problem: When concurrent INSERT ... ON DUPLICATE UPDATE statement is executed on a Solution: When INSERT ... ON DUPLICATE UPDATE statement is execute, first the record rb#3196 approved by Marko |
| Comment by Jan Lindström (Inactive) [ 2016-09-14 ] |
|
Current behavior is correct for repeatable read (and serializable) isolation level. Old behavior is correct for read committed isolation level. Added test cases for both repeatable read and read committed. |