[MDEV-3802] mysql_get_timeout_value() starts returning (unsigned)-1 in 10.0-monty Created: 2012-10-08 Updated: 2012-10-12 Resolved: 2012-10-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.0 |
| Fix Version/s: | 10.0.0, 5.5.28 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Kristian Nielsen | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In 10.0-monty, we start seeing failures in main.non_blocking_api. The issue is that we get the flag MYSQL_WAIT_TIMEOUT back from The symptom in the test suite is that tests compute a timeout for poll(2) as If no timeout is desired, the MYSQL_WAIT_TIMEOUT flag should not be set. As far as I can see, the problem is a wrong merge of new VIO stuff in
An easy way to repeat the problem is to run client/async_example against a $ strace -e trace=poll bld/client/async_example 127.0.0.1 root rootpass > /dev/null ], 1, -1) = 1 ([ {fd=3, revents=POLLOUT}]) ], 1, -1000) = 1 ([ {fd=3, revents=POLLIN}]) Note the second poll() call passing -1000 as timeout - this is incorrect, and However note that this is not the only problem. All of the new VIO stuff needs It is particularly important that it is 110% ensured that the non-blocking |
| Comments |
| Comment by Kristian Nielsen [ 2012-10-12 ] |
|
Fixed and pushed to 5.5 and 10.0-monty |