[ https://issues.apache.org/jira/browse/KYLIN-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17114073#comment-17114073 ]
ASF subversion and git services commented on KYLIN-2971: -------------------------------------------------------- Commit b8d55d08301779885dd6418651c979ccaaaf6165 in kylin's branch refs/heads/master from Zhichao Zhang [ https://gitbox.apache.org/repos/asf?p=kylin.git;h=b8d55d0 ] KYLIN-2971 Fix the wrong "Realization Names" and missing "Cuboid Ids" in logQuery when hit cache Problems: 1. The value of "Realization Names" in logQuery is wrong when query two different sqls within the same thread and second sql hits cache: Example: 1). query Q1 hit project P1 and cube C1; 2). query Q2 hit project P2 and cube C2 in the same thread with Q1; 3). Q1 comes again and hits cache, it will show project P1 and cube C2. However, it should be cube C1. 2. Missing "Cuboid Ids" in logQuery when hit cache in a new thread which does not have OLAPContext; Solutions: 1. Call 'OLAPContext.clearThreadLocalContexts()' before a query starts; 2. Get "Cuboid Ids" from SQLResponse when "OLAPContext.getThreadLocalContexts()" is null; > Fix the wrong "Realization Names" in logQuery when hit cache > ------------------------------------------------------------ > > Key: KYLIN-2971 > URL: https://issues.apache.org/jira/browse/KYLIN-2971 > Project: Kylin > Issue Type: Bug > Reporter: Zhong Yanghong > Assignee: Zhichao Zhang > Priority: Minor > Fix For: v3.1.0 > > Attachments: APACHE-KYLIN-2971.patch > > > # The value of "Realization Names" in logQuery is wrong when query two > different sqls within the same thread and second sql hits cache: > Example: > 1). query Q1 hit project P1 and cube C1; > 2). query Q2 hit project P2 and cube C2 in the same thread with Q1; > 3). Q1 comes again and hits cache, it will show project P1 and > {color:#f79232}cube C2{color}. However, it should be {color:#f79232}cube > C1{color}. > # Missing "Cuboid Ids" in logQuery when hit cache in a new thread which does > not have OLAPContext; -- This message was sent by Atlassian Jira (v8.3.4#803005)