Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
1. Move irrelevant parts out of TestAsyncDFSRename
2. Limit of max async calls(i.e. ipc.client.async.calls.max) is set and cached in ipc.Client. Client instances are cached based on SocketFactory. In order to test different cases in various limits, every test (e.g. TestAsyncDFSRename and TestAsyncDFS) creates separate instance of MiniDFSCluster and that of AsyncDistributedFileSystem hence. This is not efficient in that tests may take long time to bootstrap MiniDFSClusters. It's even worse if cluster needs to restart in the middle. This proposes to do refactoring to use shared instance of AsyncDistributedFileSystem for speedup.
Attachments
Attachments
Issue Links
- is duplicated by
-
HDFS-10444 Refactor tests by moving irrevelant parts out of TestAsyncDFSRename
- Resolved
-
HDFS-10445 Add timeout tests for async DFS API
- Resolved