aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-05-13 13:54:15 +0200
committerDan Engelbrecht <[email protected]>2025-05-14 09:29:32 +0200
commit593ad293e4ecdb329ba71d88f72d323b1d2ca09c (patch)
tree2446f1916d5dbf3c34c1c796a192ea3698d29d49
parentadd general retry callback support for BasicFile (diff)
downloadzen-593ad293e4ecdb329ba71d88f72d323b1d2ca09c.tar.xz
zen-593ad293e4ecdb329ba71d88f72d323b1d2ca09c.zip
make bad_alloc exception a warning
-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 8df8147f6..70a463fa9 100644
--- a/src/zenstore/gc.cpp
+++ b/src/zenstore/gc.cpp
@@ -762,7 +762,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)
@@ -855,9 +855,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)
@@ -966,9 +966,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)
@@ -1077,9 +1077,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)
@@ -1141,7 +1141,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)
@@ -1359,9 +1359,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)
@@ -1441,7 +1441,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)
@@ -1499,7 +1499,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)