From a23a3e2d1254acf1d6c194f4996824e3f290cae1 Mon Sep 17 00:00:00 2001 From: felix-thinkingdata <59079269+felix-thinkingdata@users.noreply.github.com> Date: Thu, 9 Jul 2020 18:28:04 +0800 Subject: [PATCH] fix bug #3165 get resource.storage.type value toUpperCase (#3166) Co-authored-by: dailidong --- .../org/apache/dolphinscheduler/common/utils/PropertyUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/PropertyUtils.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/PropertyUtils.java index ba1fcd692..d0c08b1d3 100644 --- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/PropertyUtils.java +++ b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/PropertyUtils.java @@ -72,7 +72,7 @@ public class PropertyUtils { * @return judge whether resource upload startup */ public static Boolean getResUploadStartupState(){ - String resUploadStartupType = PropertyUtils.getString(Constants.RESOURCE_STORAGE_TYPE); + String resUploadStartupType = PropertyUtils.getString(Constants.RESOURCE_STORAGE_TYPE).toUpperCase(); ResUploadType resUploadType = ResUploadType.valueOf(resUploadStartupType); return resUploadType == ResUploadType.HDFS || resUploadType == ResUploadType.S3; } -- GitLab