From 0cf15fadd8be8ee9ddb1ef65464bba9b98807b7e Mon Sep 17 00:00:00 2001 From: Ramkrishna Date: Thu, 28 Sep 2017 10:37:23 +0530 Subject: [PATCH] HBASE-18888 StealJobQueue should call super() to init the PriorityBlockingQueue (Ram) --- .../apache/hadoop/hbase/util/StealJobQueue.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/StealJobQueue.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/StealJobQueue.java index 9a5d5959b75..efd3da3a88d 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/StealJobQueue.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/StealJobQueue.java @@ -50,21 +50,7 @@ public class StealJobQueue extends PriorityBlockingQueue { private final transient Condition notEmpty = lock.newCondition(); public StealJobQueue(Comparator comparator) { - this.stealFromQueue = new PriorityBlockingQueue(11, comparator) { - - private static final long serialVersionUID = -7070010365201826904L; - - @Override - public boolean offer(T t) { - lock.lock(); - try { - notEmpty.signal(); - return super.offer(t); - } finally { - lock.unlock(); - } - } - }; + this(11, 11, comparator); } public StealJobQueue(int initCapacity, int stealFromQueueInitCapacity,