Index: src/contrib/hbase/src/java/org/apache/hadoop/hbase/HMemcache.java =================================================================== --- src/contrib/hbase/src/java/org/apache/hadoop/hbase/HMemcache.java (revision 570629) +++ src/contrib/hbase/src/java/org/apache/hadoop/hbase/HMemcache.java (working copy) @@ -320,6 +320,24 @@ // Generate list of iterators HStoreKey firstKey = new HStoreKey(firstRow); for(int i = 0; i < backingMaps.length; i++) { + if (firstRow == null) { + LOG.error("firstRow is null"); + } + if (backingMaps[i] == null) { + LOG.error("backingMaps[" + i + "] is null"); + } + if (firstRow.getLength() != 0) { + if (backingMaps[i].tailMap(firstKey) == null) { + LOG.error("backingMaps[" + i + "].tailMap(firstKey) is null"); + } + if (backingMaps[i].tailMap(firstKey).keySet() == null) { + LOG.error("backingMaps[" + i + ".tailMap(firstKey).keySet() is null"); + } + } else { + if (backingMaps[i].keySet() == null) { + LOG.error("backingMaps[" + i + "].keySet() is null"); + } + } keyIterators[i] = (firstRow.getLength() != 0)? backingMaps[i].tailMap(firstKey).keySet().iterator(): backingMaps[i].keySet().iterator(); @@ -332,6 +350,10 @@ } } } + } catch (RuntimeException ex) { + ex.printStackTrace(); + close(); + throw ex; } catch(IOException ex) { LOG.error(ex); close();