[MDEV-8411] Assertion `is_stat_field || !table || (!table->write_set || bitmap_is_set(table->write_set, field_index) || bitmap_is_set(table->vcol_set, field_index))' failed in Field_timestamp::store_TIME_with_warning Created: 2015-07-02 Updated: 2016-02-23 Resolved: 2016-02-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.1.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Sprint: | 10.1.12 |
| Description |
|
To reproduce,
When slave SQL thread reaches mysql-bin.000237 pos 866, the slave crashes as above. I have also attached mysql.log from the master in case you want to match the binlog with the general log. |
| Comments |
| Comment by Elena Stepanova [ 2015-07-02 ] | |||||||||||||||||||||||||||||||||||||||
|
cvicentiu, I'm not quite sure it's related to | |||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-12-22 ] | |||||||||||||||||||||||||||||||||||||||
|
Similar crash with a testcase:
| |||||||||||||||||||||||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2016-02-21 ] | |||||||||||||||||||||||||||||||||||||||
|
The reason for the assertion failure is that the update statement for the minimal row image sets only the PK column in the write_set of the table to true. On the other hand, the trigger aims to update a different column. We must find a way to signal the store procedure that if we are during a trigger update, that the write set must not be taken into account. | |||||||||||||||||||||||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2016-02-23 ] | |||||||||||||||||||||||||||||||||||||||
|
Can you please review: https://github.com/MariaDB/server/commit/de1fa4527663ffde05b43bbc2acd5ce0398f483a For the record, buildbot tests pass. | |||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2016-02-23 ] | |||||||||||||||||||||||||||||||||||||||
|
OK, to push | |||||||||||||||||||||||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2016-02-23 ] | |||||||||||||||||||||||||||||||||||||||
|
Fixed with https://github.com/MariaDB/server/commit/de1fa4527663ffde05b43bbc2acd5ce0398f483a |