Repository navigation
Conversation
Split out from Altinity#2920 per review feedback: Cache terminal (`gc_fenced` and clean-release) mount slot ETags across GC rounds in `MountTerminalCache` (`Gc::mount_terminal_cache`) so `computeHeartbeatFloor()` skips per-slot `GET`/`readModifyWrite` calls when `LIST` returns an unchanged ETag. Signed-off-by: sabith <sks@stackgen.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
8b1c34d to
8e0b01b
Compare
|
…nvalidation on reclaim CatchesTerminalMountSlotEtagsAcrossRounds seeded the "clean-release" slot with `expires_at_ms = 0`, which is not a terminal slot: `MountLease::isCleanRelease()` is the `min_active_build_sequence == UINT64_MAX` farewell sentinel. As written the slot stayed live, the round-2/round-3 zero-GET assertions failed on it, and the clean-release classification branch of `MountTerminalCache` had no coverage. Add.InvalidatesTerminalMountCacheWhenSlotChanges: a cached `gc_fenced` slot is overwritten with a live body under a successor reclaim (new ETag); the next round must GET the new body again, count the slot `live`, and never classify it `already_fenced` from the stale cache entry. A second round still GETs it because a non-terminal body erases its cache entry — without this, a cache that never invalidates would pass. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: sabith <sks@stackgen.com>
e5543ab to
d53460a
Compare
|
Both review points are addressed in commit d53460a:
Validated locally: Note: the force-push that landed d53460a seems to have reset the workflow approval — the |
Split out from #2920 per review feedback as a single-purpose atomic PR for the terminal mount slot ETag cache (
MountTerminalCache).Changes
CasServerRoot.h/.cpp,CasGc.h/.cpp):gc_fencedand clean-release) mount slot ETags across GC rounds inGc::mount_terminal_cache(MountTerminalCache).computeHeartbeatFloor()listsgc/server-roots/and observes an unchangedLISTETag for a cached terminal slot, it classifies the slot (already_fencedorterminated) directly without issuing a per-slotGET/readModifyWrite.gtest_cas_gc_round_defer.cpp):CASGCRoundDefer.CachesTerminalMountSlotEtagsAcrossRoundsverifying thatgc_fencedand clean-release terminal mount slots are read once and skipped on subsequent rounds when theirLISTETag is unchanged.Request & Cost Numbers
With default settings (
cas_gc_interval_sec = 60-> 1,440 rounds/day; AWS S3GETpricing at$0.40 / 1M):M_termGETs per GC round (1,440 * M_termGETs/day, whereM_termis the number of historicalgc_fencedor clean-release mount slots undergc/server-roots/).GETs/day (864k to 4.32M GETs/month,$0.35–$1.73/month) and keepsheartbeat_floorlatencyO(M_live)rather than growing with historical terminal slot count.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Cache terminal (
gc_fencedand clean-release) CAS mount slot ETags across GC rounds incomputeHeartbeatFloorto skip redundant per-slotGETs when the listed ETag is unchanged.Documentation entry for user-facing changes
CI/CD Options
Exclude tests:
Regression jobs to run: