|
@@ -32,7 +32,6 @@ import java.util.concurrent.ThreadLocalRandom;
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
|
|
|
import com.google.common.base.Joiner;
|
|
import com.google.common.base.Joiner;
|
|
-import org.apache.commons.logging.Log;
|
|
|
|
import org.apache.hadoop.classification.InterfaceAudience;
|
|
import org.apache.hadoop.classification.InterfaceAudience;
|
|
import org.apache.hadoop.ha.HAServiceProtocol.HAServiceState;
|
|
import org.apache.hadoop.ha.HAServiceProtocol.HAServiceState;
|
|
import org.apache.hadoop.hdfs.client.BlockReportOptions;
|
|
import org.apache.hadoop.hdfs.client.BlockReportOptions;
|
|
@@ -65,6 +64,7 @@ import org.apache.hadoop.util.VersionUtil;
|
|
|
|
|
|
import com.google.common.annotations.VisibleForTesting;
|
|
import com.google.common.annotations.VisibleForTesting;
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Maps;
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
|
|
/**
|
|
/**
|
|
* A thread per active or standby namenode to perform:
|
|
* A thread per active or standby namenode to perform:
|
|
@@ -78,7 +78,7 @@ import com.google.common.collect.Maps;
|
|
@InterfaceAudience.Private
|
|
@InterfaceAudience.Private
|
|
class BPServiceActor implements Runnable {
|
|
class BPServiceActor implements Runnable {
|
|
|
|
|
|
- static final Log LOG = DataNode.LOG;
|
|
|
|
|
|
+ static final Logger LOG = DataNode.LOG;
|
|
final InetSocketAddress nnAddr;
|
|
final InetSocketAddress nnAddr;
|
|
HAServiceState state;
|
|
HAServiceState state;
|
|
|
|
|
|
@@ -600,7 +600,7 @@ class BPServiceActor implements Runnable {
|
|
private synchronized void cleanUp() {
|
|
private synchronized void cleanUp() {
|
|
|
|
|
|
shouldServiceRun = false;
|
|
shouldServiceRun = false;
|
|
- IOUtils.cleanup(LOG, bpNamenode);
|
|
|
|
|
|
+ IOUtils.cleanup(null, bpNamenode);
|
|
bpos.shutdownActor(this);
|
|
bpos.shutdownActor(this);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -834,7 +834,7 @@ class BPServiceActor implements Runnable {
|
|
sleepAndLogInterrupts(5000, "initializing");
|
|
sleepAndLogInterrupts(5000, "initializing");
|
|
} else {
|
|
} else {
|
|
runningState = RunningState.FAILED;
|
|
runningState = RunningState.FAILED;
|
|
- LOG.fatal("Initialization failed for " + this + ". Exiting. ", ioe);
|
|
|
|
|
|
+ LOG.error("Initialization failed for " + this + ". Exiting. ", ioe);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|