You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/12/11 04:58:31 UTC

[GitHub] [ozone] mukul1987 commented on a change in pull request #1615: HDDS-4451.Handle start & stop of Trash Emptier thread when node becom…

mukul1987 commented on a change in pull request #1615:
URL: https://github.com/apache/ozone/pull/1615#discussion_r540691167



##########
File path: hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/TrashPolicyOzone.java
##########
@@ -107,6 +136,9 @@ public void run() {
         end = ceiling(now, emptierInterval);
         try {                                     // sleep for interval
           Thread.sleep(end - now);
+          if (!om.isLeader()){
+            return;

Review comment:
       This should be continue here ?




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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org