[MDEV-31131] Mariadb MyRocks Update Statement Lose Data Created: 2023-04-26 Updated: 2023-06-14 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update, Storage Engine - RocksDB |
| Affects Version/s: | 10.10.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | TNguyen | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Mariadb 10.10.2-MariaDB-log MariaDB Server on Centos 7 |
||
| Attachments: |
|
| Description |
|
Summary
Environment:
Reproduce Step 1: Set variable rocksdb_bulk_load to update many data
Step 2: Change device_id from "1000002912" to "1234567890"
Step 3: Query data of new device_id
Step 4: Query data of old device_id
[![Capture Summary][1]][1]
How can I fix this problem? [1]: https://i.stack.imgur.com/awxhA.png Link Ref: https://stackoverflow.com/questions/76105396/mariadb-myrocks-update-statement-lose-data |
| Comments |
| Comment by Alice Sherepa [ 2023-04-26 ] | |||||||
|
I think this option is not, what you need for updating a lot of data. Please read https://github.com/facebook/mysql-5.6/wiki/Data-Loading , it explains conditioins for rocksdb_bulk_load and says that the data may not be visible - that explains why there is zero in select count.
and then data is not updated. (https://mariadb.com/kb/en/loading-data-into-myrocks/ - data conflicts with the data already in the database) | |||||||
| Comment by Juan Lago [ 2023-06-01 ] | |||||||
|
I experience the same problem inserting data into an empty MyRocks table in an environment with a read-replica. After to finished inserting the reports it displayed the "Query OK" message, however the table was empty and the read-replica crashed displaying a lag of "-1". I also used
I didn't use the option "sql_log_bin" because I need a copy into the read-replica. Environment for master and read-replica Steps to reproduce I enclose log files. |