Skip to content

kbs: make KV resource deletion idempotent - #1601

Open
noeljackson wants to merge 1 commit into
confidential-containers:mainfrom
noeljackson:fix/idempotent-kv-resource-delete
Open

kbs: make KV resource deletion idempotent#1601
noeljackson wants to merge 1 commit into
confidential-containers:mainfrom
noeljackson:fix/idempotent-kv-resource-delete

Conversation

@noeljackson

Copy link
Copy Markdown

Deleting an already-absent resource from the KV backend currently returns an error. Repeated deletes are normal during retryable cleanup, so absence should already satisfy the request.

This makes KV deletion idempotent and adds regression coverage for two consecutive deletes.

Tested with:

  • cargo test -p kbs --no-default-features --test resource_kv_storage

@noeljackson
noeljackson requested a review from a team as a code owner August 29, 2026 12:12
Signed-off-by: Noel <n@noeljackson.com>
@noeljackson
noeljackson force-pushed the fix/idempotent-kv-resource-delete branch from 8dc9a6e to 141d945 Compare August 29, 2026 12:13
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.

1 participant