diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java index aaa95728835..2f2a4cf4e14 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java @@ -816,8 +816,8 @@ class MemStoreFlusher implements FlushRequester { return false; } FlushRegionEntry other = (FlushRegionEntry) obj; - if (!this.region.getRegionInfo().getRegionNameAsString().equals( - other.region.getRegionInfo().getRegionNameAsString())) { + if (!Bytes.equals(this.region.getRegionInfo().getRegionName(), + other.region.getRegionInfo().getRegionName())) { return false; } return compareTo(other) == 0;