Skip to content

Commit

Permalink
Backport #50811 to 23.4: Don't mark a part as broken on `Poco::Timeou…
Browse files Browse the repository at this point in the history
…tException`
  • Loading branch information
robot-clickhouse committed Jun 13, 2023
1 parent 12d73cd commit dcb5228
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Storages/MergeTree/MergeTreeData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@

#include <fmt/format.h>
#include <Poco/Logger.h>
#include <Poco/Net/NetException.h>

template <>
struct fmt::formatter<DB::DataPartPtr> : fmt::formatter<std::string>
Expand Down Expand Up @@ -1245,6 +1246,14 @@ MergeTreeData::LoadPartResult MergeTreeData::loadDataPart(
res.is_broken = true;
tryLogCurrentException(log, fmt::format("while loading part {} on path {}", res.part->name, part_path));
}
catch (const Poco::Net::NetException &)
{
throw;
}
catch (const Poco::TimeoutException &)
{
throw;
}
catch (...)
{
res.is_broken = true;
Expand Down

0 comments on commit dcb5228

Please sign in to comment.