Skip to content

Commit d9b9bc6

Browse files
committed
Fix keeper shutdown in case of initialization failed
Simple repro: $ clickhouse-keeper-data-dumper /tmp/no-such-dir/snapshots/ /tmp/no-such-dir/logs Signed-off-by: Azat Khuzhin <[email protected]>
1 parent 25e1239 commit d9b9bc6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Coordination/Changelog.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,14 @@ Changelog::~Changelog()
23992399
try
24002400
{
24012401
flush();
2402+
}
2403+
catch (...)
2404+
{
2405+
tryLogCurrentException(__PRETTY_FUNCTION__);
2406+
}
2407+
2408+
try
2409+
{
24022410
shutdown();
24032411
}
24042412
catch (...)

0 commit comments

Comments
 (0)