Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5AU5-0001BM-Lq for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Jun 2015 10:22:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5AU5-0006d9-5i for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Jun 2015 10:22:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z5AU4-0006d2-85 for pgsql-bugs@postgresql.org; Wed, 17 Jun 2015 10:22:16 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z5AU1-0006bO-2Z for pgsql-bugs@postgresql.org; Wed, 17 Jun 2015 10:22:15 +0000 Received: from msg.df7cb.de (aftr-37-201-226-239.unity-media.net [37.201.226.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3mBMrz51k1z3F0R; Wed, 17 Jun 2015 12:22:11 +0200 (CEST) Date: Wed, 17 Jun 2015 12:22:11 +0200 From: Christoph Berg To: Jeff Frost Cc: Xavier 12 , PostgreSQL Bugs Subject: Re: [GENERAL] pg_xlog on a hot_standby slave filling up Message-ID: <20150617102211.GA17481@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Jeff Frost , Xavier 12 , PostgreSQL Bugs References: <20150616183556.GA9823@msg.df7cb.de> <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.7 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Re: Jeff Frost 2015-06-16 <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com> > I’ve seen this before, but haven’t been able to make a reproducible test case yet. > > Are you by chance using SSL to talk to the primary server? Is the ssl_renegotiation_limit the default of 512MB? 32 WAL files at 16MB each = 512MB. I found that it would always leave the WAL file from before the invalid record length message. Does that seem to be the case for you as well? Yes, SSL, with default settings. I can confirm your wal-file-from-before analysis: Jun 16 07:14:59 synthesis postgres[32525]: [8-1] 2015-06-16 07:14:59 GMT LOG: unexpected pageaddr 33/39000000 in log segment 000000010000003300000040, offset 0 Jun 16 07:15:00 synthesis postgres[11514]: [3-1] 2015-06-16 07:15:00 GMT LOG: started streaming WAL from primary at 33/40000000 on timeline 1 -rw------- 1 postgres postgres 16777216 Jun 16 09:14 00000001000000330000003F Jun 16 17:55:01 synthesis postgres[32525]: [9-1] 2015-06-16 17:55:01 GMT LOG: unexpected pageaddr 33/5A000000 in log segment 000000010000003300000060, offset 0 Jun 16 17:55:02 synthesis postgres[24337]: [3-1] 2015-06-16 17:55:02 GMT LOG: started streaming WAL from primary at 33/60000000 on timeline 1 -rw------- 1 postgres postgres 16777216 Jun 16 19:55 00000001000000330000005F Jun 17 04:35:02 synthesis postgres[24337]: [4-1] 2015-06-17 04:35:02 GMT FATAL: could not send data to WAL stream: server closed the connection unexpectedly Jun 17 04:35:02 synthesis postgres[24337]: [4-2] This probably means the server terminated abnormally Jun 17 04:35:02 synthesis postgres[24337]: [4-3] before or while processing the request. Jun 17 04:35:02 synthesis postgres[24337]: [4-4] Jun 17 04:35:04 synthesis postgres[32525]: [10-1] 2015-06-17 04:35:04 GMT LOG: unexpected pageaddr 33/7B000000 in log segment 000000010000003300000080, offset 0 Jun 17 04:35:05 synthesis postgres[4756]: [5-1] 2015-06-17 04:35:05 GMT LOG: started streaming WAL from primary at 33/80000000 on timeline 1 -rw------- 1 postgres postgres 16777216 Jun 17 06:35 00000001000000330000007F There's a 1:1 correspondence with log and leaked files. Christoph -- cb@df7cb.de | http://www.df7cb.de/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs