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

hongbin ma commented on KYLIN-1992:
-----------------------------------

please don't feel sorry for this, we're both learning from the issues.

So the problem is only about logging, right? if so we can think about make the 
invoke at both OLAPTableScan and REST, then the problem can be removed without 
any side effects

> Clear ThreadLocal Contexts when query failed before scaning HBase
> -----------------------------------------------------------------
>
>                 Key: KYLIN-1992
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1992
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: kangkaisen
>            Assignee: kangkaisen
>            Priority: Minor
>         Attachments: KYLIN-1992.patch
>
>
> currently, we call `OLAPContext.clearThreadLocalContexts()` function before 
> scaning HBase.
> if query failed before scaning HBase, we would get wrong `realization` of the 
> query in the log possibly.
> Because the thread pool of Tomcat multiplexed the thread and didn't clear 
> ThreadLocal variable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to