You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Billy Liu (JIRA)" <ji...@apache.org> on 2017/08/09 08:03:00 UTC
[jira] [Resolved] (KYLIN-2780) QueryController.getMetadata and
CacheController.wipeCache may be deadlock
[ https://issues.apache.org/jira/browse/KYLIN-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Billy Liu resolved KYLIN-2780.
------------------------------
Resolution: Duplicate
Fix Version/s: v2.1.0
> QueryController.getMetadata and CacheController.wipeCache may be deadlock
> -------------------------------------------------------------------------
>
> Key: KYLIN-2780
> URL: https://issues.apache.org/jira/browse/KYLIN-2780
> Project: Kylin
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: v1.5.4.1, v2.0.0
> Reporter: Fangyuan Deng
> Assignee: liyang
> Fix For: v2.1.0
>
> Attachments: jstack.log, KYLIN-2780.0.patch
>
>
> When we send update metadata request to the query sever manually,
> while some getMetadata requests come,
> deadlock may happen.
> The jstack log is listed below.
> and we add a double check in Broadcaster.getInstance to prevent lock each time.
> public static Broadcaster getInstance(KylinConfig config) {
> Broadcaster r = CACHE.get(config);
> if (r != null) {
> return r;
> }
> synchronized (CACHE) {
> r = CACHE.get(config);
> if (r != null) {
> return r;
> }
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)