[MCOL-4924] Insert Cache - Table not accessible after LDI caused a version buffer overflow error Created: 2021-11-16 Updated: 2023-12-15 Resolved: 2023-12-15 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | DMLProc |
| Affects Version/s: | 6.2.1 |
| Fix Version/s: | 23.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Gagan Goel (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Build tests: 6.2.1-1 (#3379) columnstore_cache_inserts=ON Tried to LDI 15000000 rows into the dbt3 orders table. LDI command executed fine, but flushing cache hit the version buffer overflow error. In previous release, when buffer overflow error occurred, the DML comment is automatically rollbacked. What is the expected behavior now since rollback is not supported? Since rollback is not supported when insert cache is on, should DML bypass the versioning?
When DELETE caused an version buffer overflow error, the table is still in good condition
|
| Comments |
| Comment by David Hall (Inactive) [ 2021-11-19 ] |
|
It's probable that any LOAD DATA INFILE would have a problem if version buffer overflow. This should be looked into. But this has not yet been tested. |
| Comment by Daniel Lee (Inactive) [ 2021-12-10 ] |
|
Build tested: 6.2.2-1 (#3496) Could not reproduce the issue with 4GB version buffer, not even doubling the dataset size to 20gb orders.tbl. I lowered the version buffer to 4MB, instead of 4GB, and I saw the issue again. The following kept coming up when the orders table is queried. MariaDB [mytest]> select count |
| Comment by David Hall (Inactive) [ 2022-03-31 ] |
|
Regardless of the settings of columnstore_cache_use_import and columnstore_use_import_for_batchinsert, version buffer overflow should result in a rollback and the table should be accessible. |
| Comment by David Hall (Inactive) [ 2022-03-31 ] |
|
Daniel: Please run a test where Run an LDI with 150000000 rows in an attempt to cause version buffer overflow. Report if the error is recovered from (rollback works). If it fails to rollback correctly, re-assign this to me. In either case, let me know what happened. |
| Comment by Daniel Lee (Inactive) [ 2022-04-18 ] |
|
Build tested: Build tests: 6.2.1-1 (#3379) I confirmed with Mr. Hall that he want to load 15,000,000 rows, not 150,000,000 rows. I executed the requested test on the same columnstore build which the issue was oringally reported on. It actually took 3 times of the dataset (45,000,000 rows) to cause the version buffer overflow error. When that happened, the subsequent SELECT statement worked fine. I also repeated the original test (with (45,000,000 rows) on the same build, as well as on the latest from develop-6 (drone build 4287). Both still have the reported issue. |