> On May 17, 2018, 4:06 p.m., kalyan kumar kalvagadda wrote: > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > > Lines 169-173 (original), 171-178 (patched) > > <https://reviews.apache.org/r/67174/diff/2/?file=2024614#file2024614line172> > > > > This can be in seperate patch.
There are more places involved > On May 17, 2018, 4:06 p.m., kalyan kumar kalvagadda wrote: > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > > Lines 805 (patched) > > <https://reviews.apache.org/r/67174/diff/2/?file=2024614#file2024614line806> > > > > Can you make this API interface simple? Currently there are two inputs > > from this method to the caller. > > 1. Return value > > 2. privilegesToRemove what's your suggestion on returning two outuputs? > On May 17, 2018, 4:06 p.m., kalyan kumar kalvagadda wrote: > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > > Lines 835 (patched) > > <https://reviews.apache.org/r/67174/diff/2/?file=2024614#file2024614line836> > > > > Isn't this a duplicate DB operation? > > > > entityPrivileges which are passed as arguments is retrieved from the > > database. You can simplt try to find tNotAll in entityPrivileges. will update > On May 17, 2018, 4:06 p.m., kalyan kumar kalvagadda wrote: > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > > Lines 1039 (patched) > > <https://reviews.apache.org/r/67174/diff/2/?file=2024614#file2024614line1049> > > > > Most of the private methods could be generic. but the privilege function names are not generic - Na ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67174/#review203329 ----------------------------------------------------------- On May 17, 2018, 1:28 a.m., Na Li wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/67174/ > ----------------------------------------------------------- > > (Updated May 17, 2018, 1:28 a.m.) > > > Review request for sentry, Alexander Kolbasov, Arjun Mishra, kalyan kumar > kalvagadda, and Sergio Pena. > > > Bugs: sentry-2156 > https://issues.apache.org/jira/browse/sentry-2156 > > > Repository: sentry > > > Description > ------- > > Add functions related to grant/revoke privileges to/from user > > Fix the bugs related to grant/revoke partial privileges. They are caused by > adding fine grained privileges (CRATE, DROP, ALTER) > add test cases for grant/revoke privileges to/from user > > > Diffs > ----- > > > sentry-core/sentry-core-common/src/main/java/org/apache/sentry/service/common/ServiceConstants.java > 71e9585 > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyStoreProcessor.java > 816cfe1 > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/QueryParamBuilder.java > 8a77fc1 > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > cafe2b5 > > sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java > 0322cc3 > > > Diff: https://reviews.apache.org/r/67174/diff/2/ > > > Testing > ------- > > all test cases in TestSentryStore passed > > > Thanks, > > Na Li > >