Repository navigation
feat: [stable-8.0][OCISDEV-855] receivedsharecache: retry on transient storage errors in CAS loop - #709
Conversation
…rors in CAS loop (#657) * fix: ocisdev-855, cs3/decomposefs transactional concurent upload * fix: ocisdev-855, cs3/decomposefs optimistic-abort concurent upload * fix: ocisdev-855, cs3/decomposefs optimistic-abort concurent upload * feat: logs and cleanup * feat: cleanup * feat: review fixes * feat: cleanup in tracing
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
…e Download in concurrent test status.NewTooEarly was added after stable-8.0 branched; map IsTooEarly to NewAborted instead (same retry semantics for the client). DiskStorage.Upload on stable-8.0 uses os.WriteFile (not renameio), so concurrent Download calls can read a partial file. Add a mutex to barrierStorage that serializes Upload/Download pairs in the test.
|
The Claud's post-merged review: @mklos-kw Could you have a look? /code-review 3dbd3c2#diff-d1b078acb1599e399ab6e7cc97627d35747ba4faebd4e4f66ad4922bc9da1922 ⏺ Code review(review · 10 findings) Background review of 3dbd3c2 (receivedsharecache: retry on transient storage errors in CAS loop) finished — 10 findings, most-severe first, reported above. Worth acting on:
The rest (stale state reused after a failed resync, a misleading "etag changed" log for what's actually upload contention, a hand-rolled backoff sitting next to an already-vendored cenkalti/backoff, a redundant bootstrap write, duplicated test helper, and a stray blank line) are lower-severity but listed above with file/line. |
Thank you. Addressed in #751 |
backports: #657