Bad return code for causal read timeout

Bug #1053899 reported by Alex Yurchenko
6
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_WAIT_TIMEOUT in this case cause semantically it is very close to the situation in question.

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

fix pushed in lp:codership-mysql/5.1 r3234

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

fix pushed in lp:codership-mysql/5.5 r3796

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.