You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Rajat Khandelwal (JIRA)" <ji...@apache.org> on 2017/05/04 08:02:04 UTC
[jira] [Work started] (LENS-1418) LensClient is not thread safe
[ https://issues.apache.org/jira/browse/LENS-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on LENS-1418 started by Rajat Khandelwal.
----------------------------------------------
> LensClient is not thread safe
> -----------------------------
>
> Key: LENS-1418
> URL: https://issues.apache.org/jira/browse/LENS-1418
> Project: Apache Lens
> Issue Type: Bug
> Components: client
> Reporter: Rajat Khandelwal
> Assignee: Rajat Khandelwal
>
> Using one lens client to fire two queries in two threads results in discrepencies. LensClient has a {{Map<QueryHandle, LensStatement>}} and also has a cached instance of {{LensStatement}}. When two threads fire queries, both use the same statement object. {{LensStatement}} object in turn caches {{LensQuery}} Object. So whichever thread fired query last is the last one to set lens query inside statement causing {{LensClient.getStatement().getQuery()}} to return that query object for all threads.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)