Skip to content

Commit

Permalink
HDFS-17342. Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyang1987 committed Jan 20, 2024
1 parent 34ff23b commit 0a93644
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ public void delayDeleteReplica() {
* 4. block would be recovered when disk back to normal.
*/
@Test
public void tesInvalidateMissingBlock() throws Exception {
public void testInvalidateMissingBlock() throws Exception {
long blockSize = 1024;
int heartbeatInterval = 1;
HdfsConfiguration c = new HdfsConfiguration();
Expand Down Expand Up @@ -2060,7 +2060,9 @@ public void delayGetMetaDataInputStream() {
Future<?> blockReaderFuture = executorService.submit(() -> {
try {
// Submit tasks for reading block.
BlockReaderTestUtil.getBlockReader(cluster.getFileSystem(), blk, 0, 512);
BlockReader blockReader = BlockReaderTestUtil.getBlockReader(
cluster.getFileSystem(), blk, 0, 512);
blockReader.close();
} catch (IOException e) {
// Ignore exception.
}
Expand Down

0 comments on commit 0a93644

Please # to comment.