Bad return code for causal read timeout
Bug #1053899 reported by
Alex Yurchenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
Fix Released
|
High
|
Alex Yurchenko | ||
5.1 |
Fix Committed
|
Medium
|
Alex Yurchenko | ||
5.5 |
Fix Released
|
High
|
Alex Yurchenko |
Bug Description
When causal read timeout happens
1) it returns ER_ERROR_ON_READ which is about reading from file
2) the above error code requires an errno to be supplied, which is not done, so it prints random int form the stack.
hence we get
mysql> select * from test.comm00 limit 3;
ERROR 1024 (HY000): Error reading file 'Causal wait failed.' (errno: -469761968)
and a confused client, which expects a meaningful errno from a filesystem operation.
Suggestion:
Use ER_LOCK_
To post a comment you must log in.
fix pushed in lp:codership-mysql/5.1 r3234