Type:
Bug
Priority:
Blocker
Resolution:
Incomplete
Affects Version/s:
3.2.5
Environment:
Windows 10 x64 latest
In MDEV-17832 support was added for extended type info.
Since this change I have random errors coming from mthd_my_read_query_result() and in it db_read_rows() when using connector-c 3.1.8 and higher. Using 3.1.7 no errors are present.
From 3.1.8 onwards ma_result_set_rows() returns 9 when using server 10.5.2 or greater.
So db_read_rows() wants to read 9 fields, always. The error comes from the server is sending sometimes less the 9 fields! When the client reads the field = 8 data it then reads past the packet size and reads random data. The function exits with:
SET_CLIENT_ERROR(mysql, CR_UNKNOWN_ERROR, SQLSTATE_UNKNOWN, 0);
I think the problem originates in the server function has_extended_metadata() in file sql/sql_type.h
The function Protocol_text::store_field_metadata() uses has_extended_metadata() to decide to send 6 or more fields depending on m_attr[i] .str being not null. I suppose there are cases when all three m_attr[i] .str are null, which results in sending 6 fields in stead of the expected 9.
Could mr. Alexander Barkov look at this issue?
is caused by
MDEV-17832
Protocol: extensions for Pluggable types and JSON, GEOMETRY
Closed
{"report":{"fcp":753.7999999523163,"ttfb":158.89999997615814,"pageVisibility":"visible","entityId":105692,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"5a533567-aa42-4c14-97b6-7974ed787a58","navigationType":0,"readyForUser":808.8999999761581,"redirectCount":0,"resourceLoadedEnd":957.8999999761581,"resourceLoadedStart":164.59999990463257,"resourceTiming":[{"duration":157.30000007152557,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":164.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":321.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":157,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":164.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":321.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":166.19999992847443,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":165,"connectEnd":165,"connectStart":165,"domainLookupEnd":165,"domainLookupStart":165,"fetchStart":165,"redirectEnd":0,"redirectStart":0,"requestStart":165,"responseEnd":331.1999999284744,"responseStart":331.1999999284744,"secureConnectionStart":165},{"duration":216.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":165.09999990463257,"connectEnd":165.09999990463257,"connectStart":165.09999990463257,"domainLookupEnd":165.09999990463257,"domainLookupStart":165.09999990463257,"fetchStart":165.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":165.09999990463257,"responseEnd":381.6999999284744,"responseStart":381.59999990463257,"secureConnectionStart":165.09999990463257},{"duration":220.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":165.19999992847443,"connectEnd":165.19999992847443,"connectStart":165.19999992847443,"domainLookupEnd":165.19999992847443,"domainLookupStart":165.19999992847443,"fetchStart":165.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":165.19999992847443,"responseEnd":385.6999999284744,"responseStart":385.6999999284744,"secureConnectionStart":165.19999992847443},{"duration":220.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":165.29999995231628,"connectEnd":165.29999995231628,"connectStart":165.29999995231628,"domainLookupEnd":165.29999995231628,"domainLookupStart":165.29999995231628,"fetchStart":165.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":165.29999995231628,"responseEnd":386.09999990463257,"responseStart":386.09999990463257,"secureConnectionStart":165.29999995231628},{"duration":221.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":165.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":387,"responseStart":0,"secureConnectionStart":0},{"duration":221.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":165.39999997615814,"connectEnd":165.39999997615814,"connectStart":165.39999997615814,"domainLookupEnd":165.39999997615814,"domainLookupStart":165.39999997615814,"fetchStart":165.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":165.39999997615814,"responseEnd":386.5,"responseStart":386.5,"secureConnectionStart":165.39999997615814},{"duration":221.30000007152557,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":165.59999990463257,"connectEnd":165.59999990463257,"connectStart":165.59999990463257,"domainLookupEnd":165.59999990463257,"domainLookupStart":165.59999990463257,"fetchStart":165.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":165.59999990463257,"responseEnd":386.89999997615814,"responseStart":386.89999997615814,"secureConnectionStart":165.59999990463257},{"duration":222.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":165.69999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":388.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":222.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":165.89999997615814,"connectEnd":165.89999997615814,"connectStart":165.89999997615814,"domainLookupEnd":165.89999997615814,"domainLookupStart":165.89999997615814,"fetchStart":165.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":165.89999997615814,"responseEnd":388.1999999284744,"responseStart":388.1999999284744,"secureConnectionStart":165.89999997615814},{"duration":490.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":171.19999992847443,"connectEnd":171.19999992847443,"connectStart":171.19999992847443,"domainLookupEnd":171.19999992847443,"domainLookupStart":171.19999992847443,"fetchStart":171.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":171.19999992847443,"responseEnd":661.2999999523163,"responseStart":661.2999999523163,"secureConnectionStart":171.19999992847443},{"duration":786.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":171.19999992847443,"connectEnd":171.19999992847443,"connectStart":171.19999992847443,"domainLookupEnd":171.19999992847443,"domainLookupStart":171.19999992847443,"fetchStart":171.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":171.19999992847443,"responseEnd":957.8999999761581,"responseStart":957.8999999761581,"secureConnectionStart":171.19999992847443},{"duration":334,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":551.5,"connectEnd":551.5,"connectStart":551.5,"domainLookupEnd":551.5,"domainLookupStart":551.5,"fetchStart":551.5,"redirectEnd":0,"redirectStart":0,"requestStart":551.5,"responseEnd":885.5,"responseStart":885.5,"secureConnectionStart":551.5}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":45,"responseStart":159,"responseEnd":167,"domLoading":163,"domInteractive":974,"domContentLoadedEventStart":974,"domContentLoadedEventEnd":1010,"domComplete":2094,"loadEventStart":2094,"loadEventEnd":2095,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":960},{"name":"bigPipe.sidebar-id.end","time":960.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":961.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":963.5999999046326},{"name":"activityTabFullyLoaded","time":1017.2999999523163}],"measures":[],"correlationId":"30f0a1ae257bbb","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":67,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}