Skip to content

Remove a Volume's jobs when detaching#1954

Merged
jmpesp merged 1 commit into
oxidecomputer:mainfrom
jmpesp:gc_volume_jobs
Jun 25, 2026
Merged

Remove a Volume's jobs when detaching#1954
jmpesp merged 1 commit into
oxidecomputer:mainfrom
jmpesp:gc_volume_jobs

Conversation

@jmpesp

@jmpesp jmpesp commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

When detaching a Volume from the Pantry, garbage-collect all the related jobs. A previous commit changed the implementation of attach to be implemented in terms of attach_activate_background, and this used the volume_id as the supplied job_id, This caused a problem because the re-use of a job_id isn't allowed, meaning that clients of the Pantry could only attach a volume once!

When detaching a Volume from the Pantry, garbage-collect all the related
jobs. A previous commit changed the implementation of `attach` to be
implemented in terms of `attach_activate_background`, and this used the
volume_id as the supplied job_id, This caused a problem because the
re-use of a job_id isn't allowed, meaning that clients of the Pantry
could only attach a volume once!
@jmpesp jmpesp requested a review from leftwo June 25, 2026 18:07
@jmpesp jmpesp merged commit 2bfe090 into oxidecomputer:main Jun 25, 2026
17 checks passed
@jmpesp jmpesp deleted the gc_volume_jobs branch June 25, 2026 19:35
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