Add some debugging to HdfsRecoveryZkTest

This commit is contained in:
Alan Woodward 2016-11-01 16:10:51 +00:00
parent 359f981b0e
commit b6ff3fdace
2 changed files with 4 additions and 1 deletions

View File

@ -128,6 +128,7 @@ public class HdfsTransactionLog extends TransactionLog {
success = true;
assert ObjectReleaseTracker.track(this);
log.debug("Opening new tlog {}", this);
} catch (IOException e) {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e);
@ -334,7 +335,7 @@ public class HdfsTransactionLog extends TransactionLog {
public void close() {
try {
if (debug) {
log.debug("Closing tlog" + this);
log.debug("Closing tlog {}", this);
}
doCloseOutput();

View File

@ -22,6 +22,7 @@ import org.apache.lucene.util.LuceneTestCase.Slow;
import org.apache.solr.cloud.RecoveryZkTest;
import org.apache.solr.common.cloud.ZkConfigManager;
import org.apache.solr.util.BadHdfsThreadsFilter;
import org.apache.solr.util.LogLevel;
import org.junit.AfterClass;
import org.junit.BeforeClass;
@ -30,6 +31,7 @@ import org.junit.BeforeClass;
@ThreadLeakFilters(defaultFilters = true, filters = {
BadHdfsThreadsFilter.class // hdfs currently leaks thread(s)
})
@LogLevel("org.apache.solr.update.HdfsTransactionLog=DEBUG")
public class HdfsRecoveryZkTest extends RecoveryZkTest {
private static MiniDFSCluster dfsCluster;