HBASE-19986 If HBaseTestClassRule timesout a test, thread dump; ADDENDUM; white-space, checkstyle, and rb feedback by Duo

This commit is contained in:
Michael Stack 2018-02-12 18:12:08 -08:00
parent 7cc239fb5a
commit 24bed6b3fb
3 changed files with 15 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* /**
* Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information * distributed with this work for additional information

View File

@ -46,14 +46,11 @@ public class TestTimeout {
Thread t = new Thread("HangingThread") { Thread t = new Thread("HangingThread") {
public void run() { public void run() {
synchronized(this) { synchronized(this) {
while(true) { while(true) {}
}
} }
} }
}; };
t.start(); t.start();
while (true) { while (true) {}
// Just hang out too.
}
} }
} }