chooseVolume
public V chooseVolume(List<V> volumes,
                      long blockSize,
                      String storageId)
               throws IOException
Description copied from interface: org.apache.hadoop.hdfs.server.datanode.fsdataset.VolumeChoosingPolicy
Choose a volume to place a replica,
 given a list of volumes and the replica size sought for storage.
 
 The caller should synchronize access to the list of volumes.
- Specified by:
- chooseVolumein interface- org.apache.hadoop.hdfs.server.datanode.fsdataset.VolumeChoosingPolicy<V extends FsVolumeSpi>
- Parameters:
- volumes- - a list of available volumes.
- blockSize- - the size of the replica for which a volume is sought.
- storageId- - the storage id of the Volume nominated by the namenode.
                  This can usually be ignored by the VolumeChoosingPolicy.
- Returns:
- the chosen volume.
- Throws:
- IOException- when disks are unavailable or are full.