kumaab commented on code in PR #545:
URL: https://github.com/apache/ranger/pull/545#discussion_r2006404468


##########
security-admin/src/main/java/org/apache/ranger/common/db/RangerTransactionSynchronizationAdapter.java:
##########
@@ -206,8 +197,17 @@ private void runRunnables(final List<Runnable> runnables, 
final boolean isParent
                             LOG.debug("Failed to commit TransactionService 
transaction, throwable:[{}]", String.valueOf(e));
                         }
                     }
-                }
-                while (isParentTransactionCommitted && 
!isThisTransactionCommitted);
+
+                    isThisTransactionCommitted = result == runnable;

Review Comment:
   I think it's slightly better to keep it outside since `log.info` says there 
will be a retry once all exceptions have been caught from either try blocks. 
`log.info` might be missed if this is kept within the try block.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to