This is an automated email from the ASF dual-hosted git repository.
kimmking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new a71c884 #7462, Hash collision will cause route result incorrect
(#7513)
a71c884 is described below
commit a71c8847b56f9680e802c59e8d93ffcf12d13539
Author: Zhang Yonglun <[email protected]>
AuthorDate: Fri Sep 18 18:39:29 2020 +0800
#7462, Hash collision will cause route result incorrect (#7513)
---
.../sharding/algorithm/sharding/inline/InlineExpressionParser.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/main/java/org/apache/shardingsphere/sharding/algorithm/sharding/inline/InlineExpressionParser.java
b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/main/java/org/apache/shardingsphere/sharding/algorithm/sharding/inline/InlineExpressionParser.java
index 0360130..916760a 100644
---
a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/main/java/org/apache/shardingsphere/sharding/algorithm/sharding/inline/InlineExpressionParser.java
+++
b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-common/src/main/java/org/apache/shardingsphere/sharding/algorithm/sharding/inline/InlineExpressionParser.java
@@ -30,10 +30,10 @@ import lombok.RequiredArgsConstructor;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
-import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
/**
* Inline expression parser.
@@ -43,7 +43,7 @@ public final class InlineExpressionParser {
private static final char SPLITTER = ',';
- private static final Map<String, Script> SCRIPTS = new HashMap<>();
+ private static final Map<String, Script> SCRIPTS = new
ConcurrentHashMap<>();
private static final GroovyShell SHELL = new GroovyShell();