Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
In case of multiple destinations, We need to check if the file already exists in one of the subclusters for which we use the existing getBlockLocation() API which is by default a sequential Call,
In an ideal scenario where the file needs to be created each subcluster shall be checked sequentially, this can be done concurrently to save time.
In another case where the file is found and if the last block is null, we need to do getFileInfo to all the locations to get the location where the file exists. This also can be prevented by use of ConcurrentCall since we shall be having the remoteLocation to where the getBlockLocation returned a non null entry.