Skip to content

Decouple external mount probing from guarded operations#344

Merged
aby913 merged 1 commit into
mainfrom
cursor/external-mount-health-c63b
Jun 5, 2026
Merged

Decouple external mount probing from guarded operations#344
aby913 merged 1 commit into
mainfrom
cursor/external-mount-health-c63b

Conversation

@aby913
Copy link
Copy Markdown
Member

@aby913 aby913 commented Jun 5, 2026

Summary

  • Add mounted-state change listeners so posix external mount guard can track GlobalMounted updates without package cycles.
  • Replace request-scoped mount guard execution with background mount-root health probing and cached availability checks.
  • Keep upload/get/list/create business operations outside the probe critical path so normal concurrency is not rejected by a mount-level probing flag.
  • Map external mount unavailable errors in upload handlers to HTTP 503.

Testing

  • go test ./pkg/global
  • go test ./pkg/drivers/posix/posix (blocked: missing generated pkg/hertz/biz/model/api/{search,share,external} packages)
  • go test ./pkg/hertz/biz/handler/upload (blocked: missing generated pkg/hertz/biz/model/... packages)
Open in Web Open in Cursor 

Co-authored-by: aby913 <aby913@users.noreply.github.com>
@aby913 aby913 closed this Jun 5, 2026
@aby913 aby913 reopened this Jun 5, 2026
@aby913 aby913 marked this pull request as ready for review June 5, 2026 13:14
@aby913 aby913 merged commit 8e42506 into main Jun 5, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants