This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new 253e383d52 [Enhancement](Planner)fix unclear exception msg when
tag.location invaild. (#17464)
253e383d52 is described below
commit 253e383d52b79049b39401e30260477d2e83efc4
Author: mch_ucchi <[email protected]>
AuthorDate: Mon Mar 6 21:17:07 2023 +0800
[Enhancement](Planner)fix unclear exception msg when tag.location invaild.
(#17464)
---
.../src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
b/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
index c4fdf9b9d1..85067e89e4 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
@@ -698,7 +698,7 @@ public class PropertyAnalyzer {
if (!parts[0].startsWith(TAG_LOCATION)) {
throw new AnalysisException("Invalid replication allocation
tag property: " + location);
}
- String locationVal = parts[0].substring(TAG_LOCATION.length() +
1); // +1 to skip dot.
+ String locationVal = parts[0].replace(TAG_LOCATION,
"").replace(".", "");
if (Strings.isNullOrEmpty(locationVal)) {
throw new AnalysisException("Invalid replication allocation
location tag property: " + location);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]