Skip to content

Commit

Permalink
Merged PR 744727: [Blob L3 GC] Delete CHLs containing Unkown hashes
Browse files Browse the repository at this point in the history
Delete CHLs containing Unkown hashes. I believe this happened as a side effect of attempting to delete a container while something was writing to it.
  • Loading branch information
JuanCarlosGI committed Oct 10, 2023
1 parent 461bd9d commit 827ee2d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ private static async Task<Result<bool>> ProcessContentHashListAsync(
{
try
{
if (!contentHash.IsValid)
{
Tracer.Warning(context, $"Found invalid hash. Hash=[{contentHash.ToShortHash()}] CHL=[{blobName}]");
return false;
}

if (contentHash.IsEmptyHash() || contentHash.IsZero())
{
hashes.Add((contentHash, 0));
Expand Down

0 comments on commit 827ee2d

Please sign in to comment.