There is a table used for ETL purposes, that is recreated on regular basis.
Whilst processing select * from table limit 0,100, there was a failure:
Apr 12 10:12:12 dbusa ExeMgr[74153]: 12.510096 |1855|0|0| D 16 CAL0041: Start SQL statement: select * from dbusa.table limit 0, 1000; |dbusa|
Apr 12 10:12:16 dbusa PrimProc[74097]: 16.789519 |0|0|0| I 28 CAL0061: PrimProc error reading file for OID 8242; retry updateptrs for /usr/local/mariadb/columnstore/data1/000.dir/000.dir/032.dir/050.dir/000.dir/FILE000.cdf. rc=0, idx=4, ptr.size=4
Apr 12 10:12:16 dbusa PrimProc[74097]: 16.793821 |0|0|0| C 28 CAL0000: Invalid Range from HWM for lbid 13379328, range size should be <= blocksReadAhead: HWM 2047, dbroot 1, highfbo 3071, lowfbo 2560, blocksReadAhead 512, range size -512
Apr 12 10:12:16 dbusa ExeMgr[74153]: 16.802872 |1855|0|0| D 16 CAL0042: End SQL statement
The problem presumably caused by a block saved by versioning but is absent in dbroot involved.
- relates to
-
MCOL-1675
Incorrect HWM calculation if the table's first column width > 1
-
-
Closed
{"report":{"fcp":1246,"ttfb":385.7000002861023,"pageVisibility":"visible","entityId":66927,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"56928e55-67d5-4ba0-a3b6-1262b4278205","navigationType":0,"readyForUser":1335.1000003814697,"redirectCount":0,"resourceLoadedEnd":964.4000000953674,"resourceLoadedStart":390.80000019073486,"resourceTiming":[{"duration":194.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":390.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":390.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":585.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":194.7999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":391.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":391.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":586,"responseStart":0,"secureConnectionStart":0},{"duration":406.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":391.30000019073486,"connectEnd":391.30000019073486,"connectStart":391.30000019073486,"domainLookupEnd":391.30000019073486,"domainLookupStart":391.30000019073486,"fetchStart":391.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":590.1000003814697,"responseEnd":797.4000000953674,"responseStart":617.5,"secureConnectionStart":391.30000019073486},{"duration":561.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":391.40000009536743,"connectEnd":391.40000009536743,"connectStart":391.40000009536743,"domainLookupEnd":391.40000009536743,"domainLookupStart":391.40000009536743,"fetchStart":391.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":590.3000001907349,"responseEnd":953,"responseStart":619.1000003814697,"secureConnectionStart":391.40000009536743},{"duration":230.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":391.80000019073486,"connectEnd":391.80000019073486,"connectStart":391.80000019073486,"domainLookupEnd":391.80000019073486,"domainLookupStart":391.80000019073486,"fetchStart":391.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":591.9000000953674,"responseEnd":622.7000002861023,"responseStart":621,"secureConnectionStart":391.80000019073486},{"duration":230.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":392,"connectEnd":392,"connectStart":392,"domainLookupEnd":392,"domainLookupStart":392,"fetchStart":392,"redirectEnd":0,"redirectStart":0,"requestStart":590.7000002861023,"responseEnd":622.4000000953674,"responseStart":620.3000001907349,"secureConnectionStart":392},{"duration":237.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":392.2000002861023,"connectEnd":392.2000002861023,"connectStart":392.2000002861023,"domainLookupEnd":392.2000002861023,"domainLookupStart":392.2000002861023,"fetchStart":392.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":592.8000001907349,"responseEnd":629.7000002861023,"responseStart":628.4000000953674,"secureConnectionStart":392.2000002861023},{"duration":205.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":392.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":392.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":597.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":251.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":392.5,"connectEnd":392.5,"connectStart":392.5,"domainLookupEnd":392.5,"domainLookupStart":392.5,"fetchStart":392.5,"redirectEnd":0,"redirectStart":0,"requestStart":603.5,"responseEnd":643.7000002861023,"responseStart":641.3000001907349,"secureConnectionStart":392.5},{"duration":207.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":392.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":392.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":600,"responseStart":0,"secureConnectionStart":0},{"duration":251.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":392.80000019073486,"connectEnd":392.80000019073486,"connectStart":392.80000019073486,"domainLookupEnd":392.80000019073486,"domainLookupStart":392.80000019073486,"fetchStart":392.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":603.9000000953674,"responseEnd":644,"responseStart":642.1000003814697,"secureConnectionStart":392.80000019073486},{"duration":556.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":407.80000019073486,"connectEnd":407.80000019073486,"connectStart":407.80000019073486,"domainLookupEnd":407.80000019073486,"domainLookupStart":407.80000019073486,"fetchStart":407.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":907.6000003814697,"responseEnd":964.1000003814697,"responseStart":958.2000002861023,"secureConnectionStart":407.80000019073486},{"duration":546.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":418,"connectEnd":418,"connectStart":418,"domainLookupEnd":418,"domainLookupStart":418,"fetchStart":418,"redirectEnd":0,"redirectStart":0,"requestStart":908.5,"responseEnd":964.4000000953674,"responseStart":958.8000001907349,"secureConnectionStart":418},{"duration":162.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":932.9000000953674,"connectEnd":932.9000000953674,"connectStart":932.9000000953674,"domainLookupEnd":932.9000000953674,"domainLookupStart":932.9000000953674,"fetchStart":932.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1059.7000002861023,"responseEnd":1095.3000001907349,"responseStart":1094.7000002861023,"secureConnectionStart":932.9000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":175,"responseStart":386,"responseEnd":418,"domLoading":390,"domInteractive":1434,"domContentLoadedEventStart":1434,"domContentLoadedEventEnd":1492,"domComplete":2273,"loadEventStart":2273,"loadEventEnd":2273,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1368.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1369.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1369.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1371.7000002861023},{"name":"activityTabFullyLoaded","time":1509.1000003814697}],"measures":[],"correlationId":"5eb6e29836d949","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":19,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
To reproduce it first run the DDL statements:
create table cs1(i bigint) engine=columnstore;
alter table cs1 add column v1 varchar(1);
After that one must insert > 8kk rows into the table. I have simple generator for the purpose so feel free to ask for it.
After the preparations call
SELECT * FROM cs1 LIMIT 0, 1000;
and check logs.
There is a shortcut. Instead of populating the table with values just run:
select c.object_id,c.column_name,e.width from information_schema.columnstore_extents e, information_schema.columnstore_columns c where e.object_id = c.object_id and c.column_name = 'v1';
The width returned for the column must be 4 instead of 2 that is the correct value.