From 05598d5ae30fefb8c3c3f304c16a7816ff116ba8 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 24 Jun 2010 04:42:17 +0000 Subject: [PATCH] HBASE-2774 Spin in ReadWriteConsistencyControl eating CPU (load > 40) and no progress running YCSB on clean cluster startup git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@957412 13f79535-47bb-0310-9956-ffa450edef68 --- .../hbase/regionserver/ReadWriteConsistencyControl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/hadoop/hbase/regionserver/ReadWriteConsistencyControl.java b/src/main/java/org/apache/hadoop/hbase/regionserver/ReadWriteConsistencyControl.java index 63690e11b24..d0b1882addf 100644 --- a/src/main/java/org/apache/hadoop/hbase/regionserver/ReadWriteConsistencyControl.java +++ b/src/main/java/org/apache/hadoop/hbase/regionserver/ReadWriteConsistencyControl.java @@ -88,14 +88,14 @@ public class ReadWriteConsistencyControl { synchronized (readWaiters) { try { readWaiters.wait(0); - } catch (InterruptedException e) { + } catch (InterruptedException ie) { // We were interrupted... finish the loop -- i.e. cleanup --and then // on our way out, reset the interrupt flag. interrupted = true; } } } - if (interrupted) Thread.currentThread.interrupt(); + if (interrupted) Thread.currentThread().interrupt(); } public long memstoreReadPoint() {