HADOOP-1805 Region server hang on exit

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/src/contrib/hbase@570918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Kellerman 2007-08-29 20:06:41 +00:00
parent 47587a272f
commit 5dc1ee32c0
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -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);
LOG.error("error initializing HMemcache scanner: ", ex);
close();
throw ex;
}