The test TestPendingInvalidateBlock failed sometimes. The stack info:
It looks that the invalidateBlock has been removed before we do the check
And I look into the related configurations. I found the property dfs.namenode.replication.interval was just set as 1 second in this test. And after the delay time of dfs.namenode.startup.delay.block.deletion.sec and the delete operation was slowly, it will cause this case. We can see the stack info before, the failed test costs 7.7s more than 5+1 second.
One way can improve this.
- Increase the time of dfs.namenode.replication.interval