Repository navigation
feat(collector): add systemd watchdog, opt-in DLQ expiry ledger, and auxiliary volume health (#138) - #305
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…ger, and volume health (#138)
jusso-dev
force-pushed
the
feat/crash-resilience-and-disk-hygiene
branch
from
November 21, 2026 21:44
29af0b9 to
ebbaca4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #138.
Completes collector crash resilience and disk hygiene (building on
PRAGMA synchronous = FULL,StorageGuardqueue-volume watermarks, unclean shutdown detection + temp-file cleanup in #215, and MSI service recovery actions):src/Bower.Collector/SystemdWatchdog.cs,deploy/systemd/bower.service):WatchdogSec=60stodeploy/systemd/bower.service.READY=1, periodicWATCHDOG=1(at halfWATCHDOG_USEC), andSTOPPING=1overNOTIFY_SOCKETvia Unix domain datagram sockets with no external native dependencies.src/Bower.Persistence/SqliteEventStore.DeadLetterRetention.cs,src/Bower.Collector/Jobs/QueueRetentionJob.cs,src/Bower.Collector/CollectorSettings.cs):BOWER_DEAD_LETTER_RETENTION_DAYSunset).1–3650days), logs a metadata-only pre-expiry warning (EventId 1510) within 24 hours of expiry and records a hash-chained evidence entry inqueue_dead_letter_purges(count, cutoff, failure-code summary, oldest/newest timestamps, chain hash) before deleting expired dead-letter rows (EventId 1511).QueueStorageMonitor.cs,CollectorApplication.cs,CollectorJson.cs,ManagementHeartbeatJob.cs):BOWER_OUTPUT=ama-spool) and archive (BOWER_ARCHIVE_PATH) volumes using the sameBOWER_STORAGE_*watermarks, reportingvolumesin/v1/statusand degrading/healthand/v1/statuswhen critical.oldestDeadLetterAgeSecondsandrecoveryon collector heartbeats.docs/operations/queue-v5-durability.mdanddocs/operations/fleet-and-queue-integrity.md.Verification
dotnet build --configuration Release— 0 warnings, 0 errorsdotnet test(CrashResilienceAndDiskHygieneTests,CrashRecoveryTests,QueueStorageTests,QueueRetentionTests,QueueLedgerTests) — 15 passed, 0 faileddotnet format --verify-no-changes— passedSecurity and compatibility impact