Skip to content

Batch cleanup for unconfirmed LMCache writes - #3441

Open
matrixarkai wants to merge 1 commit into
codex/lmcache-local-blob-deletefrom
codex/lmcache-batch-store-rollback
Open

matrixarkai wants to merge 1 commit into
codex/lmcache-local-blob-deletefrom
codex/lmcache-batch-store-rollback

Conversation

@matrixarkai

Copy link
Copy Markdown
Owner

Changes

  • Roll back unconfirmed payloads in bounded batches. Charge their bytes in recovery namespaces until their cleanup is confirmed.
  • Retry cleanup for previously unconfirmed inputs together before attempting a replacement. Stop serial metadata retries on a remote transport error.

Local WSL validation

  • All 29 adapter and blob tests passed.
  • A live datanode accepted 32 blobs before the test dropped the upload receipt and injected 40 ms of unavailability into each cleanup call. Cleanup calls fell from 32 to one and the failed store task completed in 62 ms instead of 1,318 ms.
  • Both variants kept the full 512 KiB charged through the injected failure. On recovery, every replacement was byte-exact and the physical payload count and budget matched. Repair also used one cleanup call instead of 32.

Builds on #3440.

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