----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62136/#review184767 -----------------------------------------------------------
sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/HMSFollower.java Lines 188-202 (original), 188-196 (patched) <https://reviews.apache.org/r/62136/#comment260971> Just collapse to a single catch? - Vamsee Yarlagadda On Sept. 7, 2017, 1:24 a.m., Sergio Pena wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62136/ > ----------------------------------------------------------- > > (Updated Sept. 7, 2017, 1:24 a.m.) > > > Review request for sentry, Alexander Kolbasov and Vamsee Yarlagadda. > > > Bugs: sentry-1928 > https://issues.apache.org/jira/browse/sentry-1928 > > > Repository: sentry > > > Description > ------- > > The patch is closing the HMS connections on the HiveNotificationFetcher if > any Exception occurrs. The HMSFollower has also code to close the connection > on any Exception, but I do it for legacy reasons as I think it is not > required anymore. The HMSFollower needs some refactoring, though. > > > Diffs > ----- > > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/HMSFollower.java > d4feb380fa0f3bd5f237609a107295a2d23eae3b > > sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/HiveNotificationFetcher.java > 4d329921bb4bc540992084687726155cb0373f0f > > > Diff: https://reviews.apache.org/r/62136/diff/2/ > > > Testing > ------- > > > Thanks, > > Sergio Pena > >