HBASE-21766 TestSimpleRpcScheduler is flaky (branch-1)
This commit is contained in:
parent
7cefd8bc25
commit
d3ce26101e
|
@ -39,7 +39,6 @@ import java.util.Set;
|
||||||
import java.util.concurrent.BlockingQueue;
|
import java.util.concurrent.BlockingQueue;
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.LinkedBlockingQueue;
|
import java.util.concurrent.LinkedBlockingQueue;
|
||||||
import java.util.concurrent.ThreadLocalRandom;
|
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
@ -374,6 +373,7 @@ public class TestSimpleRpcScheduler {
|
||||||
when(putCall.getHeader()).thenReturn(putHead);
|
when(putCall.getHeader()).thenReturn(putHead);
|
||||||
|
|
||||||
assertTrue(scheduler.dispatch(putCallTask));
|
assertTrue(scheduler.dispatch(putCallTask));
|
||||||
|
waitUntilQueueEmpty(scheduler);
|
||||||
|
|
||||||
schedConf.setInt("hbase.ipc.server.max.callqueue.length", 0);
|
schedConf.setInt("hbase.ipc.server.max.callqueue.length", 0);
|
||||||
scheduler.onConfigurationChange(schedConf);
|
scheduler.onConfigurationChange(schedConf);
|
||||||
|
|
Loading…
Reference in New Issue