mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #299] [MERGED] fix(ublk): back off failed idle pool refills #328
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#328
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/299
Author: @yingdi-shan
Created: 9/16/2026
Status: ✅ Merged
Merged: 9/18/2026
Merged by: @yingdi-shan
Base:
main← Head:fix/ublk-pool-refill-backoff📝 Commits (2)
3f6ee43fix(ublk): back off failed idle pool refillsbf8b805fix(ublk): raise device limit during host setup📊 Changes
3 files changed (+51 additions, -2 deletions)
View changed files
📝
scripts/docker-setup.sh(+8 -2)📝
scripts/install.sh(+5 -0)📝
storage/ublk-daemon/src/server.rs(+38 -0)📄 Description
What
Add a one-second backoff when an idle OverlayBD ublk-pool refill fails.
Why
When the kernel has no free ublk slots,
add_devfails while the pool remains below its watermark. The refill task immediately reschedules itself, producing a tight retry loop and unbounded warning logs. The backoff keeps automatic retry and recovery while limiting the failure rate.Related issue
Closes #297
Scope and non-goals
This changes only the ublk daemon refill retry path and adds a focused regression test. It does not change pool watermarks, ublk allocation, or unrelated working-tree files.
Design and behavior changes
Failed refills hold the existing
refill_inflightguard during a one-second delay before the next scheduled attempt. Successful refills are unchanged, and retries continue automatically so refilling resumes when a slot becomes available.Compatibility and operations
Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetCommands and results:
Skipped checks and reasons:
make fmtcould not run because the shell startup configuration references an unsetPS1underbash -u; the focused crate formatter passed.make clippyreached the workspace but failed on existing generated-model documentation warnings insrc/api/generated/src/models.rs; the changed daemon crate passed Clippy.make test-unitwas not run because the focused daemon suite covers the changed path and passed.Risks and reviewer notes
The delay limits failed refill attempts to at most one per second per in-flight refill task. Once device creation succeeds, the existing scheduling logic continues filling the pool. The regression test forces a prewarm failure before any ublk device allocation and verifies repeated attempts are delayed without being disabled.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.