Skip to content

Commit

Permalink
Merge pull request #50811 from ClickHouse/tavplubix-patch-6
Browse files Browse the repository at this point in the history
Don't mark a part as broken on `Poco::TimeoutException`
  • Loading branch information
alexey-milovidov committed Jun 12, 2023
2 parents 5cdf893 + 5db3b39 commit 4e7cd2d
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 @@ -1254,6 +1255,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 4e7cd2d

Please sign in to comment.