Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public DataSegment push(File inDir, DataSegment segment) throws IOException

private void copyFilesWithChecks(final FileSystem fs, final Path from, final Path to) throws IOException
{
if (!HadoopFsWrapper.rename(fs, from, to)) {
if (!fs.rename(from, to)) {
if (fs.exists(to)) {
log.info(
"Unable to rename temp Index file[%s] to final segment path [%s]. "
Expand Down