distribution/registry/storage
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
..
cache Consider redis.ErrNil as distribution.ErrBlobUnknown for Stat HGET 2020-03-04 17:51:37 -08:00
driver Merge pull request #2272 from naveedjamil/fips 2020-02-22 17:40:41 -08:00
blob_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
blobcachemetrics.go registry: remove dependency on logrus for client 2017-08-15 10:28:38 -07:00
blobserver.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
blobstore.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
blobwriter_nonresumable.go If resumable digest support is disabled, detct this when closing the blobwriter 2016-06-13 17:35:06 -07:00
blobwriter_resumable.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
blobwriter.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
catalog_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
catalog.go lint fix 2018-08-06 09:46:42 -07:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
error.go Remove old walk function 2018-01-18 13:06:07 -08:00
filereader_test.go Enable static checks 2018-08-06 14:49:11 -07:00
filereader.go Enable static checks 2018-08-06 14:49:11 -07:00
garbagecollect_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
garbagecollect.go Remove err nil check 2019-02-04 16:42:44 -08:00
io.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
linkedblobstore_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
linkedblobstore.go fix gofmt and goimports 2018-09-11 16:14:10 -07:00
manifestlisthandler.go Fix registry stripping newlines from manifests 2018-09-05 13:40:42 -07:00
manifeststore_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
manifeststore.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
ocimanifesthandler_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
ocimanifesthandler.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
paths_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
paths.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
purgeuploads_test.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
purgeuploads.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
registry.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
schema2manifesthandler_test.go Update schema2 builder to take media type 2016-12-14 16:17:20 -08:00
schema2manifesthandler.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
signedmanifesthandler.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
tagstore_test.go better name and updated tests 2018-11-01 10:31:08 -07:00
tagstore.go Merge pull request #2748 from manishtomar/tag-digests 2019-10-08 12:14:56 -07:00
v1unsupportedhandler.go disable schema1 by default, add a config flag to enable it 2017-12-19 10:23:25 -08:00
vacuum.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00