fateh288 commented on code in PR #668:
URL: https://github.com/apache/ranger/pull/668#discussion_r2353332589


##########
tagsync/src/main/java/org/apache/ranger/tagsync/sink/tagadmin/TagAdminRESTSink.java:
##########
@@ -181,16 +181,13 @@ public void run() {
                     return;
                 }
             } else {
-                // Only sleep when HA is enabled, similar to user sync
-                if (TagSyncConfig.getInstance().isTagSyncHAEnabled()) {
-                    try {
-                        long sleepInterval = 
TagSyncConfig.getTagSyncHAPassiveSleepInterval();
-                        LOG.debug("Sleeping for [{}] milliSeconds as this 
server is running in passive mode", sleepInterval);
-                        Thread.sleep(sleepInterval);
-                    } catch (InterruptedException interrupted) {
-                        LOG.error("Interrupted..: ", interrupted);
-                        return;
-                    }
+                try {
+                    long sleepInterval = 
TagSyncConfig.getTagSyncHAPassiveSleepInterval();
+                    LOG.debug("Sleeping for [{}] milliSeconds as this server 
is running in passive mode", sleepInterval);
+                    Thread.sleep(sleepInterval);
+                } catch (InterruptedException interrupted) {

Review Comment:
   @vyommani 
   Can you please elaborate on this -- when we do this and when we don't do 
this ?
   We might also want to change other occurrences where we are catching the 
exception -- we are not doing explicit interrupt at other places within this 
class and other places in the code



-- 
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