jojochuang commented on code in PR #9117:
URL: https://github.com/apache/ozone/pull/9117#discussion_r2415105681


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java:
##########
@@ -968,7 +1027,16 @@ public boolean isSstFilteringSvcEnabled() {
     // any interval <= 0 causes IllegalArgumentException from 
scheduleWithFixedDelay
     return serviceInterval > 0;
   }
-  
+
+  public boolean isDefragSvcEnabled() {
+    long serviceInterval = ozoneManager.getConfiguration()
+        .getTimeDuration(OZONE_SNAPSHOT_DEFRAG_SERVICE_INTERVAL,
+            OZONE_SNAPSHOT_DEFRAG_SERVICE_INTERVAL_DEFAULT,
+            TimeUnit.MILLISECONDS);
+    // any interval <= 0 causes IllegalArgumentException from 
scheduleWithFixedDelay

Review Comment:
   but OZONE_SNAPSHOT_DEFRAG_SERVICE_INTERVAL_DEFAULT defaults to -1



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to