maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #05998
Re: Problem with InnoDB: Semaphore wait after upgrading to 10.3.27
-
To:
Gordan Bobic <gordan.bobic@xxxxxxxxx>
-
From:
Conor Murphy <conor_mark_murphy@xxxxxxxxxxx>
-
Date:
Tue, 16 Mar 2021 14:10:58 +0000
-
Accept-language:
en-IE, en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cgr/DAREpXSfF4gvOI+XKRZTgV9uLLPbrtZrVdoiM8g=; b=XiAxMojleTZB5Ma8wV9qqNYqIyPwi1xgk2DemwFTgkh7GKRk0fDnMebgocmrZXLTva17jbniUMt5TovZai8L0Tx9ZNc4f3pnNB31Sgaldwk6rtKKZ6CCTo8aUoGE8iLlL1G+b4fjENLBam7+S5P+RUDx5i1Q9HmvmyRuFywqbOp+DJUm6Aa90EOXsSEN0lGUNhsuiUzFRsphzpyb7vmUCz1DAFod/srbWGOe0A1J+ZvfNieDAVeBwGMtWypz6SZqVDzUvqXXhbYLdUF6/GSYlVr21yj+b1M/bc+oA+GouOTcKilubkA1Qv6QMKrwLUO0yu9vOmLyAwHXnTorQOmE1g==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QYUE0qHYPJeci3TzLjid0zCpSwcWJgv2ryHYhv+/SI8MiosLeAQREIhf5NFJTjaU8W3ALyxeoZlaRFFn12wO1G4Wqe3+eWtCFzf+lr5QKeGijuAWIQPIzK1/a0U+sO+Jwd8us7OMpg8Y6STORoUVgOT44sIxH3/5INBQv+O1mZeQiywUSMs8cfqyJun1QrUxTeMLe7L89/Gx/t1GOVu8LFbijJd/ya9TeFtmLRt70QR0nAwSGbHepgURTw38ADNlrtizirp0v0pnzj7vij5NKml9Z0L0RfR5UNe3nV1OAXcWMdpogH0iQBzDLFMMixzjZafnnbEYjs388zfm7tp7Aw==
-
Cc:
"maria-discuss@xxxxxxxxxxxxxxxxxxx" <maria-discuss@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<CAMx4oe1Mgc5M9Nsi8fvefEk4Zm7zppo6zDDW+yr2Kduu5son-A@mail.gmail.com>
-
Thread-index:
AQHXGmsGUul9p7yyW0a/9UFyTcI2dqqGplwAgAAAkD4=
-
Thread-topic:
[Maria-discuss] Problem with InnoDB: Semaphore wait after upgrading to 10.3.27
Hi,
I had seen some discussions about this and tried setting
innodb_adaptive_hash_index = OFF
But it didn't resolve the problem.
/Conor
________________________________
From: Gordan Bobic <gordan.bobic@xxxxxxxxx>
Sent: Tuesday 16 March 2021 14:06
To: Conor Murphy <conor_mark_murphy@xxxxxxxxxxx>
Cc: maria-discuss@xxxxxxxxxxxxxxxxxxx <maria-discuss@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Maria-discuss] Problem with InnoDB: Semaphore wait after upgrading to 10.3.27
Just a hunch, but have you tried disabling AHI?
innodb_adaptive_hash_index = 0
I vaguely remember having a similar problem a while back and it was AHI related.
I hit a number of spurious locking issues in 10.4.17 that seem to have been resolved in 10.4.18. It is plausible that some of them also affected the 10.3 branch and were similarly resolved recently. Some of them manifested similarly until I mitigated them by setting the lock_wait_timeout to 30 on the basis that it was better for a query to give up and be retried than to be blocking things for longer. I haven't seen it come up since the 10.4.18 upgrade. 10.4.18 change log has quite a few fixes for various locking issues.
On Tue, Mar 16, 2021 at 1:58 PM Conor Murphy <conor_mark_murphy@xxxxxxxxxxx<mailto:conor_mark_murphy@xxxxxxxxxxx>> wrote:
Hi,
We have a handful of servers running MariaDB 10.3. We noticed issues on two of them where we were getting issues like "InnoDB: A long semaphore wait:--Thread 140602802394880 has waited at dict0stats.cc line 1969 for 241.00 seconds the semaphore:" and crashes like "ERROR] [FATAL] InnoDB: Semaphore wait has lasted > 600 seconds. We intentionally crash the server because it appears to be hung.210215 7:14:24 [ERROR] mysqld got signal 6 ;"
Turned out that these two servers were running 10.3.27 whereas the others were running 10.3.17. After downgrading the two problem servers to 10.3.17, all the issues with InnoDB semaphores stopped.
Any ideas on how to track down what change between 10.3.17 to 10.3.27 might be causing this problem?
Thanks,
Conor
_______________________________________________
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@xxxxxxxxxxxxxxxxxxx<mailto:maria-discuss@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~maria-discuss
More help : https://help.launchpad.net/ListHelp
Follow ups
References