HDFS-17259. Fix typo in TestFsDatasetImpl Class. (#6278). Contributed by huangzhaobo99.

This commit is contained in:
huangzhaobo 2023-12-01 13:16:31 +08:00 committed by GitHub
parent 3cb3dfafe5
commit 89e78a76a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1713,9 +1713,9 @@ public void testGetMetadataLengthOfFinalizedReplica() throws IOException {
@Test @Test
public void testNotifyNamenodeMissingOrNewBlock() throws Exception { public void testNotifyNamenodeMissingOrNewBlock() throws Exception {
long blockSize = 1024; long blockSize = 1024;
int heatbeatInterval = 1; int heartbeatInterval = 1;
HdfsConfiguration c = new HdfsConfiguration(); HdfsConfiguration c = new HdfsConfiguration();
c.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, heatbeatInterval); c.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, heartbeatInterval);
c.setLong(DFS_BLOCK_SIZE_KEY, blockSize); c.setLong(DFS_BLOCK_SIZE_KEY, blockSize);
MiniDFSCluster cluster = new MiniDFSCluster.Builder(c). MiniDFSCluster cluster = new MiniDFSCluster.Builder(c).
numDataNodes(1).build(); numDataNodes(1).build();
@ -1964,9 +1964,9 @@ public void delayDeleteReplica() {
@Test @Test
public void tesInvalidateMissingBlock() throws Exception { public void tesInvalidateMissingBlock() throws Exception {
long blockSize = 1024; long blockSize = 1024;
int heatbeatInterval = 1; int heartbeatInterval = 1;
HdfsConfiguration c = new HdfsConfiguration(); HdfsConfiguration c = new HdfsConfiguration();
c.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, heatbeatInterval); c.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, heartbeatInterval);
c.setLong(DFS_BLOCK_SIZE_KEY, blockSize); c.setLong(DFS_BLOCK_SIZE_KEY, blockSize);
MiniDFSCluster cluster = new MiniDFSCluster.Builder(c). MiniDFSCluster cluster = new MiniDFSCluster.Builder(c).
numDataNodes(1).build(); numDataNodes(1).build();