Skip to content

HDDS-16015. Make listStatusLight skip SCM pipeline refresh. - #10894

Open
aryangupta1998 wants to merge 1 commit into
apache:masterfrom
aryangupta1998:du_command
Open

HDDS-16015. Make listStatusLight skip SCM pipeline refresh.#10894
aryangupta1998 wants to merge 1 commit into
apache:masterfrom
aryangupta1998:du_command

Conversation

@aryangupta1998

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

-> Updated the OM light listing path so listStatusLight() no longer triggers SCM-backed pipeline refresh.
-> Added a refreshPipelineInfo switch in KeyManagerImpl.listStatus(...) so normal listings keep existing behavior while light listings stay metadata-only.
-> Wired OmMetadataReader and OmSnapshot to use the light path consistently, and added a unit test to verify no pipeline refresh call is made.
Why
-> ozone fs -du and other light listing flows only need metadata and size information.
-> Skipping pipeline refresh reduces unnecessary SCM traffic and lowers latency for light read paths.
-> Normal listStatus() behavior remains unchanged.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-16015

How was this patch tested?

-> Added a unit test in TestKeyManagerUnit that calls listStatusLight() and verifies SCM container pipeline lookup is not invoked.
-> Existing listStatus() behavior remains covered by the current unit test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant