[ https://issues.apache.org/jira/browse/YARN-4961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Lowe reassigned YARN-4961: -------------------------------- Assignee: Pradeep Ambati Yes, exactly. Thanks for picking this up! Currently it's very fragile to wield the database directly because instead of throwing checked IOExceptions when I/O errors occur it throws a runtime DBException. Having a wrapper class that provides the same methods but throwing checked IOExceptions instead of unchecked runtime exceptions would make it safer to use as a state store backend in Hadoop where we don't necessarily want to tear down the entire server when an I/O error occurs. > Wrapper for leveldb DB to aid in handling database exceptions > ------------------------------------------------------------- > > Key: YARN-4961 > URL: https://issues.apache.org/jira/browse/YARN-4961 > Project: Hadoop YARN > Issue Type: Improvement > Reporter: Jason Lowe > Assignee: Pradeep Ambati > Priority: Major > > It would be nice to have a utility wrapper around leveldb's DB to translate > the raw runtime DBExceptions into IOExceptions. This would help make the > code using leveldb easier to read and less error-prone to allowing the > runtime DBExceptions to escape and potentially terminate the calling process. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org