ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-10445. OM admin CLI to enable force fetching network topology tree from SCM

Open tanvipenumudy opened this issue 1 year ago • 3 comments

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

tanvipenumudy avatar Mar 01 '24 08:03 tanvipenumudy

@kerneltime, @duongkame could you please take a look? Thanks!

tanvipenumudy avatar Mar 04 '24 16:03 tanvipenumudy

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?

ArafatKhan2198 avatar Mar 05 '24 12:03 ArafatKhan2198

@adoroszlai could you please review the changes as well? Thanks!

tanvipenumudy avatar Apr 04 '24 16:04 tanvipenumudy