@Override
    public int available() throws IOException {
      try {
        return in.available();
      } catch (FileNotFoundException e) {
        return tryOpen().available();
      }
    }
FileLink InputStream that handles the switch between the original path and the alternative
locations, when the file is moved.
hbase-server/src/main/java/org/apache/hadoop/hbase/io/FileLink.java