mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Catch all exceptions to avoid replication stuck
This commit is contained in:
parent
a9bcd022d5
commit
943a4f75f8
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user