You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "liyang (JIRA)" <ji...@apache.org> on 2018/06/10 01:06:00 UTC

[jira] [Comment Edited] (KYLIN-3400) wipeCache and createCubeDesc make deadlock happenning

    [ https://issues.apache.org/jira/browse/KYLIN-3400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16507221#comment-16507221 ] 

liyang edited comment on KYLIN-3400 at 6/10/18 1:05 AM:
--------------------------------------------------------

This seems introduced by commit:

[https://github.com/apache/kylin/commit/a88403ae0050f6b1b2f903534f2330f03996603c]

 

Reverting the related lines in the commit is a fix candidate.

{{     public ProjectInstance reloadProjectQuietly(String project) throws IOException {}}

{{         try (AutoLock lock = prjMapLock.lockForWrite()) {}}
 {{             ProjectInstance prj = crud.reloadQuietly(project);}}
 {{-            clearL2Cache();}}
 {{+            reloadProjectL2Cache(project);}}
 {{             return prj;}}


was (Author: liyang.gmt8@gmail.com):
This seems introduced by commit:

[https://github.com/apache/kylin/commit/a88403ae0050f6b1b2f903534f2330f03996603c]

 

Reverting the related lines in the commit is a fix candidate.

{{     public ProjectInstance reloadProjectQuietly(String project) throws IOException {}}

{{         try (AutoLock lock = prjMapLock.lockForWrite()) {}}
 {{             ProjectInstance prj = crud.reloadQuietly(project);}}
 {{-            clearL2Cache();}}
 {{+            reloadProjectL2Cache(project);}}
 {{             return prj;}}
 \{{         } }}
 \{{     } }}

 

>  wipeCache and createCubeDesc make deadlock happenning
> ------------------------------------------------------
>
>                 Key: KYLIN-3400
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3400
>             Project: Kylin
>          Issue Type: Bug
>          Components: REST Service
>    Affects Versions: v2.3.0
>            Reporter: powerinf
>            Priority: Major
>         Attachments: kylin_deadlock.log
>
>
> When using  the rest API  create cube , deadlock occasionally appears,the kylin web ui hang,and cound not login ,See the [^kylin_deadlock.log]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)