Catch all exceptions to avoid replication stuck

This commit is contained in:
kssenii 2023-03-28 12:00:56 +02:00
parent a9bcd022d5
commit 943a4f75f8

View File

@ -417,7 +417,15 @@ void PostgreSQLReplicationHandler::consumerFunc()
{
assertInitialized();
bool schedule_now = getConsumer()->consume();
bool schedule_now = true;
try
{
schedule_now = getConsumer()->consume();
}
catch (...)
{
tryLogCurrentException(__PRETTY_FUNCTION__);
}
if (stop_synchronization)
{