HDFS-3187. Upgrade guava to 11.0.2. Contributed by Todd Lipcon.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1309182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8429acbdb7
commit
98cb813248
|
@ -201,6 +201,8 @@ Release 2.0.0 - UNRELEASED
|
|||
|
||||
HDFS-3120. Enable hsync and hflush by default. (eli)
|
||||
|
||||
HDFS-3187. Upgrade guava to 11.0.2 (todd)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-2477. Optimize computing the diff between a block report and the
|
||||
|
|
|
@ -731,7 +731,9 @@ public class MiniDFSCluster {
|
|||
Preconditions.checkArgument(!dstDir.equals(srcDir));
|
||||
File dstDirF = new File(dstDir);
|
||||
if (dstDirF.exists()) {
|
||||
Files.deleteRecursively(dstDirF);
|
||||
if (!FileUtil.fullyDelete(dstDirF)) {
|
||||
throw new IOException("Unable to delete: " + dstDirF);
|
||||
}
|
||||
}
|
||||
LOG.info("Copying namedir from primary node dir "
|
||||
+ srcDir + " to " + dstDir);
|
||||
|
|
|
@ -37,6 +37,7 @@ import java.util.Set;
|
|||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.fs.FileUtil;
|
||||
import org.apache.hadoop.fs.permission.FsPermission;
|
||||
import org.apache.hadoop.fs.permission.PermissionStatus;
|
||||
import org.apache.hadoop.hdfs.MiniDFSCluster;
|
||||
|
@ -181,7 +182,9 @@ public abstract class FSImageTestUtil {
|
|||
public static FSEditLog createStandaloneEditLog(File logDir)
|
||||
throws IOException {
|
||||
assertTrue(logDir.mkdirs() || logDir.exists());
|
||||
Files.deleteDirectoryContents(logDir);
|
||||
if (!FileUtil.fullyDeleteContents(logDir)) {
|
||||
throw new IOException("Unable to delete contents of " + logDir);
|
||||
}
|
||||
NNStorage storage = Mockito.mock(NNStorage.class);
|
||||
StorageDirectory sd
|
||||
= FSImageTestUtil.mockStorageDirectory(logDir, NameNodeDirType.EDITS);
|
||||
|
|
|
@ -256,7 +256,7 @@
|
|||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>r09</version>
|
||||
<version>11.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-cli</groupId>
|
||||
|
|
Loading…
Reference in New Issue