Bug #79816 Document says CSV automatically repaired using check command, but it won't work
Submitted: 31 Dec 2015 11:13 Modified: 22 Nov 2018 13:40
Reporter: Akhil Surya Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:all OS:Any
Assigned to: CPU Architecture:Any

[31 Dec 2015 11:13] Akhil Surya
Description:
There is a typo in the documentation of CSV storage engine.

 If table is marked as corrupt, then CSV does not automatically repaired when we run next check command. But documentation says, once table has been marked as corrupt then it is automatically repaired when we run next check command.

But it work when we run using select statement and repair command.

I didn't understand what is the bug. It is the documentation mistake or a bug in the CSV storage engine.

How to repeat:
For your information

mysql> select * from csv;
+----+------+
| id | addr |
+----+------+
|  1 | hyd  |
|  2 | sc   |
|  3 | bza  |
|  4 | vzag |
+----+------+
4 rows in set (0.00 sec)

mysql> check table csv;
+----------+-------+----------+----------+
| Table    | Op    | Msg_type | Msg_text |
+----------+-------+----------+----------+
| test.csv | check | error    | Corrupt  |
+----------+-------+----------+----------+
1 row in set (0.02 sec)

mysql> check table csv;
+----------+-------+----------+----------+
| Table    | Op    | Msg_type | Msg_text |
+----------+-------+----------+----------+
| test.csv | check | error    | Corrupt  |
+----------+-------+----------+----------+
1 row in set (0.00 sec)

mysql> select * from csv;
+----+------+
| id | addr |
+----+------+
|  1 | hyd  |
|  2 | sc   |
|  3 | bza  |
+----+------+
3 rows in set, 1 warning (0.01 sec)

mysql> show warnings;
+-------+------+---------------------------------------------------------+
| Level | Code | Message                                                 |
+-------+------+---------------------------------------------------------+
| Error | 1194 | Table 'csv' is marked as crashed and should be repaired |
+-------+------+---------------------------------------------------------+
1 row in set (0.00 sec)
[22 Oct 2018 13:40] MySQL Verification Team
Hi,

Please let us know which MySQL versions and releases have you tested.
[23 Nov 2018 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".