Changing a column from uncompressed to compressed for JSON crashes the server

Bug #1704163 reported by Alexander Rubin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Invalid
Undecided
Unassigned
5.6
Invalid
Undecided
Unassigned
5.7
Triaged
High
Unassigned

Bug Description

Percona server 5.7 includes the compression option https://www.percona.com/doc/percona-server/LATEST/flexibility/compressed_columns.html

When trying to change the field from uncompressed to compressed for JSON, and then select from the table, MySQL crashes.

mysql> alter table tb_name modify json_variables JSON COLUMN_FORMAT compressed;
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0

select json_variables from tb_name limit 1\G
...
server crashes.

Error log shows:
2017-07-13T15:21:22.114757Z 3 [ERROR] [FATAL] InnoDB: unsupported compressed BLOB header format

Revision history for this message
Alexander Rubin (alikrubin75) wrote :

Please note: this only happens on alter table, not on initial table creation and insertion

Revision history for this message
Roel Van de Paar (roel11) wrote :

Alexander, could you please provide full testcase?

tags: added: column-compression
Revision history for this message
Sveta Smirnova (svetasmirnova) wrote :

Thank you for the report.

I cannot repeat crash, but SELECT fails with error "3142: The JSON binary value contains invalid data." which is not correct behavior too. Set to "Confirmed"

Revision history for this message
Sveta Smirnova (svetasmirnova) wrote :
Revision history for this message
Sveta Smirnova (svetasmirnova) wrote :

Tested with 5.7.18-16

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1108

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.