HDFS-9764. DistCp doesn't print value for several arguments including -numListstatusThreads. (Wei-Chiu Chuang via Yongjun Zhang)
This commit is contained in:
parent
a963baba10
commit
ba1c9d484a
|
@ -1942,6 +1942,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-8923. Add -source flag to balancer usage message. (Chris Trezzo
|
HDFS-8923. Add -source flag to balancer usage message. (Chris Trezzo
|
||||||
via szetszwo)
|
via szetszwo)
|
||||||
|
|
||||||
|
HDFS-9764. DistCp doesn't print value for several arguments including
|
||||||
|
-numListstatusThreads. (Wei-Chiu Chuang via Yongjun Zhang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||||
|
|
|
@ -664,14 +664,22 @@ public class DistCpOptions {
|
||||||
", syncFolder=" + syncFolder +
|
", syncFolder=" + syncFolder +
|
||||||
", deleteMissing=" + deleteMissing +
|
", deleteMissing=" + deleteMissing +
|
||||||
", ignoreFailures=" + ignoreFailures +
|
", ignoreFailures=" + ignoreFailures +
|
||||||
|
", overwrite=" + overwrite +
|
||||||
|
", skipCRC=" + skipCRC +
|
||||||
|
", blocking=" + blocking +
|
||||||
|
", numListstatusThreads=" + numListstatusThreads +
|
||||||
", maxMaps=" + maxMaps +
|
", maxMaps=" + maxMaps +
|
||||||
|
", mapBandwidth=" + mapBandwidth +
|
||||||
", sslConfigurationFile='" + sslConfigurationFile + '\'' +
|
", sslConfigurationFile='" + sslConfigurationFile + '\'' +
|
||||||
", copyStrategy='" + copyStrategy + '\'' +
|
", copyStrategy='" + copyStrategy + '\'' +
|
||||||
|
", preserveStatus=" + preserveStatus +
|
||||||
|
", preserveRawXattrs=" + preserveRawXattrs +
|
||||||
|
", atomicWorkPath=" + atomicWorkPath +
|
||||||
|
", logPath=" + logPath +
|
||||||
", sourceFileListing=" + sourceFileListing +
|
", sourceFileListing=" + sourceFileListing +
|
||||||
", sourcePaths=" + sourcePaths +
|
", sourcePaths=" + sourcePaths +
|
||||||
", targetPath=" + targetPath +
|
", targetPath=" + targetPath +
|
||||||
", targetPathExists=" + targetPathExists +
|
", targetPathExists=" + targetPathExists +
|
||||||
", preserveRawXattrs=" + preserveRawXattrs +
|
|
||||||
", filtersFile='" + filtersFile + '\'' +
|
", filtersFile='" + filtersFile + '\'' +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
|
|
|
@ -399,11 +399,16 @@ public class TestOptionsParser {
|
||||||
@Test
|
@Test
|
||||||
public void testToString() {
|
public void testToString() {
|
||||||
DistCpOptions option = new DistCpOptions(new Path("abc"), new Path("xyz"));
|
DistCpOptions option = new DistCpOptions(new Path("abc"), new Path("xyz"));
|
||||||
String val = "DistCpOptions{atomicCommit=false, syncFolder=false, deleteMissing=false, " +
|
String val = "DistCpOptions{atomicCommit=false, syncFolder=false, "
|
||||||
"ignoreFailures=false, maxMaps=20, sslConfigurationFile='null', copyStrategy='uniformsize', " +
|
+ "deleteMissing=false, ignoreFailures=false, overwrite=false, "
|
||||||
"sourceFileListing=abc, sourcePaths=null, targetPath=xyz, targetPathExists=true, " +
|
+ "skipCRC=false, blocking=true, numListstatusThreads=0, maxMaps=20, "
|
||||||
"preserveRawXattrs=false, filtersFile='null'}";
|
+ "mapBandwidth=100.0, sslConfigurationFile='null', "
|
||||||
Assert.assertEquals(val, option.toString());
|
+ "copyStrategy='uniformsize', preserveStatus=[], "
|
||||||
|
+ "preserveRawXattrs=false, atomicWorkPath=null, logPath=null, "
|
||||||
|
+ "sourceFileListing=abc, sourcePaths=null, targetPath=xyz, "
|
||||||
|
+ "targetPathExists=true, filtersFile='null'}";
|
||||||
|
String optionString = option.toString();
|
||||||
|
Assert.assertEquals(val, optionString);
|
||||||
Assert.assertNotSame(DistCpOptionSwitch.ATOMIC_COMMIT.toString(),
|
Assert.assertNotSame(DistCpOptionSwitch.ATOMIC_COMMIT.toString(),
|
||||||
DistCpOptionSwitch.ATOMIC_COMMIT.name());
|
DistCpOptionSwitch.ATOMIC_COMMIT.name());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue