Index: src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java =================================================================== --- src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java (revision 1357473) +++ src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java (working copy) @@ -1851,9 +1851,12 @@ .compare(hi.getStartKey(), range.getFirst()) < 0) { range.setFirst(hi.getStartKey()); } - if (RegionSplitCalculator.BYTES_COMPARATOR - .compare(hi.getEndKey(), range.getSecond()) > 0) { + if (Bytes.equals(hi.getEndKey(), HConstants.EMPTY_END_ROW)) { range.setSecond(hi.getEndKey()); + } else if (!Bytes.equals(range.getSecond(), HConstants.EMPTY_END_ROW) + && RegionSplitCalculator.BYTES_COMPARATOR + .compare(hi.getEndKey(), range.getSecond()) > 0) { + range.setSecond(hi.getEndKey()); } } // need to close files so delete can happen. @@ -2384,7 +2387,7 @@ } else if (this.hdfsEntry != null) { return this.hdfsEntry.hri.getEndKey(); } else { - LOG.error("Entry " + this + " has no meta or hdfs region start key."); + LOG.error("Entry " + this + " has no meta or hdfs region end key."); return null; } }