Skip to content

Commit 827ee2d

Browse files
committed
Merged PR 744727: [Blob L3 GC] Delete CHLs containing Unkown hashes
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.
1 parent 461bd9d commit 827ee2d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: Public/Src/Cache/LifetimeManager/Library/LifetimeDatabaseCreator.cs

+6
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,12 @@ private static async Task<Result<bool>> ProcessContentHashListAsync(
355355
{
356356
try
357357
{
358+
if (!contentHash.IsValid)
359+
{
360+
Tracer.Warning(context, $"Found invalid hash. Hash=[{contentHash.ToShortHash()}] CHL=[{blobName}]");
361+
return false;
362+
}
363+
358364
if (contentHash.IsEmptyHash() || contentHash.IsZero())
359365
{
360366
hashes.Add((contentHash, 0));

0 commit comments

Comments
 (0)