HBASE-3059 TestReadWriteConsistencyControl occasionally hangs (Hairong via Ryan)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004867 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Rawson 2010-10-06 00:59:07 +00:00
parent 1ef046250f
commit 723b6709fa
2 changed files with 5 additions and 4 deletions

View File

@ -565,6 +565,8 @@ Release 0.21.0 - Unreleased
HBASE-3064 Long sleeping in HConnectionManager after thread is interrupted
(Bruno Dumon via Stack)
HBASE-2753 Remove sorted() methods from Result now that Gets are Scans
HBASE-3059 TestReadWriteConsistencyControl occasionally hangs (Hairong
via Ryan)
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -114,9 +114,8 @@ public class ReadWriteConsistencyControl {
}
if (nextReadValue > 0) {
memstoreRead = nextReadValue;
synchronized (readWaiters) {
memstoreRead = nextReadValue;
readWaiters.notifyAll();
}
@ -124,8 +123,8 @@ public class ReadWriteConsistencyControl {
}
boolean interrupted = false;
while (memstoreRead < e.getWriteNumber()) {
synchronized (readWaiters) {
synchronized (readWaiters) {
while (memstoreRead < e.getWriteNumber()) {
try {
readWaiters.wait(0);
} catch (InterruptedException ie) {