You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sentry.apache.org by Sergio Pena via Review Board <no...@reviews.apache.org> on 2017/10/13 18:10:21 UTC

Review Request 62983: SENTRY-1986: Fix NPE on createGrantTask from SentryHiveAuthorizationTaskFactoryImpl.java

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

Review request for sentry and kalyan kumar kalvagadda.


Bugs: sentry-1986
    https://issues.apache.org/jira/browse/sentry-1986


Repository: sentry


Description
-------

Fix NPE


Diffs
-----

  sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java ceb3b17714d5dfc4c6186b5f9cf536d6ddbb662b 


Diff: https://reviews.apache.org/r/62983/diff/1/


Testing
-------


Thanks,

Sergio Pena


Re: Review Request 62983: SENTRY-1986: Fix NPE on createGrantTask from SentryHiveAuthorizationTaskFactoryImpl.java

Posted by Alexander Kolbasov <ak...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62983/#review187993
-----------------------------------------------------------




sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java
Line 142 (original), 142 (patched)
<https://reviews.apache.org/r/62983/#comment265049>

    This means that privilegeObj can never be null. But this also shows that dump() is called for no reason all the time here and it is potentially expensive and should be removed.


- Alexander Kolbasov


On Oct. 13, 2017, 6:10 p.m., Sergio Pena wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62983/
> -----------------------------------------------------------
> 
> (Updated Oct. 13, 2017, 6:10 p.m.)
> 
> 
> Review request for sentry and kalyan kumar kalvagadda.
> 
> 
> Bugs: sentry-1986
>     https://issues.apache.org/jira/browse/sentry-1986
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> Fix NPE
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java ceb3b17714d5dfc4c6186b5f9cf536d6ddbb662b 
> 
> 
> Diff: https://reviews.apache.org/r/62983/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Sergio Pena
> 
>


Re: Review Request 62983: SENTRY-1986: Fix NPE on createGrantTask from SentryHiveAuthorizationTaskFactoryImpl.java

Posted by kalyan kumar kalvagadda via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62983/#review188145
-----------------------------------------------------------




sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java
Line 143 (original), 143 (patched)
<https://reviews.apache.org/r/62983/#comment265190>

    This code change is not needed as the above precondition makes sure of it.


- kalyan kumar kalvagadda


On Oct. 13, 2017, 6:10 p.m., Sergio Pena wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62983/
> -----------------------------------------------------------
> 
> (Updated Oct. 13, 2017, 6:10 p.m.)
> 
> 
> Review request for sentry and kalyan kumar kalvagadda.
> 
> 
> Bugs: sentry-1986
>     https://issues.apache.org/jira/browse/sentry-1986
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> Fix NPE
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/SentryHiveAuthorizationTaskFactoryImpl.java ceb3b17714d5dfc4c6186b5f9cf536d6ddbb662b 
> 
> 
> Diff: https://reviews.apache.org/r/62983/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Sergio Pena
> 
>