Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duLgE-0001qD-Kg for pgsql-committers@arkaria.postgresql.org; Tue, 19 Sep 2017 16:47:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1duLgD-0004C0-Iu for pgsql-committers@arkaria.postgresql.org; Tue, 19 Sep 2017 16:47:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1duLgC-00047N-IS for pgsql-committers@postgresql.org; Tue, 19 Sep 2017 16:47:24 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1duLg9-0002jW-FN for pgsql-committers@postgresql.org; Tue, 19 Sep 2017 16:47:24 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D6FB621BFC; Tue, 19 Sep 2017 12:47:19 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 19 Sep 2017 12:47:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=CKAM8G4qhfUvdIC9yS eyNV3HPS84cdOsxDWdHyo7Wws=; b=YIrTJos1yv/9qsOD9QZ1BjWVjkIsK2oYa6 wJ1oYQloMsct5j9mB1zCTTP13jCzlFh2nRDrUQkJapypsH4cbs5NwagzMTKApPkC Sn8GQuK7TKC/FZafHouQnf/fUbZAFRpU7sutYe3Tox8OCe5BYV+tM5jo9gxoE4+e GhQ1ec/IeXfw4gxxn6QdxraslDbGqmfesUhhu8ZVTo8aSaEgM1DOYQPMHi81Ib8+ /LLDVhcDpXQS6YT34jTytFagydDQegR9K93XuRk0IGry9RvjDeqy7egrlkNi7WlY H6HXggZx+re1wykcMb7VtHXEkXF3y7PvvKOiESfcYNnTKw4zsh8A== X-ME-Sender: X-Sasl-enc: EScncdeNHsLs1NXVehUvpbU3YmSr95qt+gLzrxz+IT6e 1505839639 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 8C0237FA6B; Tue, 19 Sep 2017 12:47:19 -0400 (EDT) Date: Tue, 19 Sep 2017 09:47:18 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add test for postmaster crash restarts. Message-ID: <20170919164718.66hcedq2rtlkntvf@alap3.anarazel.de> References: <5250.1505793335@sss.pgh.pa.us> <8818AEBD-57F7-420D-8348-CDB426020BFE@anarazel.de> <17084.1505837634@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17084.1505837634@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Hi, On 2017-09-19 12:13:54 -0400, Tom Lane wrote: > IOW, the "$monitor" instance of psql did not complete making its > connection until after the crash/restart cycle had occurred. That'd be easy enough to fix... Just something like $monitor_stdin .= q[ SELECT $$am-i-up$$; ]; $monitor->pump until $monitor_stdout =~ /am-i-up/; $monitor_stdout = ''; > So we're just sitting there waiting for a crash report that won't > come. Which is another very serious deficiency in this test: > lacking any sort of timeout, it will just freeze indefinitely > if anything doesn't happen exactly the way it expects. From a > buildfarm owner's standpoint, that's pretty damn unfriendly. > It means having to manually unwedge your animals from time to time. Note that I just copied the code for that from another test - this is isn't unique to this test. I agree that it'd be good to add a timeout to those pump calls. > I'd like to ask you to revert this test, at least pending making > it a whole lot more bulletproof. Hm. Ok. That seems like an overreaction to me - the failure rate isn't actualy that high so far. I'm happy to add both timeouts and "earlier startup" of the $monitor, but I'd prefer to do so in-tree - I'd run the test through 100+ iterations locally, without any of this showing up. > We don't really need crash recovery testing in the buildfarm IMO --- > we hackers crash the system plenty often enough to notice problems > there. I for one don't exercise that kind of crash restarts, my development scripts all work with restart_after_crash = false. What I find more concerning however is coverage of EXEC_BACKEND, which has far fewer developers actively running it constantly. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers