HBASE-9255: TestAsyncProcess#testErrorsServers is flaky on suse linux
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1515031 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b39e48691
commit
40870be471
@ -580,12 +580,13 @@ public class TestAsyncProcess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testErrorsServers() throws InterruptedIOException,
|
public void testErrorsServers() throws IOException {
|
||||||
RetriesExhaustedWithDetailsException {
|
|
||||||
HTable ht = new HTable();
|
HTable ht = new HTable();
|
||||||
Configuration configuration = new Configuration(conf);
|
Configuration configuration = new Configuration(conf);
|
||||||
configuration.setBoolean(HConnectionManager.RETRIES_BY_SERVER_KEY, true);
|
configuration.setBoolean(HConnectionManager.RETRIES_BY_SERVER_KEY, true);
|
||||||
configuration.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 20);
|
configuration.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 20);
|
||||||
|
// set default writeBufferSize
|
||||||
|
ht.setWriteBufferSize(configuration.getLong("hbase.client.write.buffer", 2097152));
|
||||||
|
|
||||||
MyConnectionImpl mci = new MyConnectionImpl(configuration);
|
MyConnectionImpl mci = new MyConnectionImpl(configuration);
|
||||||
ht.connection = mci;
|
ht.connection = mci;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user