public static Path moveAsideBadEditsFile(final FileSystem fs, final Path edits)
    throws IOException {
    Path moveAsideName =
      new Path(edits.getParent(), edits.getName() + "." + EnvironmentEdgeManager.currentTime());
    if (!fs.rename(edits, moveAsideName)) {
      LOG.warn("Rename failed from {} to {}", edits, moveAsideName);
    }
    return moveAsideName;
  }
Move aside a bad edits file.
@param fs    the file system used to rename bad edits file.
@param edits Edits file to move aside.
@return The name of the moved aside file.
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALSplitUtil.java