> On June 12, 2019, 1:32 p.m., Ashutosh Mestry wrote: > > repository/src/main/java/org/apache/atlas/util/AtlasMetricsUtil.java > > Lines 176 (patched) > > <https://reviews.apache.org/r/70840/diff/2/?file=2149254#file2149254line176> > > > > Should this be rollback?
Transactions can be terminated manually with commit() or rollback(). > On June 12, 2019, 1:32 p.m., Ashutosh Mestry wrote: > > repository/src/main/java/org/apache/atlas/util/AtlasMetricsUtil.java > > Line 182 (original), 188 (patched) > > <https://reviews.apache.org/r/70840/diff/2/?file=2149254#file2149254line188> > > > > In general, if commit is done within catch, it may make sense to have > > it in finally. commit is already applied in try block for each runnable thread, moving it to finally() would apply commit() twice which is not desirable. > On June 12, 2019, 1:32 p.m., Ashutosh Mestry wrote: > > repository/src/main/java/org/apache/atlas/util/AtlasMetricsUtil.java > > Lines 199 (patched) > > <https://reviews.apache.org/r/70840/diff/2/?file=2149254#file2149254line199> > > > > Rollback instead of commit? Transactions can be terminated with commit() or rollback(). - Sarath ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/70840/#review215858 ----------------------------------------------------------- On June 12, 2019, 2:04 p.m., Sarath Subramanian wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/70840/ > ----------------------------------------------------------- > > (Updated June 12, 2019, 2:04 p.m.) > > > Review request for atlas, Ashutosh Mestry, Aadarsh Jajodia, Sridhar K, Le Ma, > and Madhan Neethiraj. > > > Bugs: ATLAS-3276 > https://issues.apache.org/jira/browse/ATLAS-3276 > > > Repository: atlas > > > Description > ------- > > Fix stale transactions in atlas due to ATLAS-3246 > > > Diffs > ----- > > > graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraphIndexClient.java > 4dd641da7 > repository/src/main/java/org/apache/atlas/services/MetricsService.java > 8fb68e926 > repository/src/main/java/org/apache/atlas/util/AtlasMetricsUtil.java > 0c86aff2c > > > Diff: https://reviews.apache.org/r/70840/diff/3/ > > > Testing > ------- > > No longer see stale transaction alerts in atlas logs. > > Precommit: > https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/1199/console > > > Thanks, > > Sarath Subramanian > >