Skip to content

Keep in-memory cache consistent when file deletion fails#3163

Merged
bidetofevil merged 1 commit intomainfrom
hho/file-deletion-consistency
Mar 30, 2026
Merged

Keep in-memory cache consistent when file deletion fails#3163
bidetofevil merged 1 commit intomainfrom
hho/file-deletion-consistency

Conversation

@bidetofevil
Copy link
Copy Markdown
Contributor

@bidetofevil bidetofevil commented Mar 24, 2026

Goal

Remove file from in-memory cache regardless of whether the delete was successful. This addresses an inconsistency that was bubbled up through the PayloadStorageServiceImpl where when delete calls faile at the FileSystemService level, it did not remove the payload from the in-memory cache, leading to the PayloadStorageService thinking that it was still there.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.00%. Comparing base (b637ff0) to head (3477481).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3163      +/-   ##
==========================================
+ Coverage   77.89%   78.00%   +0.10%     
==========================================
  Files         558      558              
  Lines       11931    11973      +42     
  Branches     1782     1792      +10     
==========================================
+ Hits         9294     9339      +45     
+ Misses       1927     1924       -3     
  Partials      710      710              
Files with missing lines Coverage Δ
...nternal/delivery/storage/FileStorageServiceImpl.kt 78.43% <100.00%> (ø)

... and 9 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor Author

bidetofevil commented Mar 30, 2026

Merge activity

  • Mar 30, 5:20 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 30, 5:24 PM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 30, 5:25 PM UTC: @bidetofevil merged this pull request with Graphite.

@bidetofevil bidetofevil changed the base branch from hho/ordered-payload-delivery to graphite-base/3163 March 30, 2026 17:22
@bidetofevil bidetofevil changed the base branch from graphite-base/3163 to main March 30, 2026 17:23
@bidetofevil bidetofevil force-pushed the hho/file-deletion-consistency branch from f3f2a17 to 3477481 Compare March 30, 2026 17:24
@github-actions
Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 3477481.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@bidetofevil bidetofevil merged commit 060b9d1 into main Mar 30, 2026
10 checks passed
@bidetofevil bidetofevil deleted the hho/file-deletion-consistency branch March 30, 2026 17:25
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