Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
This is some code cleanup separate from HDFS-8272:
- Avoid duplicated block reader creation code
- If no new source DN can be found, getBestNodeDNAddrPair returns null instead of throwing Exception. Whether to throw Exception or not should be determined by getBestNodeDNAddrPair's caller.