HDFS-11795. Fix ASF License warnings in branch-2.7. Contributed by Yiqun Lin.

This commit is contained in:
Akira Ajisaka 2017-05-10 14:17:00 -05:00
parent 48c5e37abf
commit f052976ff1
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
4 changed files with 11 additions and 9 deletions

View File

@ -265,9 +265,12 @@ Release 2.7.4 - UNRELEASED
HDFS-11766. Fix findbugs warning in branch-2.7. (Chen Liang via aajisaka)
HDFS-11373. Backport HDFS-11258 and HDFS-11272
(File mtime change could not save to editlog).
(Contributed by Jimmy Xiang, backported by Akira Ajisaka)
HDFS-11373. Backport HDFS-11258 and HDFS-11272
(File mtime change could not save to editlog).
(Contributed by Jimmy Xiang, backported by Akira Ajisaka)
HDFS-11795. Fix ASF License warnings in branch-2.7.
(Yiqun Lin via aajisaka)
Release 2.7.3 - 2016-08-25

View File

@ -387,7 +387,7 @@ public void testNodeDecomissionRespectsRackPolicy() throws Exception {
// Configure an excludes file
FileSystem localFileSys = FileSystem.getLocal(conf);
Path workingDir = localFileSys.getWorkingDirectory();
Path dir = new Path(workingDir, "build/test/data/temp/decommission");
Path dir = new Path(workingDir, MiniDFSCluster.getBaseDirectory());
Path excludeFile = new Path(dir, "exclude");
Path includeFile = new Path(dir, "include");
assertTrue(localFileSys.mkdirs(dir));
@ -440,7 +440,7 @@ public void testNodeDecomissionWithOverreplicationRespectsRackPolicy()
// Configure an excludes file
FileSystem localFileSys = FileSystem.getLocal(conf);
Path workingDir = localFileSys.getWorkingDirectory();
Path dir = new Path(workingDir, "build/test/data/temp/decommission");
Path dir = new Path(workingDir, MiniDFSCluster.getBaseDirectory());
Path excludeFile = new Path(dir, "exclude");
Path includeFile = new Path(dir, "include");
assertTrue(localFileSys.mkdirs(dir));

View File

@ -82,7 +82,7 @@ public void testHostsExcludeInUI() throws Exception {
// Configure an excludes file
FileSystem localFileSys = FileSystem.getLocal(conf);
Path workingDir = localFileSys.getWorkingDirectory();
Path dir = new Path(workingDir, "build/test/data/temp/decommission");
Path dir = new Path(workingDir, MiniDFSCluster.getBaseDirectory());
Path excludeFile = new Path(dir, "exclude");
Path includeFile = new Path(dir, "include");
assertTrue(localFileSys.mkdirs(dir));
@ -137,7 +137,7 @@ public void testHostsIncludeForDeadCount() throws Exception {
// Configure an excludes file
FileSystem localFileSys = FileSystem.getLocal(conf);
Path workingDir = localFileSys.getWorkingDirectory();
Path dir = new Path(workingDir, "build/test/data/temp/decommission");
Path dir = new Path(workingDir, MiniDFSCluster.getBaseDirectory());
Path excludeFile = new Path(dir, "exclude");
Path includeFile = new Path(dir, "include");
assertTrue(localFileSys.mkdirs(dir));

View File

@ -228,8 +228,7 @@ public void testLastContactTime() throws Exception {
// Define include file to generate deadNodes metrics
FileSystem localFileSys = FileSystem.getLocal(conf);
Path workingDir = localFileSys.getWorkingDirectory();
Path dir = new Path(workingDir,
"build/test/data/temp/TestNameNodeMXBean");
Path dir = new Path(workingDir, MiniDFSCluster.getBaseDirectory());
Path includeFile = new Path(dir, "include");
assertTrue(localFileSys.mkdirs(dir));
StringBuilder includeHosts = new StringBuilder();