Janus Chow created HDDS-4792:
--------------------------------

             Summary: 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


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