-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52548/#review151642
-----------------------------------------------------------




lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
 (line 603)
<https://reviews.apache.org/r/52548/#comment220077>

    This should be part of construction time as it is required to be partially 
fetched in some cases.



lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
(line 1435)
<https://reviews.apache.org/r/52548/#comment220078>

    I feel we should write a better test which reproduces the issue clearly.


- Amareshwari Sriramadasu


On Oct. 5, 2016, 7:35 a.m., Rajat Khandelwal wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52548/
> -----------------------------------------------------------
> 
> (Updated Oct. 5, 2016, 7:35 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1345
>     https://issues.apache.org/jira/browse/LENS-1345
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> JDBC query is launched in a thread. On query finish, the thread calls back 
> the query service to update status, which creates a FinishedQuery instance. 
> In the constructor, FinishedQuery is fetching result from the jdbc driver, 
> which waits on the original thread to complete. Basically the thread is 
> waiting for itself. 
> 
> In the callback, query context is acquired by the thread, and can't be 
> acquired again. Which means that get calls for this query won't return and 
> will stay blocked. This can end up blocking all the grizzly threads.
> 
> 
> Diffs
> -----
> 
>   lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/JDBCDriver.java 
> f805ec6ebccd18de3bfcd0f1ab8626f7330dd6f1 
>   
> lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
>  87d7cb0d5036bd0de4361cc146404a7fee478bac 
>   
> lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
> 3f71aef9ca180d834538604925c71d1d87be8e26 
> 
> Diff: https://reviews.apache.org/r/52548/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Rajat Khandelwal
> 
>

Reply via email to