kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaofeng SHI (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KYLIN-3556) Interned string should not be used as lock object
Date Tue, 30 Oct 2018 06:12:00 GMT

     [ https://issues.apache.org/jira/browse/KYLIN-3556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shaofeng SHI resolved KYLIN-3556.
---------------------------------
    Resolution: Fixed

> 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)

Mime
View raw message