Bad return code for causal read timeout

Bug #1053899 reported by Alex Yurchenko on 2012-09-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Alex Yurchenko
Alex Yurchenko
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.

Use ER_LOCK_WAIT_TIMEOUT in this case cause semantically it is very close to the situation in question.

Alex Yurchenko (ayurchen) wrote :

fix pushed in lp:codership-mysql/5.1 r3234

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  Edit
Everyone can see this information.

Other bug subscribers