arunsarin85 commented on code in PR #10951:
URL: https://github.com/apache/ozone/pull/10951#discussion_r3740594493
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOmSnapshotCheckpointDbContent.java:
##########
@@ -110,7 +110,8 @@ private void startCluster() throws Exception {
conf = new OzoneConfiguration();
conf.setBoolean(OZONE_FILESYSTEM_SNAPSHOT_ENABLED_KEY, true);
- conf.setInt(OZONE_SNAPSHOT_DEFRAG_SERVICE_INTERVAL, 7200);
+ // Disable background defrag; this test drives defrag manually via
triggerSnapshotDefrag().
+ conf.setInt(OZONE_SNAPSHOT_DEFRAG_SERVICE_INTERVAL, -1);
Review Comment:
Yes used setTimeDuration(..., 2, HOURS) rather than setInt(7200) because
Copilot also flagged that this key is read via getTimeDuration(...,
MILLISECONDS) in KeyManagerImpl, so a bare setInt(7200) is treated as 7200 ms
(~7.2 s), not 7200 seconds.
https://github.com/arunsarin85/ozone/actions/runs/31251388868/job/93088509196
--
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]