ERROR 4183 (HY000): Failed to parse histogram: Root JSON element must be a JSON object at offset 0.
The original test didn't insert UNHEX-ed values. I didn't investigate how exactly the symbol ended up in the table, most likely through value truncation in non-strict mode, as we have seen before.
Between the invalid value in the column and the meaningless histogram size, I consider it as much a corner case as it gets. It is still worth investigation though, at least to make sure it is really only limited to histogram size 1.
Debugging, I see the problem: Histogram collection code neglects to handle the case where the last value in the table (the end of the last bucket) cannot be converted from its own charset into utf8mb4.
Sergei Petrunia
added a comment - Debugging, I see the problem: Histogram collection code neglects to handle the case where the last value in the table (the end of the last bucket) cannot be converted from its own charset into utf8mb4.
People
Sergei Petrunia
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1384.3000001907349,"ttfb":328.80000019073486,"pageVisibility":"visible","entityId":104301,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"30e874c3-7dd5-4f67-811e-5da3a382ca9b","navigationType":0,"readyForUser":1474,"redirectCount":0,"resourceLoadedEnd":1814.9000000953674,"resourceLoadedStart":362,"resourceTiming":[{"duration":448.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":362,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":362,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":810.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":449.19999980926514,"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":362.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":362.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":811.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":458.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":363,"connectEnd":363,"connectStart":363,"domainLookupEnd":363,"domainLookupStart":363,"fetchStart":363,"redirectEnd":0,"redirectStart":0,"requestStart":363,"responseEnd":821.0999999046326,"responseStart":821.0999999046326,"secureConnectionStart":363},{"duration":518.5,"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":363.2000002861023,"connectEnd":363.2000002861023,"connectStart":363.2000002861023,"domainLookupEnd":363.2000002861023,"domainLookupStart":363.2000002861023,"fetchStart":363.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":363.2000002861023,"responseEnd":881.7000002861023,"responseStart":881.5999999046326,"secureConnectionStart":363.2000002861023},{"duration":522.5,"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":363.5,"connectEnd":363.5,"connectStart":363.5,"domainLookupEnd":363.5,"domainLookupStart":363.5,"fetchStart":363.5,"redirectEnd":0,"redirectStart":0,"requestStart":363.5,"responseEnd":886,"responseStart":886,"secureConnectionStart":363.5},{"duration":522.6999998092651,"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":363.7000002861023,"connectEnd":363.7000002861023,"connectStart":363.7000002861023,"domainLookupEnd":363.7000002861023,"domainLookupStart":363.7000002861023,"fetchStart":363.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":363.7000002861023,"responseEnd":886.4000000953674,"responseStart":886.4000000953674,"secureConnectionStart":363.7000002861023},{"duration":522.9000000953674,"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":363.90000009536743,"connectEnd":363.90000009536743,"connectStart":363.90000009536743,"domainLookupEnd":363.90000009536743,"domainLookupStart":363.90000009536743,"fetchStart":363.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":363.90000009536743,"responseEnd":886.8000001907349,"responseStart":886.8000001907349,"secureConnectionStart":363.90000009536743},{"duration":605.7000002861023,"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":364.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":364.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":969.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":522.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":364.30000019073486,"connectEnd":364.30000019073486,"connectStart":364.30000019073486,"domainLookupEnd":364.30000019073486,"domainLookupStart":364.30000019073486,"fetchStart":364.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":364.30000019073486,"responseEnd":887.2000002861023,"responseStart":887.2000002861023,"secureConnectionStart":364.30000019073486},{"duration":605.6999998092651,"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":364.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":364.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":970.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":523.3000001907349,"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":364.59999990463257,"connectEnd":364.59999990463257,"connectStart":364.59999990463257,"domainLookupEnd":364.59999990463257,"domainLookupStart":364.59999990463257,"fetchStart":364.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":364.59999990463257,"responseEnd":887.9000000953674,"responseStart":887.9000000953674,"secureConnectionStart":364.59999990463257},{"duration":720.5,"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":365.5,"connectEnd":365.5,"connectStart":365.5,"domainLookupEnd":365.5,"domainLookupStart":365.5,"fetchStart":365.5,"redirectEnd":0,"redirectStart":0,"requestStart":365.5,"responseEnd":1086,"responseStart":1086,"secureConnectionStart":365.5},{"duration":1448.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":365.5,"connectEnd":365.5,"connectStart":365.5,"domainLookupEnd":365.5,"domainLookupStart":365.5,"fetchStart":365.5,"redirectEnd":0,"redirectStart":0,"requestStart":365.5,"responseEnd":1813.9000000953674,"responseStart":1813.9000000953674,"secureConnectionStart":365.5},{"duration":236.2000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1010,"connectEnd":1010,"connectStart":1010,"domainLookupEnd":1010,"domainLookupStart":1010,"fetchStart":1010,"redirectEnd":0,"redirectStart":0,"requestStart":1010,"responseEnd":1246.2000002861023,"responseStart":1246.2000002861023,"secureConnectionStart":1010},{"duration":489.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true&whisper-enabled=true","startTime":1325.4000000953674,"connectEnd":1325.4000000953674,"connectStart":1325.4000000953674,"domainLookupEnd":1325.4000000953674,"domainLookupStart":1325.4000000953674,"fetchStart":1325.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1325.4000000953674,"responseEnd":1814.9000000953674,"responseStart":1814.9000000953674,"secureConnectionStart":1325.4000000953674},{"duration":444.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1376.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1376.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1821.3000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":169,"responseStart":329,"responseEnd":346,"domLoading":333,"domInteractive":1922,"domContentLoadedEventStart":1922,"domContentLoadedEventEnd":1966,"domComplete":2775,"loadEventStart":2775,"loadEventEnd":2776,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1900.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1901.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1901.7000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1902.5},{"name":"activityTabFullyLoaded","time":1978.5999999046326}],"measures":[],"correlationId":"89abb3f5ebddf7","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Debugging, I see the problem: Histogram collection code neglects to handle the case where the last value in the table (the end of the last bucket) cannot be converted from its own charset into utf8mb4.