mirror of https://github.com/apache/lucene.git
Add some debugging to HdfsRecoveryZkTest
This commit is contained in:
parent
359f981b0e
commit
b6ff3fdace
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue