From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 2/4] Database locking: Perl: Increase retry count Date: Tue, 15 Dec 2015 16:26:24 +0000 Message-ID: <1450196786-27361-2-git-send-email-ian.jackson@eu.citrix.com> References: <1450196786-27361-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a8sR5-0001XB-94 for xen-devel@lists.xenproject.org; Tue, 15 Dec 2015 16:26:47 +0000 In-Reply-To: <1450196786-27361-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org It seems to me that this deadlock might actually become fairly common in some setups. There is little harm in trying it for 100s rather than 20s, and there maybe some benefit. Signed-off-by: Ian Jackson --- Osstest.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest.pm b/Osstest.pm index a39ae42..c77d960 100644 --- a/Osstest.pm +++ b/Osstest.pm @@ -282,7 +282,7 @@ sub db_retry ($$$;$$) { my ($pre,$body) = (ref $code eq 'ARRAY') ? @$code : (sub { }, $code); - my $retries= 20; + my $retries= 100; my $r; local $db_retry_stop; for (;;) { -- 1.7.10.4