diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StripeStoreFileManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StripeStoreFileManager.java index ad40734..2493f2d 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StripeStoreFileManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StripeStoreFileManager.java @@ -833,9 +833,10 @@ */ private TreeMap processResults() throws IOException { TreeMap newStripes = null; + boolean hasStripes = !this.stripeFiles.isEmpty(); for (HStoreFile sf : this.results) { byte[] startRow = startOf(sf), endRow = endOf(sf); - if (isInvalid(endRow) || isInvalid(startRow)) { + if (!hasStripes || isInvalid(endRow) || isInvalid(startRow)) { if (!isFlush) { LOG.warn("The newly compacted file doesn't have stripes set: " + sf.getPath()); } @@ -843,7 +844,7 @@ this.l0Results.add(sf); continue; } - if (!this.stripeFiles.isEmpty()) { + if (hasStripes) { int stripeIndex = findStripeIndexByEndRow(endRow); if ((stripeIndex >= 0) && rowEquals(getStartRow(stripeIndex), startRow)) { // Simple/common case - add file to an existing stripe.