<div dir="ltr"><div>In my application, I see an error: </div><div><br></div><div><span style="background-color:rgb(204,204,204)"><font size="1">Caused by: org.postgresql.util.PSQLException: FATAL: failed to create a backend connection<br>  Detail: executing failover on backend<br>     at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:514)<br>      at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:141)<br>    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192)</font></span><br></div><div><br></div><div>Is there a configuration I can use to make the connection wait for the failover to complete?<br></div><div>Also, I can see that the failover was not indeed a failover, i.e the failover would eventually </div><div>be skipped since it is not the primary node that failed:</div><div><br></div><div><span style="background-color:rgb(204,204,204)">2023-06-12_18:27:55 [failover.sh]: failed_node_id=1 failed_host=10.198.49.42<br>2023-06-12_18:27:55 [failover.sh]: old_master_node_id=0 old_primary_node_id=0<br>2023-06-12_18:27:55 [failover.sh]: new_primary_node_id=0 new_master_host=10.198.49.41<br>2023-06-12_18:27:55 [failover.sh]: Node 1 dies, but it's not the primary node. Skipping failover.</span><br></div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="text-align:left"><b>Thanks & Regards</b><br></div><i>Gopi</i><br></div></div></div></div>