[MCOL-670] BLOB/TEXT updates truncated Created: 2017-04-19 Updated: 2017-04-21 Resolved: 2017-04-21 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.0 |
| Fix Version/s: | 1.1.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Hutchings (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2017-8 | ||||||||
| Description |
|
PrimProc multi_token reading is breaking when reusing the same token. This causes junk data on a select on a multi-row table using TEXT/BLOB data longer than 8KB. Observed when doing an UPDATE on a constant column. Example:
(ignore timings, debugger was running) |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2017-04-19 ] |
|
Main cause was due to PrimProc. We get the first block for every dictionary and then get the further blocks for each. Before the patch we only stored the pointer to the first block grab and the subsequent block grab erased this. When running a bulk projectRG on the same token this would cause corruption. Also modified dictionary writing so that updates don't use de-duplication caching for > 8000 bytes. |
| Comment by Andrew Hutchings (Inactive) [ 2017-04-19 ] |
|
Regression suite pull request as well as develop |
| Comment by Daniel Lee (Inactive) [ 2017-04-20 ] |
|
Build tested: Github source Merge pull request #42 from mariadb-corporation/ Make audit plugin display columnstore original query in logging [root@localhost mariadb-columnstore-server]# cd mariadb-columnstore-engine/ Merge pull request #154 from mariadb-corporation/ Update with literal value works now, but updating with another values from another column of the same data type still causing the an error. [root@localhost tests.textblob.n]# cat text.n.update.column.sql > ERROR 1815 (HY000) at line 1: Internal error: CAL0002: Update Failed: ExeMgr Error 1000 |
| Comment by Andrew Hutchings (Inactive) [ 2017-04-21 ] |
|
This is an error due to syntax and would fail the same way for all data types. Therefore out-of-scope for this bug. Moved back to test. |
| Comment by Daniel Lee (Inactive) [ 2017-04-21 ] |
|
Verified: [root@localhost mariadb-columnstore-server]# git show Merge pull request #42 from mariadb-corporation/ Make audit plugin display columnstore original query in logging [root@localhost mariadb-columnstore-server]# cd mariadb-columnstore-engine/ Merge pull request #155 from mariadb-corporation/ |