We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb263c commit 69f6e0eCopy full SHA for 69f6e0e
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestPread.java
@@ -603,7 +603,9 @@ public Void answer(InvocationOnMock invocation) throws Throwable {
603
input.read(0, buffer, 0, 1024);
604
Assert.fail("Reading the block should have thrown BlockMissingException");
605
} catch (BlockMissingException e) {
606
- assertEquals(3, input.getHedgedReadOpsLoopNumForTesting());
+ // The result of 9 is due to 2 blocks by 4 iterations plus one because hedgedReadOpsLoopNumForTesting
607
+ // is incremented at start of the loop.
608
+ assertEquals(9, input.getHedgedReadOpsLoopNumForTesting());
609
assertTrue(metrics.getHedgedReadOps() == 0);
610
} finally {
611
Mockito.reset(injector);
0 commit comments