[
https://issues.apache.org/jira/browse/KYLIN-3556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16668289#comment-16668289
]
ASF subversion and git services commented on KYLIN-3556:
--------------------------------------------------------
Commit 3a441f2e3d464265b15d6c1bf90e375f156dae7c in kylin's branch
refs/heads/2.5.x from etherge
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=3a441f2 ]
KYLIN-3556, replace String.intern to avoid unexpected locking collisions
> Interned string should not be used as lock object
> -------------------------------------------------
>
> Key: KYLIN-3556
> URL: https://issues.apache.org/jira/browse/KYLIN-3556
> Project: Kylin
> Issue Type: Bug
> Components: Metadata
> Affects Versions: v2.5.0
> Reporter: Ted Yu
> Assignee: Kaige Liu
> Priority: Minor
> Fix For: v2.5.1
>
>
> In JDBCResourceDAO :
> {code}
> public void execute(Connection connection) throws SQLException {
> synchronized (resPath.intern()) {
> {code}
> Locking on an interned string can cause unexpected locking collisions with
> other part of code.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)