Skip to content

Commit

Permalink
Add some extra logs when the executor returns MissingDigestError (#7696)
Browse files Browse the repository at this point in the history
  • Loading branch information
bduffany authored Oct 9, 2024
1 parent 1a13746 commit b658760
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enterprise/server/remote_execution/dirtools/dirtools.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ func (ff *BatchFileFetcher) batchDownloadFiles(ctx context.Context, req *repb.Ba
fileCache := ff.env.GetFileCache()
for _, res := range responses {
if res.Err != nil {
log.CtxInfof(ctx, "Failed to download %s: %s", digest.String(res.Digest), res.Err)
return digest.MissingDigestError(res.Digest)
}
d := res.Digest
Expand Down Expand Up @@ -1009,6 +1010,9 @@ func DownloadTree(ctx context.Context, env environment.Env, instanceName string,
}
childDir, ok := dirMap[digest.NewKey(child.GetDigest())]
if !ok {
if child.GetDigest() == nil {
log.CtxInfof(ctx, "Directory child digest is nil (parentDir=%q, childName=%q)", parentDir, child.GetName())
}
return digest.MissingDigestError(child.GetDigest())
}
if err := fetchDirFn(childDir, newRoot); err != nil {
Expand Down

0 comments on commit b658760

Please sign in to comment.