Skip to content

Commit 2467b25

Browse files
committed
check for cache consistency issues when querying for a dependency
1 parent 1e1c6e7 commit 2467b25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/controller/registry/resolver/resolver.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ func (r *SatResolver) getBundleInstallables(catalog registry.CatalogKey, predica
313313
errs = append(errs, err)
314314
continue
315315
}
316+
if len(found) == 0 {
317+
err := fmt.Errorf("couldn't find %s in %s", bundle.Identifier(), dep.sourceInfo.Catalog)
318+
errs = append(errs, err)
319+
r.log.Warnf("cache consistency error: %s not found in %s", bundle.Identifier(), dep.sourceInfo.Catalog)
320+
continue
321+
}
316322
b := found[0]
317323
src := b.SourceInfo()
318324
if src == nil {

0 commit comments

Comments
 (0)