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

Tsz-wo Sze updated HDDS-12946:
------------------------------
    Description: 
Before HDDS-12830, we throw IOException for many different causes such as the 
exceptions from RocksDB, the exceptions from Codec, etc..  It is better to a 
new exception classes and throw more specific exceptions such as
- RocksDatabaseException for the exceptions from RocksDB,
- CodecException for the exceptions from Codec, etc.

Then, the caller can easily tell the cause of the exceptions.

> Improve exception handling
> --------------------------
>
>                 Key: HDDS-12946
>                 URL: https://issues.apache.org/jira/browse/HDDS-12946
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: common, db
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>
> Before HDDS-12830, we throw IOException for many different causes such as the 
> exceptions from RocksDB, the exceptions from Codec, etc..  It is better to a 
> new exception classes and throw more specific exceptions such as
> - RocksDatabaseException for the exceptions from RocksDB,
> - CodecException for the exceptions from Codec, etc.
> Then, the caller can easily tell the cause of the exceptions.



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