> On April 6, 2017, 2:03 p.m., Na Li wrote: > > sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/FullUpdateInitializer.java > > Line 311 (original), 314 (patched) > > <https://reviews.apache.org/r/58130/diff/1/?file=1682896#file1682896line321> > > > > Under what condition will the taskCounter be negative? Should we throw > > exception if it is negative?
It would never be negative. It starts non-negative and will go to zero. The change expresses the desied condition more clearly - we are waiting until the value becomes zero. - Alexander ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/58130/#review171041 ----------------------------------------------------------- On April 1, 2017, 12:35 a.m., Alexander Kolbasov wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/58130/ > ----------------------------------------------------------- > > (Updated April 1, 2017, 12:35 a.m.) > > > Review request for sentry, Hao Hao, kalyan kumar kalvagadda, Na Li, and Vadim > Spector. > > > Bugs: SENTRY-1684 > https://issues.apache.org/jira/browse/SENTRY-1684 > > > Repository: sentry > > > Description > ------- > > SENTRY-1684 FullUpdateInitializer has a race condition in handling results > list > > > Diffs > ----- > > > sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/FullUpdateInitializer.java > 146cea2b9467ce82b69bbf402933b1aa350bcd46 > > > Diff: https://reviews.apache.org/r/58130/diff/1/ > > > Testing > ------- > > > Thanks, > > Alexander Kolbasov > >