diff options
| author | Dan Engelbrecht <[email protected]> | 2024-08-14 10:22:57 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-08-14 10:22:57 +0200 |
| commit | 831f0787fca39682dec0141714eaebb7772b8639 (patch) | |
| tree | a72de0a27bb2d62589c3d968b3e69b43ef3ce0fb /src/zenstore/include | |
| parent | improve logging on main failure (#111) (diff) | |
| download | zen-831f0787fca39682dec0141714eaebb7772b8639.tar.xz zen-831f0787fca39682dec0141714eaebb7772b8639.zip | |
hardening and reduced spam from GC on failure (#112)
* Retry writing GC state if it fails to handle transient problems
* If GC operation fails demote errors to warnings on consecutive fails
Diffstat (limited to 'src/zenstore/include')
| -rw-r--r-- | src/zenstore/include/zenstore/gc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zenstore/include/zenstore/gc.h b/src/zenstore/include/zenstore/gc.h index 2edb5e0a5..92f2bdf78 100644 --- a/src/zenstore/include/zenstore/gc.h +++ b/src/zenstore/include/zenstore/gc.h @@ -537,7 +537,7 @@ public: private: void SchedulerThread(); - void CollectGarbage(const GcClock::TimePoint& CacheExpireTime, + bool CollectGarbage(const GcClock::TimePoint& CacheExpireTime, const GcClock::TimePoint& ProjectStoreExpireTime, bool Delete, bool CollectSmallObjects, @@ -545,7 +545,8 @@ private: GcVersion UseGCVersion, uint32_t CompactBlockUsageThresholdPercent, bool Verbose, - bool SingleThreaded); + bool SingleThreaded, + bool SilenceErrors); void ScrubStorage(bool DoDelete, bool SkipCid, std::chrono::seconds TimeSlice); LoggerRef Log() { return m_Log; } virtual bool AreDiskWritesAllowed() const override { return !m_AreDiskWritesBlocked.load(); } |