HDDS-861. SCMNodeManager unit tests are broken. Contributed by Xiaoyu Yao.
This commit is contained in:
parent
ebb9245366
commit
919a6e4310
|
@ -192,7 +192,9 @@ public class SCMNodeManager
|
||||||
// registration we call this, after adding to nodeStateMap. And also
|
// registration we call this, after adding to nodeStateMap. And also
|
||||||
// from eventhandler it is called only if it has node Report.
|
// from eventhandler it is called only if it has node Report.
|
||||||
DatanodeInfo datanodeInfo = nodeStateManager.getNode(dnId);
|
DatanodeInfo datanodeInfo = nodeStateManager.getNode(dnId);
|
||||||
|
if (nodeReport != null) {
|
||||||
datanodeInfo.updateStorageReports(nodeReport.getStorageReportList());
|
datanodeInfo.updateStorageReports(nodeReport.getStorageReportList());
|
||||||
|
}
|
||||||
|
|
||||||
} catch (NodeNotFoundException e) {
|
} catch (NodeNotFoundException e) {
|
||||||
LOG.debug("SCM updateNodeStat based on heartbeat from previous " +
|
LOG.debug("SCM updateNodeStat based on heartbeat from previous " +
|
||||||
|
|
|
@ -72,9 +72,9 @@ import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the Node Manager class.
|
* Test the SCM Node Manager class.
|
||||||
*/
|
*/
|
||||||
public class TestNodeManager {
|
public class TestSCMNodeManager {
|
||||||
|
|
||||||
private File testDir;
|
private File testDir;
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ public class TestNodeManager {
|
||||||
@Before
|
@Before
|
||||||
public void setup() {
|
public void setup() {
|
||||||
testDir = PathUtils.getTestDir(
|
testDir = PathUtils.getTestDir(
|
||||||
TestNodeManager.class);
|
TestSCMNodeManager.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
Loading…
Reference in New Issue