priyeshkaratha opened a new pull request, #11721:
URL: https://github.com/apache/ozone/pull/11721
## What changes were proposed in this pull request?
Before this change, changing any `ozone.om.key.lifecycle.service.*` property
meant restarting OM. This PR makes those properties reconfigurable at runtime
through the OM reconfiguration framework (`ozone admin reconfig --service=OM
... start`).
**Reconfigurable properties** (the new
`KeyLifecycleService.OZONE_KEY_LIFECYCLE_PROPERTIES` set):
- `ozone.om.key.lifecycle.service.enabled`
- `ozone.om.key.lifecycle.service.interval`
- `ozone.om.key.lifecycle.service.timeout`
- `ozone.om.key.lifecycle.service.workers`
- `ozone.om.key.lifecycle.service.delete.batch-size`
- `ozone.om.key.lifecycle.service.mpu.abort.limit.per.task`
- `ozone.om.key.lifecycle.service.delete.cached.directory.max.count`
- `ozone.om.key.lifecycle.service.state.save.interval.ms`
- `ozone.om.key.lifecycle.service.state.save.keys.processed`
- `ozone.om.key.lifecycle.service.move.to.trash.enabled`
## What is the link to the Apache JIRA
HDDS-16640
## How was this patch tested?
Added test case and tested manually
```
bash-5.1$ vi /etc/hadoop/ozone-site.xml
bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 start
OM: Started reconfiguration task on node [om:9862].
bash-5.1$ ozone admin om lifecycle status --service-host om
========================================
Lifecycle Service Status
========================================
IsEnabled: true
IsSuspended: false
No buckets are currently being processed.
========================================
bash-5.1$ vi /etc/hadoop/ozone-site.xml
bash-5.1$
bash-5.1$ ozone admin reconfig --service=OM --address=om:9862 start
OM: Started reconfiguration task on node [om:9862].
bash-5.1$ ozone admin om lifecycle status --service-host om
========================================
Lifecycle Service Status
========================================
IsEnabled: false
No buckets are currently being processed.
========================================
```
--
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]