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`.
поделитесь пожалуйста полным стэктрейсом исключения.
Кроме того, вы перестартовали сервер перед тем как получить эти исключения.