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

Marton Elek resolved HDDS-4792.
-------------------------------
    Fix Version/s: 1.2.0
       Resolution: Fixed

> Redundant state check in KeyValueHandler.handleDeleteChunk
> ----------------------------------------------------------
>
>                 Key: HDDS-4792
>                 URL: https://issues.apache.org/jira/browse/HDDS-4792
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Janus Chow
>            Assignee: Janus Chow
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.2.0
>
>
> In KeyValueHandler.handleDeleteChunk, the state of container was checked 
> twice as below:
> {code:java}
> try {
>   checkContainerIsHealthy(kvContainer);
> } catch (StorageContainerException sce) {
>   return ContainerUtils.logAndReturnError(LOG, sce, request);
> }
> try {
>   checkContainerOpen(kvContainer);
>   ...
> }{code}
> The check of healthy can be removed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to