[MDEV-12945] JOIN on Compressed MyISAM tables failed randomly Created: 2017-05-29 Updated: 2022-09-08 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - MyISAM |
| Affects Version/s: | 10.0.31 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Christian Stern | Assignee: | Elena Stepanova |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian Jessie 32bit |
||
| Attachments: |
|
| Description |
|
we have 2 myisam tables that are compressed and selected with a JOIN. The SELECT randomly fails with the entry in log: With given TestProgram.cs and database schema I can reproduce the error:
It may take a few hours for the error to occur. Also reproducible with given bash script:
Error Message: Because the tables are compressed, they are read-only. Therefore the tables can never be corrupt! |
| Comments |
| Comment by Elena Stepanova [ 2017-06-05 ] |
|
Couldn't reproduce it so far, will try again later. |
| Comment by Christian Stern [ 2017-06-06 ] |
|
It can take several hours until the error occurs. Sometimes it was faster if you turn off query caching (query_cache_size=0). |
| Comment by Christian Stern [ 2017-06-27 ] |
|
Did you try again to reproduce it? |
| Comment by Alice Sherepa [ 2017-07-05 ] |
|
please can you provide your error.log and /etc/init.d/mysql script. I suspect that new instance of mysql starts, when then old one is still up, |
| Comment by Christian Stern [ 2017-07-05 ] |
|
the error log /var/log/mysqld.log is empty. the init script is the default of debian jessie package. I attached it. |
| Comment by Christian Stern [ 2017-07-05 ] |
|
I also attached daemon.log |
| Comment by Alice Sherepa [ 2017-07-05 ] |
|
I mean error log when you executing bash script. and mysqld.log please anyway. Can't reproduce it( Maybe this option --myisam_recover_options also will be helpful https://mariadb.com/kb/en/mariadb/myisam-system-variables/#myisam_recover_options |
| Comment by Christian Stern [ 2017-07-05 ] |
|
the test.zip contains the output of the test bash script. I can't attach mysqld.log because it is an empty file. the option myisam_recover_options is not needed because the compressed table are read-only. I think that errors can only occur on write operations. The myisam files in filesystem are not touched during the test. |
| Comment by Alice Sherepa [ 2017-07-12 ] |
|
I reproduced it once on VM debian 32bit with options from my.cnf and bash script from description. But can not repeat it more, I'm working on it. |
| Comment by Christian Stern [ 2017-07-13 ] |
|
Great! As I said, it may take several hours for the error to occur. But it always appears. |
| Comment by Christian Stern [ 2017-08-09 ] |
|
Did you find out whether the problem occurs only with compressed tables? |
| Comment by Christian Stern [ 2017-09-05 ] |
|
Could you identify the problem? Please let me know as soon as possible. I still have trouble with the error... |
| Comment by Alice Sherepa [ 2017-09-05 ] |
|
Hi Christian, i suggest to run mysqld directly, without using debian script and see if the problem will occur again. I repeated a problem several times, but could not make a reasonable test for that, not that time consuming. |
| Comment by Christian Stern [ 2017-10-11 ] |
|
It does not matter if mysqld runs with debian script or not. The error occurs nevertheless. I also can not do a reliable test for that bug. |
| Comment by Christian Stern [ 2017-10-17 ] |
|
How will you proceed with this error? For us, it would also be very important to know whether the error only occurs with compressed tables. |
| Comment by Elena Stepanova [ 2017-11-14 ] |
|
christian.stern, since the failure is much more readily reproducible in your environment than in ours, the easiest way to find out whether the error only occurs with compressed tables is to try to reproduce it without compression on your side. If you do so, please comment with the results, other users could also benefit from this information, and it might help us to narrow down the problem. That's one of cases where we have to rely on the input from the community. The bug report is currently in the backlog, it will be back in the work queue when we are closer to the next 10.0 release, which is scheduled for February 2018. |
| Comment by Christian Stern [ 2017-11-14 ] |
|
elenst, thanks for answer. The failure does not occur with uncompressed tables. I tried it with the same test environment several days and the error never occurs. But for me that is not reliable enough, because you can not exclude the error completely. Only after the actual problem has been found can one reliably say that the compression is crucial. |