You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Nandakumar (Jira)" <ji...@apache.org> on 2024/07/15 08:43:00 UTC

[jira] [Created] (HDDS-11181) Caught exception is immediately rethrown

Nandakumar created HDDS-11181:
---------------------------------

             Summary: Caught exception is immediately rethrown
                 Key: HDDS-11181
                 URL: https://issues.apache.org/jira/browse/HDDS-11181
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Nandakumar


In the following places, the catch block catching exception is re-throwing the same exception without performing any other action. In such cases there is no need to catch the exception.

{{OzoneManagerProtocolClientSideTranslatorPB}}

[https://github.com/apache/ozone/blob/adc7ad34967b15e1bdf28b844eb8cccb2549f420/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/OzoneManagerProtocolClientSideTranslatorPB.java#L2091]

 

{{OzoneManagerUtils}}

[https://github.com/apache/ozone/blob/adc7ad34967b15e1bdf28b844eb8cccb2549f420/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManagerUtils.java#L170]

 

{{OzoneClientCache}}

[https://github.com/apache/ozone/blob/adc7ad34967b15e1bdf28b844eb8cccb2549f420/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/OzoneClientCache.java#L157]

 

{{RandomKeyGenerator}}

[https://github.com/apache/ozone/blob/adc7ad34967b15e1bdf28b844eb8cccb2549f420/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/RandomKeyGenerator.java#L360]

 

[https://github.com/apache/ozone/blob/adc7ad34967b15e1bdf28b844eb8cccb2549f420/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/RandomKeyGenerator.java#L378]

 

[https://github.com/apache/ozone/blob/adc7ad34967b15e1bdf28b844eb8cccb2549f420/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/RandomKeyGenerator.java#L426]

 

{{DeleteVolumeHandler}}

[https://github.com/apache/ozone/blob/adc7ad34967b15e1bdf28b844eb8cccb2549f420/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/volume/DeleteVolumeHandler.java#L232]

 

 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org