lamber-ken opened a new pull request #1863:
URL: https://github.com/apache/ozone/pull/1863


   ## What changes were proposed in this pull request?
   
   The following method was defined in `RocksDBStore.java`, `RDBStore.java`, 
`RDBTable.java`, this pr aims to move it to `HddsServerUtil` which is a util 
class for server side components.
   ```java
   /**
    * Converts RocksDB exception to IOE.
    * @param msg  - Message to add to exception.
    * @param e - Original Exception.
    * @return  IOE.
    */
   public static IOException toIOException(String msg, RocksDBException e) {
     String statusCode = e.getStatus() == null ? "N/A" :
         e.getStatus().getCodeString();
     String errMessage = e.getMessage() == null ? "Unknown error" :
         e.getMessage();
     String output = msg + "; status : " + statusCode
         + "; message : " + errMessage;
     return new IOException(output, e);
   }
   ```
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-4768
   
   ## How was this patch tested?
   
   No need more new tests.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to