Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKUII-0005gi-0w for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Mar 2014 14:56:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WKUIH-0004uJ-G1 for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Mar 2014 14:56:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKSNh-00033e-Ee for pgsql-bugs@postgresql.org; Mon, 03 Mar 2014 12:54:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKSNe-0006mo-PB for pgsql-bugs@postgresql.org; Mon, 03 Mar 2014 12:54:05 +0000 MIME-Version: 1.0 Subject: BUG #9420: WAL-Sender repeatedly killed To: pgsql-bugs@postgresql.org From: proels@web.de Date: Mon, 03 Mar 2014 12:53:42 +0000 Message-ID: <20140303125342.2159.79464@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 The following bug has been logged on the website: Bug reference: 9420 Logged by: Stefan Pröls Email address: proels@web.de PostgreSQL version: 9.2.7 Operating system: opensuse 11.4 Description: I'm unsure whether this is really a bug, but at least the log messages don't look like expected behavior. We are running async. streaming replication between 2 PostgreSQL 9.2.7 servers. Last night the slave failed to reboot nicely because of a filesystem inconsistency which required remote hands. So there was a delay of about 30 hours until the slave was up an running again. Thus, it had to catch up quite some replication delay. It did succeed doing so -- however, according to the log messages the WAL sender process was killed several times during this period. From the master's log: 2014-03-03 13:02:30 CET [unbekannt] standby LOG: breche WAL-Sender-Prozess ab wegen Zeitüberschreitung bei der Replikation 2014-03-03 13:05:08 CET [unbekannt] standby LOG: breche WAL-Sender-Prozess ab wegen Zeitüberschreitung bei der Replikation [several more times] From the slave's log: 2014-03-03 12:47:18 CET FATAL: konnte keine Daten an den WAL-Stream senden: Server beendete die Verbindung unerwartet Das heißt wahrscheinlich, dass der Server abnormal beendete bevor oder während die Anweisung bearbeitet wurde. 2014-03-03 13:00:34 CET LOG: ungültige magische Zahl 0000 in Logdatei 17, Segment 111, Offset 3538944 2014-03-03 13:00:35 CET LOG: Streaming-Replikation hat erfolgreich mit primärem Server verbunden 2014-03-03 13:03:07 CET FATAL: konnte keine Daten an den WAL-Stream senden: Server beendete die Verbindung unerwartet Das heißt wahrscheinlich, dass der Server abnormal beendete bevor oder während die Anweisung bearbeitet wurde. 2014-03-03 13:04:04 CET LOG: ungültige magische Zahl 0000 in Logdatei 17, Segment 185, Offset 5111808 2014-03-03 13:04:04 CET LOG: Streaming-Replikation hat erfolgreich mit primärem Server verbunden [also repeated serverali more times] It appears the slave had trouble keeping up with the amount of data sent by the master and, therefore, the wal-sender was repeatedly killed until the slave finally catched up. I don't know where the "invalid magic number 0000" comes from, though. Note that the master has much faster disks (SSDs) than the slave (SATA-HDDs), so some congestion on the master is likely to arise when the master streams out more data than the slave can keep up with. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs