<div dir="ltr">So in prep for upgrading from 2.1 to 2.2 this weekend, I upgraded my server&#39;s OS from FreeBSD 9.1 to 9.2 (a fairly minor update, as OS updates go).<br><br>Since the upgrade, the slon connected to the replica DB on that upgraded server will stop after just about 58 to 59 minutes. Restarting the slon daemon allows the replication to continue and fairly quickly catch up.<br>
<br>By &quot;stop&quot; I mean there is nothing visibly going on -- replication stalls and nothing is logged.<br><br>Here is the tail end of my log file from a few minutes ago. The slon process was started at 8:48am.<br><br>
2014-03-14 09:46:43.744319500 DEBUG1 calc sync size - last time: 1 last length: 2002 ideal: 29 proposed size: 3<br>2014-03-14 09:46:43.745342500 DEBUG1 about to monitor_subscriber_query - pulling big actionid list for 4<br>
2014-03-14 09:46:43.749657500 INFO   remoteWorkerThread_4: syncing set 1 with 262 table(s) from provider 4<br>2014-03-14 09:46:43.762199500 DEBUG1 remoteHelperThread_4_4: 0.012 seconds delay for first row<br>2014-03-14 09:46:43.766863500 DEBUG1 remoteHelperThread_4_4: 0.016 seconds until close cursor<br>
2014-03-14 09:46:43.766867500 DEBUG1 remoteHelperThread_4_4: inserts=266 updates=350 deletes=176 truncates=0<br>2014-03-14 09:46:43.766869500 DEBUG1 remoteWorkerThread_4: sync_helper timing:  pqexec (s/count)- provider 0.014/5 - subscriber 0.000/5<br>
2014-03-14 09:46:43.766872500 DEBUG1 remoteWorkerThread_4: sync_helper timing:  large tuples 0.000/0<br>2014-03-14 09:46:44.006795500 INFO   remoteWorkerThread_4: SYNC 5015580475 done in 0.262 seconds<br>2014-03-14 09:46:44.006853500 DEBUG1 remoteWorkerThread_4: SYNC 5015580475 sync_event timing:  pqexec (s/count)- provider 0.001/2 - subscriber 0.005/2 - IUD 0.242/164<br>
<br><br>at this point nothing more gets logged.<br><br>Looking at the activity in the DB, I see the 5 connections from this slon, with all but one having a query start time of 09:46:44. This is the query that was running for over 10 minutes:<br>
<br>datid            | 16392<br>datname          | vkmlm<br>pid              | 7159<br>usesysid         | 16389<br>usename          | slony<br>application_name | slon.local_cleanup<br>client_addr      | 127.0.0.1<br>client_hostname  |<br>
client_port      | 55142<br>backend_start    | 2014-03-14 08:48:16.198806-04<br>xact_start       |<br>query_start      | 2014-03-14 09:34:32.735557-04<br>state_change     | 2014-03-14 09:34:32.745553-04<br>waiting          | f<br>
state            | idle<br>query            | begin;lock table &quot;_mailermailer&quot;.sl_config_lock;select &quot;_mailermailer&quot;.cleanupEvent(&#39;10 minutes&#39;::interval);commit;<br><br>pg_cancel_backend() will not kill that query. I did a pg_terminate_backend() and it got rid of that process, but the rest are still seemingly stuck and nothing is logging from slon.<br>
<br>Any ideas? This is so confusing because it is such an odd time interval before it locks up. What&#39;s magical about 58 minutes?<br><br><div><br></div><div>OS: FreeBSD 9.2/amd64</div><div>Slony1: 2.1.3</div><div>Postgres: 9.2.7</div>
</div>