HBASE-19986 If HBaseTestClassRule timesout a test, thread dump; ADDENDUM; white-space, checkstyle, and rb feedback by Duo
This commit is contained in:
parent
7cc239fb5a
commit
24bed6b3fb
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
|
|
|
@ -33,7 +33,7 @@ public class TestTimeout {
|
|||
|
||||
@Test
|
||||
public void run1() throws InterruptedException {
|
||||
Thread.sleep(100);
|
||||
Thread.sleep(100);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -46,14 +46,11 @@ public class TestTimeout {
|
|||
Thread t = new Thread("HangingThread") {
|
||||
public void run() {
|
||||
synchronized(this) {
|
||||
while(true) {
|
||||
}
|
||||
while(true) {}
|
||||
}
|
||||
}
|
||||
};
|
||||
t.start();
|
||||
while (true) {
|
||||
// Just hang out too.
|
||||
}
|
||||
while (true) {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue