После установки mariaDB 10.2.15 начала появляться ошибка:
MySql.Data.MySqlClient.MySqlException: Out of sync with server
Если сразу после ошибки дать повторный запрос - ошибки не будет. В интете не нашел ничего похожего на мой случай. Скрипты разные.
Ошибка не зависит от нагрузки (количества соединений). Она проявляется и ночью, когда нагрузка минимальная, и днем.
Допускаю, что ошибка не связана с версией, но, вроде, других изменений, которые могли привести к данной ошибке не было.
{"report":{"fcp":1436.4000005722046,"ttfb":229.10000038146973,"pageVisibility":"visible","entityId":67769,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"777f36cb-c620-4697-a9e0-ae482179aa88","navigationType":0,"readyForUser":1543.4000005722046,"redirectCount":0,"resourceLoadedEnd":1634.1999998092651,"resourceLoadedStart":233.9000005722046,"resourceTiming":[{"duration":549.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":233.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":233.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":783.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":550.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":234.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":234.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":784.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":566.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":234.30000019073486,"connectEnd":234.30000019073486,"connectStart":234.30000019073486,"domainLookupEnd":234.30000019073486,"domainLookupStart":234.30000019073486,"fetchStart":234.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":234.30000019073486,"responseEnd":800.4000005722046,"responseStart":800.4000005722046,"secureConnectionStart":234.30000019073486},{"duration":694.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":234.5,"connectEnd":234.5,"connectStart":234.5,"domainLookupEnd":234.5,"domainLookupStart":234.5,"fetchStart":234.5,"redirectEnd":0,"redirectStart":0,"requestStart":234.5,"responseEnd":929.1999998092651,"responseStart":929.1999998092651,"secureConnectionStart":234.5},{"duration":699,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":234.60000038146973,"connectEnd":234.60000038146973,"connectStart":234.60000038146973,"domainLookupEnd":234.60000038146973,"domainLookupStart":234.60000038146973,"fetchStart":234.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":234.60000038146973,"responseEnd":933.6000003814697,"responseStart":933.6000003814697,"secureConnectionStart":234.60000038146973},{"duration":699.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":234.80000019073486,"connectEnd":234.80000019073486,"connectStart":234.80000019073486,"domainLookupEnd":234.80000019073486,"domainLookupStart":234.80000019073486,"fetchStart":234.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":234.80000019073486,"responseEnd":934,"responseStart":934,"secureConnectionStart":234.80000019073486},{"duration":695.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":239.69999980926514,"connectEnd":239.69999980926514,"connectStart":239.69999980926514,"domainLookupEnd":239.69999980926514,"domainLookupStart":239.69999980926514,"fetchStart":239.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":239.69999980926514,"responseEnd":935.1000003814697,"responseStart":935.1000003814697,"secureConnectionStart":239.69999980926514},{"duration":717.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":240,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":240,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":957.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":697.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":240.10000038146973,"connectEnd":240.10000038146973,"connectStart":240.10000038146973,"domainLookupEnd":240.10000038146973,"domainLookupStart":240.10000038146973,"fetchStart":240.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":240.10000038146973,"responseEnd":937.1999998092651,"responseStart":937.1000003814697,"secureConnectionStart":240.10000038146973},{"duration":717.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":240.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":240.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":957.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":698.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":240.4000005722046,"connectEnd":240.4000005722046,"connectStart":240.4000005722046,"domainLookupEnd":240.4000005722046,"domainLookupStart":240.4000005722046,"fetchStart":240.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":240.4000005722046,"responseEnd":938.6000003814697,"responseStart":938.6000003814697,"secureConnectionStart":240.4000005722046},{"duration":1026.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":241.5,"connectEnd":241.5,"connectStart":241.5,"domainLookupEnd":241.5,"domainLookupStart":241.5,"fetchStart":241.5,"redirectEnd":0,"redirectStart":0,"requestStart":241.5,"responseEnd":1268,"responseStart":1268,"secureConnectionStart":241.5},{"duration":1220.2000007629395,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":241.69999980926514,"connectEnd":241.69999980926514,"connectStart":241.69999980926514,"domainLookupEnd":241.69999980926514,"domainLookupStart":241.69999980926514,"fetchStart":241.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":241.69999980926514,"responseEnd":1461.9000005722046,"responseStart":1461.9000005722046,"secureConnectionStart":241.69999980926514},{"duration":278,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":990.4000005722046,"connectEnd":990.4000005722046,"connectStart":990.4000005722046,"domainLookupEnd":990.4000005722046,"domainLookupStart":990.4000005722046,"fetchStart":990.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":990.4000005722046,"responseEnd":1268.4000005722046,"responseStart":1268.4000005722046,"secureConnectionStart":990.4000005722046},{"duration":308,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1326.1999998092651,"connectEnd":1326.1999998092651,"connectStart":1326.1999998092651,"domainLookupEnd":1326.1999998092651,"domainLookupStart":1326.1999998092651,"fetchStart":1326.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1326.1999998092651,"responseEnd":1634.1999998092651,"responseStart":1634.1999998092651,"secureConnectionStart":1326.1999998092651},{"duration":287.19999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1427.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1427.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1714.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":50,"responseStart":229,"responseEnd":239,"domLoading":232,"domInteractive":1662,"domContentLoadedEventStart":1662,"domContentLoadedEventEnd":1707,"domComplete":2257,"loadEventStart":2257,"loadEventEnd":2258,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1617.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1621.4000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":1621.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1623.3000001907349},{"name":"activityTabFullyLoaded","time":1739.9000005722046}],"measures":[],"correlationId":"ebcb917ac3dc0d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thank you for all work.
I want to do it. yes.
the problem is that the problem is not deterministic. on the same code it failed about 1/1000~ of the runs, so for repeat it I running a loop until it throwing the error.
the strage thing: I was saw the errors on my production (3 diffrent machines) but non on my development system.
I was upgraded the server to 10.4.10 some months ago, and after this upgrade (before it was 10.3.8) I see less error messages.
btw, I was saw a "better" error rate on this query, on a simple loop:
{{
/*CREATE TABLE `sites_addresses` (
`sa_id` int(11) NOT NULL AUTO_INCREMENT,
`sa_site` int(11) NOT NULL,
`sa_address` int(11) NOT NULL,
`sa_visible` tinyint(1) NOT NULL DEFAULT 1,
PRIMARY KEY (`sa_id`),
UNIQUE KEY `site_address` (`sa_site`,`sa_address`),
KEY `sad_visible` (`sa_visible`,`sa_id`,`sa_site`,`sa_address`),
KEY `filter_visible` (`sa_address`,`sa_site`,`sa_visible`)
) ENGINE=InnoDB AUTO_INCREMENT=897110 DEFAULT CHARSET=utf8mb4;
*/
string sql = @"
insert into sites_addresses set sa_site=1218006, sa_visible=1, sa_address=66968 on duplicate key update sa_site=1218006, sa_visible=1, sa_address=66968; select sa_id from sites_addresses where sa_address=66968 and sa_site=1218006";
}}
the specific error message is diffrent:
`Packet received out-of-order. Expected 1; got 115., /Company/PostSite`
on the old testcase it was `got 84`.