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



lens-cube/src/test/java/org/apache/lens/driver/cube/TestRewriting.java
<https://reviews.apache.org/r/32157/#comment124820>

    I am not removing the runnable from the map. Only marking it as success or 
failures. Later during chained exec we will skip estimate if rewrite was 
failure.
    
    Will add asserts for rewritten query.



lens-cube/src/test/java/org/apache/lens/driver/cube/TestRewriting.java
<https://reviews.apache.org/r/32157/#comment124821>

    This is not thrown at rewrite phase any more since rewrite is not actually 
happening until later in query exec service.



lens-server-api/src/main/java/org/apache/lens/server/api/LensConfConstants.java
<https://reviews.apache.org/r/32157/#comment124822>

    Ok.



lens-server-api/src/main/java/org/apache/lens/server/api/query/AbstractQueryContext.java
<https://reviews.apache.org/r/32157/#comment124823>

    Other one sets the whole map. This modifies only for a driver. This is 
required since each thread will only set query for itself now.
    
    I'll add javadoc.



lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
<https://reviews.apache.org/r/32157/#comment124824>

    Changed to what? This is iterator order from 
ctx.getDriverContext.getDrivers. It is preserved to the end of call.



lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
<https://reviews.apache.org/r/32157/#comment124825>

    I am not in favor of making it query conf, that way single user can block 
all jersey threads.
    
    Will make it a field variable in query exec service, read at init time.



lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
<https://reviews.apache.org/r/32157/#comment124826>

    So that we don't consider it during driver selection.
    
    Why do we need the state if its not getting selected anyway?


- Jaideep dhok


On March 19, 2015, 6:04 a.m., Jaideep dhok wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32157/
> -----------------------------------------------------------
> 
> (Updated March 19, 2015, 6:04 a.m.)
> 
> 
> Review request for lens and Amareshwari Sriramadasu.
> 
> 
> Bugs: LENS-356
>     https://issues.apache.org/jira/browse/LENS-356
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> Changes -
> 1. Refactored rewrite and estimate calls to return closures instead of 
> directly computing result.
> 2. QueryExecutionService.rewriteAndSelect will compose a chained runnable for 
> rewrite and estimate and run them in background thread pool
> 3. Changed existing tests to match current implementation - mainly changed 
> asserts for validation in case of failures. Assertions are still there, just 
> that their verification is changed.
> 4. Verified all impacting unit tests they are passing as of now.
> 5. Proceeding with drivers which return an estimate within a timeout. If no 
> drivers return without an estimate, throwing exception
> 
> 
> Diffs
> -----
> 
>   lens-cube/src/main/java/org/apache/lens/driver/cube/RewriteUtil.java 
> de79423e701d1fa935d7518fc42d128f261b8b46 
>   lens-cube/src/test/java/org/apache/lens/driver/cube/TestRewriting.java 
> 00a039774b5f9e66db4828800c8f5af2eb9f17b1 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/LensConfConstants.java
>  cdc5fd72f63de0f6b4555dd5a08e004013ad7bee 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/query/AbstractQueryContext.java
>  3101ed6410646f558431781d0833ecc92bde01dc 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java
>  b53c4b982ac55320c27a00e01bd1c5e4170d1263 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/MockDriver.java
>  12f6833b70188f72c4c5a9904a6e7d108d7e584c 
>   
> lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
>  8da3fd55a95ee8421c85b9d6002a099014497028 
>   lens-server/src/main/resources/lensserver-default.xml 
> 57fbbc71ede1978d59140f7f3224f90ee8dd2403 
>   
> lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
> 0f20beed578a4aa40b71928199d873e251b81e4e 
>   lens-server/src/test/resources/lens-site.xml 
> 2adf7628d765e34a989e1bc66138d81ca16f949b 
>   src/site/apt/admin/config.apt 9e06da368c27bca97f1cf51f484ecdf101d7caa8 
> 
> Diff: https://reviews.apache.org/r/32157/diff/
> 
> 
> Testing
> -------
> 
> Fixed existing impacted tests due to refactor.
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Lens Checkstyle Rules ............................. SUCCESS [2.093s]
> [INFO] Lens .............................................. SUCCESS [1.742s]
> [INFO] Lens API .......................................... SUCCESS [5.839s]
> [INFO] Lens API for server and extensions ................ SUCCESS [6.307s]
> [INFO] Lens Cube ......................................... SUCCESS [2:05.819s]
> [INFO] Lens DB storage ................................... SUCCESS [9.854s]
> [INFO] Lens Query Library ................................ SUCCESS [5.304s]
> [INFO] Lens Hive Driver .................................. SUCCESS [2:34.289s]
> [INFO] Lens Driver for JDBC .............................. SUCCESS [17.355s]
> [INFO] Lens Server ....................................... SUCCESS [4:21.122s]
> [INFO] Lens client ....................................... SUCCESS [20.654s]
> [INFO] Lens CLI .......................................... SUCCESS [1:43.459s]
> [INFO] Lens Examples ..................................... SUCCESS [0.899s]
> [INFO] Lens Distribution ................................. SUCCESS [9.999s]
> [INFO] Lens ML Lib ....................................... SUCCESS [44.152s]
> [INFO] Lens Regression ................................... SUCCESS [0.453s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 12:50.381s
> [INFO] Finished at: Wed Mar 18 08:41:20 UTC 2015
> [INFO] Final Memory: 109M/1226M
> [INFO] 
> ------------------------------------------------------------------------
> 
> 
> Thanks,
> 
> Jaideep dhok
> 
>

Reply via email to