Grant Watters 74d442a058
Consider redis.ErrNil as distribution.ErrBlobUnknown for Stat HGET
* Update redis.go

If the dgst key does not exist in the cache when calling HGET, `redis.String` will return an `ErrNil` which we need to translate into `distribution.ErrBlobUnknown` so that the error being returned can be properly handled. This will ensure that `SetDescriptor` is properly called from `cachedBlobStatter::Stat` for `repositoryScopedRedisBlobDescriptorService` which will update the redis cache and be considered as a Miss rather than an Error.

cc @manishtomar

* Update suite.go

Add unit test to ensure missing blobs for scoped repo properly return ErrBlobUnknown when HGET returns redis.ErrNil.

(cherry picked from commit dca6b9526a1d30dd218a9f321c4f84ecc4b5e62e)
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2020-03-04 17:51:37 -08:00
..
2020-02-14 08:11:16 +11:00
2019-02-04 16:01:04 -08:00
2018-08-06 09:46:42 -07:00
2018-01-18 13:06:07 -08:00
2018-08-06 14:49:11 -07:00
2018-08-06 14:49:11 -07:00
2019-02-04 16:42:44 -08:00
2017-08-11 15:53:31 -07:00
2018-09-11 16:14:10 -07:00
2020-02-14 08:11:16 +11:00
2020-02-14 08:11:16 +11:00
2020-02-14 08:11:16 +11:00
2019-12-05 20:48:33 +01:00
2019-02-04 16:01:04 -08:00
2019-02-04 16:01:04 -08:00
2019-12-05 20:48:33 +01:00
2018-11-01 10:31:08 -07:00