> On July 24, 2018, 5:34 p.m., kalyan kumar kalvagadda wrote: > > Please add a unit test in TestHMSFollower to get full test coverage of your > > change.
I was considering adding unit test to TestHMSFollower but it was all Mock objects where you set what output you want. So it wasn't achieving anything. Let me know if you disagree - Arjun ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68025/#review206399 ----------------------------------------------------------- On July 23, 2018, 9:50 p.m., Arjun Mishra wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/68025/ > ----------------------------------------------------------- > > (Updated July 23, 2018, 9:50 p.m.) > > > Review request for sentry, kalyan kumar kalvagadda, Na Li, and Sergio Pena. > > > Bugs: SENTRY-2324 > https://issues.apache.org/jira/browse/SENTRY-2324 > > > Repository: sentry > > > Description > ------- > > Currently sentry fetches all notifications greater than latest notification > Id from HMS. With this sentry will only fetch notifications over a configured > depth > > > Diffs > ----- > > > sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/ServiceConstants.java > a9afb151a > > sentry-service/sentry-service-server/src/main/java/org/apache/sentry/provider/db/service/persistent/HMSFollower.java > 7667c47d5 > > sentry-service/sentry-service-server/src/main/java/org/apache/sentry/service/thrift/HiveNotificationFetcher.java > 8490d7ac2 > > sentry-service/sentry-service-server/src/test/java/org/apache/sentry/service/thrift/TestHiveNotificationFetcher.java > 83a1becd4 > > > Diff: https://reviews.apache.org/r/68025/diff/1/ > > > Testing > ------- > > $ mvn -f sentry-service/sentry-service-server/pom.xml test > > > Thanks, > > Arjun Mishra > >