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
This commit is contained in:
parent
878f8e5fa3
commit
05598d5ae3
|
@ -88,14 +88,14 @@ public class ReadWriteConsistencyControl {
|
||||||
synchronized (readWaiters) {
|
synchronized (readWaiters) {
|
||||||
try {
|
try {
|
||||||
readWaiters.wait(0);
|
readWaiters.wait(0);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException ie) {
|
||||||
// We were interrupted... finish the loop -- i.e. cleanup --and then
|
// We were interrupted... finish the loop -- i.e. cleanup --and then
|
||||||
// on our way out, reset the interrupt flag.
|
// on our way out, reset the interrupt flag.
|
||||||
interrupted = true;
|
interrupted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (interrupted) Thread.currentThread.interrupt();
|
if (interrupted) Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long memstoreReadPoint() {
|
public long memstoreReadPoint() {
|
||||||
|
|
Loading…
Reference in New Issue