From 3e874b0a4a3bd5cde5ab75076794b0a07156887c Mon Sep 17 00:00:00 2001 From: yaoxuwan Date: Thu, 14 Mar 2024 17:55:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Proxy=E6=94=AF=E6=8C=81=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=9C=AA=E5=90=8C=E6=AD=A5=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=AD=98=E5=82=A8=20#1836?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bkrepo/proxy/artifact/resource/ProxyNodeResource.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/proxy/biz-proxy/src/main/kotlin/com/tencent/bkrepo/proxy/artifact/resource/ProxyNodeResource.kt b/src/proxy/biz-proxy/src/main/kotlin/com/tencent/bkrepo/proxy/artifact/resource/ProxyNodeResource.kt index 79d6d7f93b..789751c66e 100644 --- a/src/proxy/biz-proxy/src/main/kotlin/com/tencent/bkrepo/proxy/artifact/resource/ProxyNodeResource.kt +++ b/src/proxy/biz-proxy/src/main/kotlin/com/tencent/bkrepo/proxy/artifact/resource/ProxyNodeResource.kt @@ -30,6 +30,7 @@ package com.tencent.bkrepo.proxy.artifact.resource import com.tencent.bkrepo.common.api.constant.HttpStatus import com.tencent.bkrepo.common.artifact.manager.ProxyBlobCacheWriter import com.tencent.bkrepo.common.artifact.manager.resource.AbstractNodeResource +import com.tencent.bkrepo.common.artifact.pojo.RepositoryType import com.tencent.bkrepo.common.artifact.stream.ArtifactInputStream import com.tencent.bkrepo.common.artifact.stream.Range import com.tencent.bkrepo.common.artifact.stream.artifactStream @@ -61,7 +62,7 @@ class ProxyNodeResource( override fun exists(): Boolean { return try { - blobReplicaClient.check(sha256, storageKey).data ?: false + blobReplicaClient.check(sha256, storageKey, RepositoryType.GENERIC.name).data ?: false } catch (exception: Exception) { logger.error("Failed to check blob data[$sha256] in remote node.", exception) false