In TestFsDatasetCache, the unit tests failed sometimes. I collected some failed reason in recent jenkins reports. They are all timeout errors.
But there was a little different between these failure.
- The first because the total block time was exceed the waitTimeMillis(here is 60s) then throw the timeout exception and print thread diagnostic string in method DFSTestUtil#verifyExpectedCacheUsage.
- The second is due to test elapsed time more than timeout time setting. Like in TestFsDatasetCache#testPageRounder.
We should adjust timeout time for these unit test which would failed sometimes due to timeout.