> On Nov. 8, 2017, 7 a.m., Alexander Kolbasov wrote:
> > Do you also want to update PathUpdate.parsePath() to be consistent?

I will check with Vadim on that.


> On Nov. 8, 2017, 7 a.m., Alexander Kolbasov wrote:
> > sentry-core/sentry-core-common/src/main/java/org/apache/sentry/core/common/utils/PathUtils.java
> > Line 220 (original), 226 (patched)
> > <https://reviews.apache.org/r/63645/diff/1/?file=1884155#file1884155line226>
> >
> >     Do we really need to chck for null? Can we specify the non-null value 
> > as a contract?

It doesn't hurt?


- Arjun


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


On Nov. 8, 2017, 2:59 p.m., Arjun Mishra wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/63645/
> -----------------------------------------------------------
> 
> (Updated Nov. 8, 2017, 2:59 p.m.)
> 
> 
> Review request for sentry, Sergio Pena and Vadim Spector.
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> When retrieving full path image update, we split a path by "/" and create HMS 
> Path entries. However, the leading "/" presence will cause issues because on 
> splitting the value at index 0 will be empty. This will affect the creation 
> of HMS path entries.
> 
> 
> Diffs
> -----
> 
>   
> sentry-core/sentry-core-common/src/main/java/org/apache/sentry/core/common/utils/PathUtils.java
>  cef8bd734 
>   
> sentry-core/sentry-core-common/src/test/java/org/apache/sentry/core/common/utils/TestPathUtils.java
>  8419b9d5e 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
>  7217dea7a 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/NotificationProcessor.java
>  d92f23e63 
>   
> sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java
>  cf83e7796 
> 
> 
> Diff: https://reviews.apache.org/r/63645/diff/2/
> 
> 
> Testing
> -------
> 
> mvn -f sentry-provider/sentry-provider-db/pom.xml test -Dtest=TestSentryStore
> mvn -f sentry-core/sentry-core-common/pom.xml test -Dtest=TestPathUtils
> 
> 
> Thanks,
> 
> Arjun Mishra
> 
>

Reply via email to