You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/04 16:02:00 UTC

[jira] [Updated] (HDDS-4792) Redundant state check in KeyValueHandler.handleDeleteChunk

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

ASF GitHub Bot updated HDDS-4792:
---------------------------------
    Labels: pull-request-available  (was: )

> 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
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org