> On March 20, 2015, 7:19 a.m., Rajat Khandelwal wrote:
> > lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java,
> >  line 420
> > <https://reviews.apache.org/r/32281/diff/1/?file=901168#file901168line420>
> >
> >     Why are we doing get after creation everywhere? Lazy cache wasn't 
> > working out?

This is mainly to update allCubes. allCubes should start giving newly created 
cubes as well.


> On March 20, 2015, 7:19 a.m., Rajat Khandelwal wrote:
> > lens-cli/src/main/java/org/apache/lens/cli/commands/LensDimensionTableCommands.java,
> >  line 157
> > <https://reviews.apache.org/r/32281/diff/1/?file=901165#file901165line157>
> >
> >     Not needed. The contract of `getDimStorages` never allows `null` to be 
> > returned. And the case of `isEmpty` is taken care while iterating.

List can be null when there are no storages. Have hit this in tests, so added. 
isEmpty check during iteration is only for string, not for the list.


> On March 20, 2015, 7:19 a.m., Rajat Khandelwal wrote:
> > lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java,
> >  line 679
> > <https://reviews.apache.org/r/32281/diff/1/?file=901168#file901168line679>
> >
> >     trim needed?

Added with respect all others. But can be removed for storagetablename. Will do.


> On March 20, 2015, 7:19 a.m., Rajat Khandelwal wrote:
> > lens-server/src/main/java/org/apache/lens/server/metastore/CubeMetastoreServiceImpl.java,
> >  line 1359
> > <https://reviews.apache.org/r/32281/diff/1/?file=901169#file901169line1359>
> >
> >     Since `CubeMetastoreClient` accepts both `Table` and `String` as 
> > argument for hive tables, it can take both `Cube` and `String` as argument 
> > for `getLatestDateOfCube`'s first argument. Then internally, the string 
> > version checks for valid cube and calls the cube version.

CubeMetastoreClient does not throw WebApplicationException. Not changing the 
behavior, as this jira was only doing some improvements.


- Amareshwari


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


On March 20, 2015, 7:17 a.m., Amareshwari Sriramadasu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32281/
> -----------------------------------------------------------
> 
> (Updated March 20, 2015, 7:17 a.m.)
> 
> 
> Review request for lens, Jaideep dhok and Rajat Khandelwal.
> 
> 
> Bugs: LENS-404
>     https://issues.apache.org/jira/browse/LENS-404
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> Changes include :
> - getAll* methods in cube metastore are responded through cache
> - isCube and isDimension calls changed to look at allCubes and allDimensions 
> instead of hitting metastore when table does not exist
> - Changed the caching keys to have .trim().toLowercase() on all 
> updates/lookups. They are lookups/updates in code which dont trim names, 
> wanted to the cache to agnostic to those.
> - Changed multiple calls of getClient(sessionid) in CubeMetastoreService in 
> single method, as getClient() is not trivial call
> 
> 
> Diffs
> -----
> 
>   
> lens-cli/src/main/java/org/apache/lens/cli/commands/LensDimensionTableCommands.java
>  83fb8c8 
>   
> lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeDimensionTable.java 
> a188a41 
>   lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeFactTable.java 
> e0e87ab 
>   
> lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
>  61e511f 
>   
> lens-server/src/main/java/org/apache/lens/server/metastore/CubeMetastoreServiceImpl.java
>  8ea6547 
> 
> Diff: https://reviews.apache.org/r/32281/diff/
> 
> 
> Testing
> -------
> 
> Rerunning tests. will update once done
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Lens Checkstyle Rules ............................. SUCCESS [2.173s]
> [INFO] Lens .............................................. SUCCESS [1.769s]
> [INFO] Lens API .......................................... SUCCESS [5.111s]
> [INFO] Lens API for server and extensions ................ SUCCESS [6.955s]
> [INFO] Lens Cube ......................................... SUCCESS [2:06.767s]
> [INFO] Lens DB storage ................................... SUCCESS [10.459s]
> [INFO] Lens Query Library ................................ SUCCESS [4.952s]
> [INFO] Lens Hive Driver .................................. SUCCESS [2:32.339s]
> [INFO] Lens Driver for JDBC .............................. SUCCESS [17.878s]
> [INFO] Lens Server ....................................... SUCCESS [4:15.372s]
> [INFO] Lens client ....................................... SUCCESS [21.028s]
> [INFO] Lens CLI .......................................... SUCCESS [2:51.992s]
> [INFO] Lens Examples ..................................... SUCCESS [0.769s]
> [INFO] Lens Distribution ................................. SUCCESS [9.239s]
> [INFO] Lens ML Lib ....................................... SUCCESS [42.785s]
> [INFO] Lens Regression ................................... SUCCESS [0.452s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 13:51.009s
> [INFO] Finished at: Fri Mar 20 05:51:42 UTC 2015
> [INFO] Final Memory: 110M/1132M
> [INFO] 
> ------------------------------------------------------------------------
> 
> 
> Thanks,
> 
> Amareshwari Sriramadasu
> 
>

Reply via email to