From owner-freebsd-fs@FreeBSD.ORG Thu Apr 29 15:45:33 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91810106566C for ; Thu, 29 Apr 2010 15:45:33 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id D760F8FC12 for ; Thu, 29 Apr 2010 15:45:32 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C73B145CD9; Thu, 29 Apr 2010 17:45:30 +0200 (CEST) Received: from localhost (pdawidek.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 0BA4B45CA0; Thu, 29 Apr 2010 17:45:26 +0200 (CEST) Date: Thu, 29 Apr 2010 17:45:23 +0200 From: Pawel Jakub Dawidek To: Mikolaj Golub Message-ID: <20100429154523.GH1697@garage.freebsd.pl> References: <86r5m9dvqf.fsf@zhuzha.ua1> <20100423062950.GD1670@garage.freebsd.pl> <86k4rye33e.fsf@zhuzha.ua1> <20100424073031.GD3067@garage.freebsd.pl> <868w8dgk4e.fsf@kopusha.onet> <86tyqzeq84.fsf@kopusha.onet> <20100428214636.GD1677@garage.freebsd.pl> <86mxwmk7my.fsf@zhuzha.ua1> <20100429081200.GB1697@garage.freebsd.pl> <86iq7ajyek.fsf@zhuzha.ua1> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dwWFXG4JqVa0wfCP" Content-Disposition: inline In-Reply-To: <86iq7ajyek.fsf@zhuzha.ua1> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs Subject: Re: HAST: primary might get stuck when there are connectivity problems with secondary X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2010 15:45:33 -0000 --dwWFXG4JqVa0wfCP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 29, 2010 at 02:22:59PM +0300, Mikolaj Golub wrote: > On Thu, 29 Apr 2010 10:12:00 +0200 Pawel Jakub Dawidek wrote: > PJD> Good. And I assume you don't observe problems on secondary? Eg. rec= v(2) > PJD> on secondary doesn't timeout? >=20 > No problems on secondary. When emulating a network outage, after connecti= vity > restoring the worker is restarted when new connections comes from primary: >=20 > Apr 29 14:12:39 hastb hastd: Accepting connection to tcp4://0.0.0.0:8457. > Apr 29 14:12:39 hastb hastd: Connection from tcp4://172.20.66.202:8457 to= tcp4://172.20.66.201:44508. > Apr 29 14:12:39 hastb hastd: tcp4://172.20.66.201:44508: resource=3Dtank > Apr 29 14:12:39 hastb hastd: [tank] (secondary) Initial connection from t= cp4://172.20.66.201:44508. > Apr 29 14:12:39 hastb hastd: [tank] (secondary) Worker process exists (pi= d=3D1729), stopping it. > Apr 29 14:12:39 hastb hastd: [tank] (secondary) Worker process (pid=3D172= 9) exited gracefully. > Apr 29 14:12:39 hastb hastd: [tank] (secondary) Incoming connection from = tcp4://172.20.66.201:44508 configured. >=20 > If the FS is idle (there is no I/O) secondary is waiting in receive, does= not > timeout and does not stop workers (as it was with my timeout patch). Thanks for reporting and testing. I committed the patch to HEAD. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --dwWFXG4JqVa0wfCP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvZqZIACgkQForvXbEpPzThlQCeNyMDteysX00LN9CbtkMWdeTL 0uQAn3mem/elULuaQSuU0RZw0ZI4P3As =FCrh -----END PGP SIGNATURE----- --dwWFXG4JqVa0wfCP--