Catch runtime exceptions in HMemcacheScanner constructor to ensure that read lock is released. git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@570918 13f79535-47bb-0310-9956-ffa450edef68
@@ -23,6 +23,7 @@ Trunk (unreleased changes)
HADOOP-1780 Regions are still being doubly assigned
HADOOP-1797 Fix NPEs in MetaScanner constructor
HADOOP-1799 Incorrect classpath in binary version of Hadoop
+ HADOOP-1805 Region server hang on exit
IMPROVEMENTS
HADOOP-1737 Make HColumnDescriptor data publically members settable
@@ -332,8 +332,13 @@ public class HMemcache {
}
+ } catch (RuntimeException ex) {
+ LOG.error("error initializing HMemcache scanner: ", ex);
+ close();
+ throw ex;
+
} catch(IOException ex) {
- LOG.error(ex);
close();
throw ex;