[ 
https://issues.apache.org/jira/browse/HDDS-9944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Krishna Kumar Asawa updated HDDS-9944:
--------------------------------------
    Labels: newbie  (was: )

> NSSummary commands should close OzoneClient
> -------------------------------------------
>
>                 Key: HDDS-9944
>                 URL: https://issues.apache.org/jira/browse/HDDS-9944
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone CLI
>            Reporter: Attila Doroszlai
>            Priority: Major
>              Labels: newbie
>
> {{NSSummaryAdmin}} creates {{OzoneClient}} for some bucket-related checks.
> # it should close client when no longer needed
> # it should reuse client (or even {{bucket}} after lookup) for all checks
> {code:title=hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/nssummary/NSSummaryAdmin.java}
> 93:    OzoneClient ozoneClient = 
> OzoneClientFactory.getRpcClient(getOzoneConfig());
> 122:    OzoneClient ozoneClient = 
> OzoneClientFactory.getRpcClient(getOzoneConfig());
> 155:    OzoneClient ozoneClient = 
> OzoneClientFactory.getRpcClient(getOzoneConfig());
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to