HDDS-10445. OM admin CLI to enable force fetching network topology tree from SCM
What changes were proposed in this pull request?
OM has a background thread running that periodically refetches the updated network topology layout information from SCM for the refresh duration frequency of every one hour (default).
This change introduces an OM admin CLI for force fetching the network topology tree information from SCM (on demand) without having to rely on the configuration: ozone.om.network.topology.refresh.duration.
CLI usage:
ozone admin om fetch-topology-tree -id=omServiceId
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10445
How was this patch tested?
- Added integration test.
- Green Git CI: https://github.com/tanvipenumudy/ozone/actions/runs/8108558196
@kerneltime, @duongkame could you please take a look? Thanks!
Thanks for working on this, @tanvipenumudy. I don't see any tests written for it yet. Would you mind adding an integration test to verify your results, please?
@adoroszlai could you please review the changes as well? Thanks!