Description
TestPathBasedCacheRequests has a narrow race condition in testWaitForCachedReplicasInDirectory where an assert checking the number of bytes cached may fail. The reason is because waitForCachedBlock looks at the NameNode data structures directly to see how many replicas are cached, but the scanner asynchronously updates the cache entries with this information.