From de98f684086bc33b418d530c2473902a97fbc7cc Mon Sep 17 00:00:00 2001 From: tedyu Date: Tue, 13 Dec 2016 12:45:09 -0800 Subject: [PATCH] HBASE-17302 The region flush request disappeared from flushQueue (Guangxu Cheng) --- .../apache/hadoop/hbase/regionserver/MemStoreFlusher.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 15cf97cf4a8..a123dd51637 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 @@ -814,7 +814,11 @@ class MemStoreFlusher implements FlushRequester { if (obj == null || getClass() != obj.getClass()) { return false; } - Delayed other = (Delayed) obj; + FlushRegionEntry other = (FlushRegionEntry) obj; + if (!this.region.getRegionInfo().getRegionNameAsString().equals( + other.region.getRegionInfo().getRegionNameAsString())) { + return false; + } return compareTo(other) == 0; } }