distribution/registry
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
..
api Merge pull request #2813 from lucab/ups/spec-json-binary 2019-03-01 14:26:54 -08:00
auth default autoredirect to false 2019-01-04 11:05:12 -08:00
client Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
handlers Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware context: remove definition of Context 2017-08-11 15:53:31 -07:00
proxy Fix gometalint errors 2019-02-04 16:01:04 -08:00
storage Consider redis.ErrNil as distribution.ErrBlobUnknown for Stat HGET 2020-03-04 17:51:37 -08:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry_test.go Add support to gracefully shutdown the server 2018-08-20 10:01:26 -07:00
registry.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
root.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00