From nobody@FreeBSD.org  Tue Sep 22 08:44:57 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B01C11065672
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Sep 2009 08:44:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9E3168FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Sep 2009 08:44:57 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8M8ivDn046387
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Sep 2009 08:44:57 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n8M8ivvx046386;
	Tue, 22 Sep 2009 08:44:57 GMT
	(envelope-from nobody)
Message-Id: <200909220844.n8M8ivvx046386@www.freebsd.org>
Date: Tue, 22 Sep 2009 08:44:57 GMT
From: Emil Smolenski <am@raisa.eu.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: BIND with DLZ doesn't reconnect to the MySQL 5.x server after disconnect
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139051
>Category:       ports
>Synopsis:       dns/bind96 - BIND with DLZ doesn't reconnect to the MySQL 5.x server after disconnect
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 22 08:50:03 UTC 2009
>Closed-Date:    Wed Sep 23 17:45:09 UTC 2009
>Last-Modified:  Sun Dec 13 03:30:05 UTC 2009
>Originator:     Emil Smolenski
>Release:        7.2-RELEASE-p3
>Organization:
>Environment:
FreeBSD 7.2-RELEASE-p3 amd64
>Description:
After disconnect BIND with DLZ doesn't reconnect to the MySQL 5.x server.
>How-To-Repeat:
Install dlz/bind96 or other version of BIND from ports with DLZ_MYSQL option. Configure it. Ensure that it uses MySQL 5.x server. Wait for a while.
>Fix:
This problem is known. There is a working patch and full description of the problem at http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/
It is used by Gentoo portage: http://bugs.gentoo.org/180720

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dougb 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Sep 22 21:43:24 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139051 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Wed Sep 23 17:42:00 UTC 2009 
State-Changed-Why:  

I ran the website with the patch past the bind-users list and 
one of the ISC folks responded by saying that reconnect is 
already being set, and that the patch has errors. 

Since I don't use mysql and am not really in a position to 
judge the correctness of the patch I would appreciate it if 
you could follow up on your concerns at bind-users@isc.org. 
I will follow the discussion there and implement whatever 
solution is determined to be correct. 

Doug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139051 

From: "Emil Smolenski" <am@raisa.eu.org>
To: "Doug Barton" <dougb@dougbarton.us>, bug-followup@freebsd.org
Cc:  
Subject: Re: ports/139051: dns/bind96 - BIND with DLZ doesn't reconnect to the
 MySQL 5.x server after disconnect
Date: Sun, 13 Dec 2009 02:07:01 +0100

 On Wed, 23 Sep 2009 19:45:08 +0200, <dougb@freebsd.org> wrote:
 
 > Synopsis: dns/bind96 - BIND with DLZ doesn't reconnect to the MySQL 5.x  
 > server after disconnect
 >
 > State-Changed-From-To: open->closed
 > State-Changed-By: dougb
 > State-Changed-When: Wed Sep 23 17:42:00 UTC 2009
 > State-Changed-Why:
 >
 > I ran the website with the patch past the bind-users list and
 > one of the ISC folks responded by saying that reconnect is
 > already being set, and that the patch has errors.
 
   Yes, but in development versions of BIND. This bug is now fixed in  
 bind-9.6.2b1 and bind-9.7.0rc1. I think we can wait for stable releases  
 with this bug fixed, but I don't know whether earlier versions of BIND  
 (included in ports tree) will be fixed. I think generation of patches  
 should be very easy, something like that:
 
 diff -u bind-9.6.1-P2/contrib/dlz/drivers/dlz_mysql_driver.c \
   bind-9.6.2b1/contrib/dlz/drivers/dlz_mysql_driver.c
 
 (I've tested it -- it works, and this comes from ISC, this is not third  
 party code)
 
 > Since I don't use mysql and am not really in a position to
 > judge the correctness of the patch I would appreciate it if
 > you could follow up on your concerns at bind-users@isc.org.
 > I will follow the discussion there and implement whatever
 > solution is determined to be correct.
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=139051
 
 When You prepare patched ports, I can test whether it works properly or  
 not.
 
 However, if You decide to not patch BIND, I think ports dns/bind9+ should  
 be marked as broken/ignore when DLZ_MYSQL option is selected and installed  
 version of MySQL is something greater than 5.0.
 
 -- 
 am

From: "Emil Smolenski" <am@raisa.eu.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/139051: dns/bind96 - BIND with DLZ doesn't reconnect to the
 MySQL 5.x server after disconnect
Date: Sun, 13 Dec 2009 04:21:59 +0100

 Sorry for that. My example of using d-i-f-f command and the rest of the  
 message was incorrectly recognized as a patch.
 
 
 -- 
 am
>Unformatted:
