Skip to content

Commit

Permalink
Backport #50811 to 23.5: 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 12, 2023
1 parent 6ef33e8 commit ea96150
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 @@ -99,6 +99,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 @@ -1252,6 +1253,14 @@ MergeTreeData::LoadPartResult MergeTreeData::loadDataPart(
mark_broken();
return res;
}
catch (const Poco::Net::NetException &)
{
throw;
}
catch (const Poco::TimeoutException &)
{
throw;
}
catch (...)
{
mark_broken();
Expand Down

0 comments on commit ea96150

Please sign in to comment.