You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2015/03/25 11:24:53 UTC

[jira] [Created] (LENS-440) ColumnarSQLRewriter.rewrite should not be synchronized

Amareshwari Sriramadasu created LENS-440:
--------------------------------------------

             Summary: ColumnarSQLRewriter.rewrite should not be synchronized
                 Key: LENS-440
                 URL: https://issues.apache.org/jira/browse/LENS-440
             Project: Apache Lens
          Issue Type: Improvement
          Components: driver-jdbc
    Affects Versions: 2.0
            Reporter: Amareshwari Sriramadasu
             Fix For: 2.1


Right now, ColumnarSQLRewriter.rewrite is synchronized because rewriter is cached in JDBCDriver and it uses all class level variables to keep query rewriting state.

Having this synchronized will make other queries wait for rewrite. We should have separate rewriter created for each query or move the state out of ColumnarSQLRewriter sothat it need not be synchronized. 



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