[MDEV-16868] Same query gives different results Created: 2018-07-31 Updated: 2019-09-30 Resolved: 2018-08-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Temporary, Storage Engine - InnoDB |
| Affects Version/s: | 10.2.9, 10.3.2, 10.2.16, 10.3.8 |
| Fix Version/s: | 10.2.18, 10.3.10 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Leif Matthiessen | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | corruption, flush, temporary | ||
| Environment: |
Ubuntu Xenial Xerus, Mac OS 10.13.6 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
I don't use the critical priority frivolously, but I have a query that always works on a mysql server, but only once at the first execution every 20 to 60 minutes on a MariaDB server. I am able to reproduce, that the query gives a different (wrong) result, if executed a few seconds after it gave the correct result. It also runs about 10 times slower on MariaDB than on mysql 5.7. This bug affects our production environment. I appended the query results with columns separated by tabs, since I could not display them cleanly with this editor. Here is the query:
|
| Comments |
| Comment by Alice Sherepa [ 2018-07-31 ] | |
|
Please attach your cnf files and yes, please upload your data to ftp.askmonty.org/private/ | |
| Comment by Leif Matthiessen [ 2018-08-01 ] | |
|
Thanks. I attached the cnf files. I changed bind-address to ::ffff:127.0.0.1, because of reasons. It could take a few days until I can provide the pseudonymized database. I will also try to delete tables that are not necessary to reproduce the bug. Doesn't the ftp server need any credentials? | |
| Comment by Leif Matthiessen [ 2018-08-02 ] | |
|
I used to work with mysql locally, which always gives the correct result (5 rows). Yesterday, I installed MariaDB via Homebrew (I am on a Mac), did not adjust the config, and had the same bug there. Actually the first result was only 1 row, but the following query executions returned 5 rows. Some notes for narrowing down the bug:
curl fails to connect to ftps://ftp.askmonty.org/private. Is it ok, if I upload the file to ftp.mariadb.com like described here: https://mariadb.com/kb/en/meta/mariadb-ftp-server/ ? | |
| Comment by Alice Sherepa [ 2018-08-02 ] | |
|
please try again with ftp://ftp.askmonty.org/private/, checked just now with curl, seems to work | |
| Comment by Leif Matthiessen [ 2018-08-02 ] | |
|
Please note the protocol. I am uploading sensitive data, and ftp is not secure, so I tried ftps. If there is no other way, I will have to encrypt the file and tell you the key via private message. Surely there must be a routinely used way to upload sensitive data, I can't be the first. | |
| Comment by Alice Sherepa [ 2018-08-02 ] | |
|
right, please use ftps://ftp.mariadb.com/ in this case | |
| Comment by Leif Matthiessen [ 2018-08-02 ] | |
|
I uploaded it to ftp.mariadb.com. However, I had to take a risk, because the ssl certificate is expired.
Also, on https://mariadb.com/kb/en/meta/mariadb-ftp-server/ it reads So we must never disclose the file name. I hope, you can browse the files on the ftp. Filename starts with "MDEV16868". | |
| Comment by Alice Sherepa [ 2018-08-03 ] | |
|
lm, Thanks a lot, I got your file and now deleted it from ftp server. | |
| Comment by Leif Matthiessen [ 2018-08-03 ] | |
|
I have to thank you for your patience. I am also amazed, that this bug is now confirmed, because it is so weird. Good luck finding it. | |
| Comment by Marko Mäkelä [ 2018-08-24 ] | |
|
I am sorry, I accidentally caused this regression. |