Repository navigation
Warn about stalled forced shard releases - #9475
Conversation
🦋 Changeset detectedLatest commit: 99ba16d The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Review complete: one blocking finding for missing regression coverage of release-failure warning throttling. Static review and diff whitespace check completed; runtime tests could not run because the pnpm bootstrap failed in this sandbox.
Reviewed at 2632ceb: 1 blocking, 0 nits.
Disagree? Reply in the finding's thread, or a maintainer can comment /janitor to re-run or dismiss this review.
There was a problem hiding this comment.
Review complete: the earlier blocking coverage finding is addressed, and no new issues were found. Validated with packages/effect/test/cluster/Sharding.test.ts: all 97 tests passed. git diff --check also passed.
Reviewed at 943a6b5: no new findings.
Dismissed by janitor: no blocking finding stands at 943a6b5.
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
The forced release warning tracked every entity interrupt fiber in a map with an observer, only to learn which entity types still had servers on the stalled shards. The entity manager already knows that from the close latches that interruptShard waits on, so ask it directly when the warning fires and drop the bookkeeping from the interrupt path.
Summary
shardLockExpiration, with shard IDs, pending entity types, and singleton names. The independent, interruptible monitor is cleaned up when release exits.Validation
nix develop -c pnpm test --run packages/effect/test/cluster/Sharding.test.ts --reporter=dot: 95 passed.nix develop -c pnpm lint-fixnix develop -c pnpm checkgit diff --checkAssessment / follow-up
Current main already updates
ClusterMetrics.shardsfrom the acquired-shard set after normal release marking, acquisition, unhealthy-storage clearing, and refresh lock loss (fixed in #9244). Zero acquired shards can still coexist with pending teardown; the new warning explains that state. No metric change or public owned-shard count is needed for this diagnostic fix.The unchanged minimal regression covers stalled singleton diagnostics, warning non-repetition, cleanup after recovery, and release-before-reacquisition safety. A separate tests run should cover entity-type diagnostics, completion before the warning deadline, and the release-failure warning throttle. Independent review and Architect simplification remain required.
Closes #9467
Closes EFF-2418