buildbuddy-io / buildbuddy

BuildBuddy is an open source Bazel build event viewer, result store, remote cache, and remote build execution platform.

Home Page:https://buildbuddy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Janitor fails to delete blobs because directory is not empty

JaredNeil opened this issue · comments

WRN Error deleting blob (03516230-c019-4f85-8283-1059f6512a4a): remove /buildbuddy/03516230-c019-4f85-8283-1059f6512a4a: directory not empty

I think this has something to do with how Chunkstore and DiskBlobStore interact, but I think it comes down to
DiskBlobStore.DeleteBlob calls disk.DeleteFile, which calls os.Remove, which always fails because the blob is actually a directory, and not empty.

Hi @JaredNeil, sorry for the delay on this, but the fix is now submitted and will go out in next week's release :)