HDFS-8597. Fix TestFSImage#testZeroBlockSize on Windows. Contributed by Xiaoyu Yao.
This commit is contained in:
parent
a3990ca414
commit
4e88ff5b27
@ -1024,6 +1024,8 @@ Release 2.7.1 - UNRELEASED
|
||||
HDFS-8576. Lease recovery should return true if the lease can be released
|
||||
and the file can be closed. (J.Andreina via szetszwo)
|
||||
|
||||
HDFS-8597. Fix TestFSImage#testZeroBlockSize on Windows. (Xiaoyu Yao)
|
||||
|
||||
Release 2.7.0 - 2015-04-20
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -26,8 +26,8 @@
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
import org.apache.hadoop.classification.InterfaceAudience;
|
||||
import org.apache.hadoop.fs.Path;
|
||||
import org.apache.hadoop.fs.StorageType;
|
||||
import org.apache.hadoop.hdfs.server.common.Util;
|
||||
import org.apache.hadoop.util.StringUtils;
|
||||
|
||||
/**
|
||||
@ -94,7 +94,7 @@ public static StorageLocation parse(String rawLocation)
|
||||
}
|
||||
}
|
||||
|
||||
return new StorageLocation(storageType, Util.stringAsURI(location));
|
||||
return new StorageLocation(storageType, new Path(location).toUri());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user