aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/gc.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-09-15 10:58:25 +0200
committerGitHub Enterprise <[email protected]>2025-09-15 10:58:25 +0200
commitb8c0b72232642183156e59ff8d2535cc3353ff0e (patch)
tree4da3fd349300839e1863ded840b0ce97cbc61589 /src/zenstore/gc.cpp
parent5.7.1 (diff)
downloadzen-b8c0b72232642183156e59ff8d2535cc3353ff0e.tar.xz
zen-b8c0b72232642183156e59ff8d2535cc3353ff0e.zip
revise exception vs error (#495)
- Change BadAlloc exceptions in GC to warnings - Add explict ASSERT exception catch in http plugin request processing - Make exceptions handled in http request processing to warnings
Diffstat (limited to 'src/zenstore/gc.cpp')
-rw-r--r--src/zenstore/gc.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp
index b08e6a3ca..1ddb25364 100644
--- a/src/zenstore/gc.cpp
+++ b/src/zenstore/gc.cpp
@@ -764,7 +764,7 @@ GcManager::CollectGarbage(const GcSettings& Settings)
}
catch (const std::bad_alloc& Ex)
{
- ZEN_ERROR("GCV2: Failed removing expired data for {}. Reason: '{}'", Owner->GetGcName(Ctx), Ex.what());
+ ZEN_WARN("GCV2: Failed removing expired data for {}. Reason: '{}'", Owner->GetGcName(Ctx), Ex.what());
SetCancelGC(true);
}
catch (const std::exception& Ex)
@@ -857,9 +857,9 @@ GcManager::CollectGarbage(const GcSettings& Settings)
}
catch (const std::bad_alloc& Ex)
{
- ZEN_ERROR("GCV2: Failed creating reference pruners for {}. Reason: '{}'",
- ReferenceStore->GetGcName(Ctx),
- Ex.what());
+ ZEN_WARN("GCV2: Failed creating reference pruners for {}. Reason: '{}'",
+ ReferenceStore->GetGcName(Ctx),
+ Ex.what());
SetCancelGC(true);
}
catch (const std::exception& Ex)
@@ -969,9 +969,9 @@ GcManager::CollectGarbage(const GcSettings& Settings)
}
catch (const std::bad_alloc& Ex)
{
- ZEN_ERROR("GCV2: Failed creating reference checkers for {}. Reason: '{}'",
- Referencer->GetGcName(Ctx),
- Ex.what());
+ ZEN_WARN("GCV2: Failed creating reference checkers for {}. Reason: '{}'",
+ Referencer->GetGcName(Ctx),
+ Ex.what());
SetCancelGC(true);
}
catch (const std::exception& Ex)
@@ -1083,9 +1083,9 @@ GcManager::CollectGarbage(const GcSettings& Settings)
}
catch (const std::bad_alloc& Ex)
{
- ZEN_ERROR("GCV2: Failed creating reference validators for {}. Reason: '{}'",
- Referencer->GetGcName(Ctx),
- Ex.what());
+ ZEN_WARN("GCV2: Failed creating reference validators for {}. Reason: '{}'",
+ Referencer->GetGcName(Ctx),
+ Ex.what());
SetCancelGC(true);
}
catch (const std::exception& Ex)
@@ -1148,7 +1148,7 @@ GcManager::CollectGarbage(const GcSettings& Settings)
}
catch (const std::bad_alloc& Ex)
{
- ZEN_ERROR("GCV2: Failed precaching for {}. Reason: '{}'", Checker->GetGcName(Ctx), Ex.what());
+ ZEN_WARN("GCV2: Failed precaching for {}. Reason: '{}'", Checker->GetGcName(Ctx), Ex.what());
SetCancelGC(true);
}
catch (const std::exception& Ex)
@@ -1368,9 +1368,9 @@ GcManager::CollectGarbage(const GcSettings& Settings)
}
catch (const std::bad_alloc& Ex)
{
- ZEN_ERROR("GCV2: Failed removing unused data for {}. Reason: '{}'",
- Pruner->GetGcName(Ctx),
- Ex.what());
+ ZEN_WARN("GCV2: Failed removing unused data for {}. Reason: '{}'",
+ Pruner->GetGcName(Ctx),
+ Ex.what());
SetCancelGC(true);
}
catch (const std::exception& Ex)
@@ -1451,7 +1451,7 @@ GcManager::CollectGarbage(const GcSettings& Settings)
}
catch (const std::bad_alloc& Ex)
{
- ZEN_ERROR("GCV2: Failed compacting store {}. Reason: '{}'", Compactor->GetGcName(Ctx), Ex.what());
+ ZEN_WARN("GCV2: Failed compacting store {}. Reason: '{}'", Compactor->GetGcName(Ctx), Ex.what());
SetCancelGC(true);
}
catch (const std::exception& Ex)
@@ -1509,7 +1509,7 @@ GcManager::CollectGarbage(const GcSettings& Settings)
}
catch (const std::bad_alloc& Ex)
{
- ZEN_ERROR("GCV2: Failed validating referencer {}. Reason: '{}'", ReferenceValidator->GetGcName(Ctx), Ex.what());
+ ZEN_WARN("GCV2: Failed validating referencer {}. Reason: '{}'", ReferenceValidator->GetGcName(Ctx), Ex.what());
SetCancelGC(true);
}
catch (const std::exception& Ex)