You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by rg...@apache.org on 2024/03/04 10:25:57 UTC
(pulsar) 02/05: [fix][fn] Use unified PackageManagement service to download packages (#21955)
This is an automated email from the ASF dual-hosted git repository.
rgao pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit d58d5983da3f506c6ef186b684558dd41c22cba9
Author: jiangpengcheng <sc...@gmail.com>
AuthorDate: Wed Jan 31 22:18:47 2024 +0800
[fix][fn] Use unified PackageManagement service to download packages (#21955)
(cherry picked from commit d3b7ca5e964216bc52c436ebeb88357a0aed5948)
---
.../java/org/apache/pulsar/functions/worker/rest/api/ComponentImpl.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/ComponentImpl.java b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/ComponentImpl.java
index f80bc31e7f9..5e105f7057e 100644
--- a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/ComponentImpl.java
+++ b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/ComponentImpl.java
@@ -1817,6 +1817,8 @@ public abstract class ComponentImpl implements Component<PulsarWorkerService> {
+ "when getting %s package from %s", e.getMessage(),
ComponentTypeUtils.toString(componentType), functionPkgUrl));
}
+ } else if (Utils.hasPackageTypePrefix(existingPackagePath)) {
+ componentPackageFile = getPackageFile(existingPackagePath);
} else if (uploadedInputStream != null) {
componentPackageFile = WorkerUtils.dumpToTmpFile(uploadedInputStream);
} else if (!existingPackagePath.startsWith(Utils.BUILTIN)) {