From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sqlite3 Date: Sat, 18 Dec 2021 11:46:55 +0200 Message-ID: <83sfuqb5yo.fsf@gnu.org> References: <87tufmjyai.fsf@gnus.org> <87mtl13vz2.fsf@gnus.org> <87ilvp3tzo.fsf@gnus.org> <83wnk5gduf.fsf@gnu.org> <87r1ab1y0r.fsf@gnus.org> <83sfurejs6.fsf@gnu.org> <871r2b1vu8.fsf@gnus.org> <83o85feitv.fsf@gnu.org> <87lf0jzifm.fsf@gnus.org> <83a6gze705.fsf@gnu.org> <87k0g2xsu9.fsf@gnus.org> <871r2axqp4.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28956"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 18 10:48:05 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1myWJw-0007L4-SC for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Dec 2021 10:48:05 +0100 Original-Received: from localhost ([::1]:49862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myWJv-0006W3-Lc for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Dec 2021 04:48:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myWJ2-000589-9Z for emacs-devel@gnu.org; Sat, 18 Dec 2021 04:47:08 -0500 Original-Received: from [2001:470:142:3::e] (port=45992 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myWJ1-0007pZ-Tx; Sat, 18 Dec 2021 04:47:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5dRv+ZqTny/KVf2qf1yEDxYyOgWxOsYb8Is0f7+38gk=; b=b4uqi5QhwPIy J+BTRoN3xKnNhPnNTqP32N4ZpnAfcDDBPaHHtID7u94aVRO0aqkClP8v1vtKqoKNlQooJNiMFPurW YuK3LFJILIrq/Wb1aI8r12DJrPGUx/34w9b9D3WUBxQM8sp9GOAIc3nyAWG5LJ2ORgwo6JypPYulE rVcYr47DV5nm/Bj926qzA7EE+nzCSmyFLl/a4aLfprLD+ZO294ieF6Pqno6rS97+q1NjtUjHOvMvO B3fFsZzoe4WIEfyOHkvwopiKy9oqnXO5zCjvCKf6Y1MZhI689dMWFQzPNNRYkj63TsK5dw5ybjMkk BcSTIcA32EaGCxUkF63/6Q==; Original-Received: from [87.69.77.57] (port=3333 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myWJ1-0005im-Eo; Sat, 18 Dec 2021 04:47:07 -0500 In-Reply-To: <871r2axqp4.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 18 Dec 2021 09:28:07 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282274 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Sat, 18 Dec 2021 09:28:07 +0100 > > Lars Ingebrigtsen writes: > > > Right. I'll do some further testing, but the real fix is to add some > > backoff logic when the file is locked, which I'll do now. (And in that > > case, I think the `fsync' should be unnecessary.) > > Now done, but since I'm no longer seeing the errors, I can't test > whether this fixes the issue, so can you check? It still fails from time to time here. I have an SSD disk, maybe that's a factor, somehow. > Also -- it would be better to catch just the "Permission denied" error > instead of all file errors in the `condition-case' -- but I guess we > don't signal a more specific error for that? Yes, we do: write-region calls report_file_errno, which includes the specific error in the error data.