Uh oh!
There was an error while loading. Please reload this page.
HDDS-13464. Make ozone.snapshot.filtering.service.interval reconfigurable - #8825
Conversation
jojochuang
left a comment
There was a problem hiding this comment.
Loos good to me. But why make it reconfigurble?
Uh oh!
There was an error while loading. Please reload this page.
swamirishi
left a comment
There was a problem hiding this comment.
LGTM @smengcl thanks for the patch
This would give us flexibility to disable/enable sst filtering service without having to restart OM. Through a workaround we can use the snapshot feature to get a consistent point in time view of the om rocksdb(on all the 3 oms) when sst filtering service is disabled. |
jojochuang
commented
Jul 18, 2025
Ok please update jira. Right now it's blank empty. |
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @smengcl for the patch.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks @adoroszlai ! I have addressed your comments. |
…pshotSSTFilteringServiceInterval for consistency with configuration key naming.
adoroszlai
commented
Jul 22, 2025
Thanks @smengcl for updating the patch. |
smengcl
commented
Jul 22, 2025
Thanks @jojochuang@swamirishi@adoroszlai for the reviews and comments. |
Uh oh!
There was an error while loading. Please reload this page.
* master: (730 commits) HDDS-13083. Handle cases where block deletion generates tree file before scanner (apache#8565) HDDS-12982. Reduce log level for snapshot validation failure (apache#8851) HDDS-13396. Documentation: Improve the top-level overview page for new users. (apache#8753) HDDS-13176. containerIds table value format change to proto from string (apache#8589) HDDS-13449. Incorrect Interrupt Handling for DirectoryDeletingService and KeyDeletingService (apache#8817) HDDS-2453. Add Freon tests for S3 MPU Keys (apache#8803) HDDS-13237. Container data checksum should contain block IDs. (apache#8773) HDDS-13489. Fix SCMBlockdeleting unnecessary iteration in corner case. (apache#8847) HDDS-13464. Make ozone.snapshot.filtering.service.interval reconfigurable (apache#8825) HDDS-13473. Amend validation for OZONE_OM_SNAPSHOT_DB_MAX_OPEN_FILES (apache#8829) HDDS-13435. Add an OzoneManagerAuthorizer interface (apache#8840) HDDS-8565. Recon memory leak in NSSummary (apache#8823). HDDS-12852. Implement a sliding window counter utility (apache#8498) HDDS-12000. Add unit test for RatisContainerSafeModeRule and ECContainerSafeModeRule (apache#8801) HDDS-13092. Container scanner should trigger volume scan when marking a container unhealthy (apache#8603) HDDS-13070. OM Follower changes to create and place sst files from hardlink file. (apache#8761) HDDS-13482. Mark testWriteStateMachineDataIdempotencyWithClosedContainer as flaky HDDS-13481. Fix success latency metric in SCM panels of deletion grafana dashboard (apache#8835) HDDS-13468. Update default value of ozone.scm.ha.dbtransactionbuffer.flush.interval. (apache#8834) HDDS-13410. Control block deletion for each DN from SCM. (apache#8767) ... hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerReplicaInfo.java hadoop-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/container/ReconcileSubcommand.java hadoop-ozone/cli-admin/src/test/java/org/apache/hadoop/hdds/scm/cli/container/TestReconcileSubcommand.java
…l reconfigurable (apache#8825) (cherry picked from commit c6c86f9) Conflicts: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFsSnapshot.java hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshot.java hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/reconfig/TestOmReconfiguration.java hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
What changes were proposed in this pull request?
This patch makes
ozone.snapshot.filtering.service.intervalreconfigurable to allow live enabling/disabling/restarting SST filtering service in addition to service interval reconfiguration.A fix has also been included in this PR: any negative value (
<= 0) forozone.snapshot.filtering.service.intervalwould disable theSstFilteringServicenow. Otherwise it throwsIllegalArgumentExceptionfromscheduleWithFixedDelay.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13464
How was this patch tested?
bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 properties OM: Node [om:9862] Reconfigurable properties: ozone.administrators ozone.directory.deleting.service.interval ozone.key.deleting.limit.per.task ozone.om.server.list.max.size ozone.om.volume.listall.allowed ozone.readonly.administrators ozone.snapshot.filtering.service.interval ozone.thread.number.dir.deletion bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 status OM: Reconfiguring status for node [om:9862]: no task was found.Stopping SstFilteringService:
From OM logs:
Starting SstFilteringService again:
OM logs this time:
Note if the config is not changed, ReconfigurationHandler will not be triggered (thus SstFilteringService will not be restarted in this case):
OM logs: