-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-13464. Make ozone.snapshot.filtering.service.interval reconfigurable #8825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jojochuang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loos good to me. But why make it reconfigurble?
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/SstFilteringService.java
Outdated
Show resolved
Hide resolved
swamirishi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
|
Ok please update jira. Right now it's blank empty. |
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @smengcl for the patch.
...e/integration-test/src/test/java/org/apache/hadoop/ozone/reconfig/TestOmReconfiguration.java
Outdated
Show resolved
Hide resolved
...e/integration-test/src/test/java/org/apache/hadoop/ozone/reconfig/TestOmReconfiguration.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
Outdated
Show resolved
Hide resolved
...e/integration-test/src/test/java/org/apache/hadoop/ozone/reconfig/TestOmReconfiguration.java
Outdated
Show resolved
Hide resolved
Thanks @adoroszlai ! I have addressed your comments. |
…pshotSSTFilteringServiceInterval for consistency with configuration key naming.
ce81733 to
13d5c57
Compare
|
Thanks @smengcl for updating the patch. |
|
Thanks @jojochuang @swamirishi @adoroszlai for the reviews and comments. |
* 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: