HBASE-13609 TestFastFail is still failing
This commit is contained in:
parent
a1c94c0bdf
commit
92e66ef522
|
@ -61,7 +61,7 @@ public class TestFastFail {
|
||||||
private static final Random random = new Random();
|
private static final Random random = new Random();
|
||||||
private static int SLAVES = 3;
|
private static int SLAVES = 3;
|
||||||
private static byte[] QUALIFIER = Bytes.toBytes("testQualifier");
|
private static byte[] QUALIFIER = Bytes.toBytes("testQualifier");
|
||||||
private static final int SLEEPTIME = 1000;
|
private static final int SLEEPTIME = 5000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws java.lang.Exception
|
* @throws java.lang.Exception
|
||||||
|
@ -137,7 +137,7 @@ public class TestFastFail {
|
||||||
* The number of threads that are going to perform actions against the test
|
* The number of threads that are going to perform actions against the test
|
||||||
* table.
|
* table.
|
||||||
*/
|
*/
|
||||||
int nThreads = 200;
|
int nThreads = 100;
|
||||||
ExecutorService service = Executors.newFixedThreadPool(nThreads);
|
ExecutorService service = Executors.newFixedThreadPool(nThreads);
|
||||||
final CountDownLatch continueOtherHalf = new CountDownLatch(1);
|
final CountDownLatch continueOtherHalf = new CountDownLatch(1);
|
||||||
final CountDownLatch doneHalfway = new CountDownLatch(nThreads);
|
final CountDownLatch doneHalfway = new CountDownLatch(nThreads);
|
||||||
|
@ -160,8 +160,7 @@ public class TestFastFail {
|
||||||
*/
|
*/
|
||||||
public Boolean call() throws Exception {
|
public Boolean call() throws Exception {
|
||||||
try (Table table = connection.getTable(TableName.valueOf(tableName))) {
|
try (Table table = connection.getTable(TableName.valueOf(tableName))) {
|
||||||
Thread.sleep(Math.abs(random.nextInt()) % 100); // Add some jitter
|
Thread.sleep(Math.abs(random.nextInt()) % 250); // Add some jitter here
|
||||||
// here
|
|
||||||
byte[] row = longToByteArrayKey(Math.abs(random.nextLong())
|
byte[] row = longToByteArrayKey(Math.abs(random.nextLong())
|
||||||
% numRows);
|
% numRows);
|
||||||
Get g = new Get(row);
|
Get g = new Get(row);
|
||||||
|
|
Loading…
Reference in New Issue