> On Feb. 16, 2017, 10:47 p.m., Alexander Kolbasov wrote: > > I would consider refactoring this a bit. IMO it is better to have > > SentryStore as just a DB access layer class and have services like this > > cleaner to be created outside of SentryStore by consumers so whoever sets > > up SentryStore should decide whether they want to have a cleaner running as > > well (and we need to make sure that we do not run multiple cleaners). Some > > tests for example, may create multiple SentryStore instances.
Agree. - Lei ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/56720/#review165907 ----------------------------------------------------------- On Feb. 16, 2017, 3:37 p.m., Lei Xu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/56720/ > ----------------------------------------------------------- > > (Updated Feb. 16, 2017, 3:37 p.m.) > > > Review request for sentry, Alexander Kolbasov and Hao Hao. > > > Bugs: SENTRY-1611 > https://issues.apache.org/jira/browse/SENTRY-1611 > > > Repository: sentry > > > Description > ------- > > Provide a background service to periodically purge path and permission delta > change tables. > > > Diffs > ----- > > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java > 4cc123fd0de05a055b4276d213eafc0eb070213d > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/HMSFollower.java > 783c0fcf5e338897b56c4e17ba1669394c02e8a3 > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/ServiceConstants.java > e10ddfd0372c985e5a8bd6d5b3ca07d5cb618a68 > > sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/persistent/TestSentryStore.java > dfaac1555fe729efab3f8fdccb914978001fee56 > > Diff: https://reviews.apache.org/r/56720/diff/ > > > Testing > ------- > > Run `mvn test -Dtest=TestSentryStore` > > > Thanks, > > Lei Xu > >
