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
|
||||
via szetszwo)
|
||||
|
||||
HDFS-9764. DistCp doesn't print value for several arguments including
|
||||
-numListstatusThreads. (Wei-Chiu Chuang via Yongjun Zhang)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||
|
@ -664,14 +664,22 @@ public String toString() {
|
||||
", syncFolder=" + syncFolder +
|
||||
", deleteMissing=" + deleteMissing +
|
||||
", ignoreFailures=" + ignoreFailures +
|
||||
", overwrite=" + overwrite +
|
||||
", skipCRC=" + skipCRC +
|
||||
", blocking=" + blocking +
|
||||
", numListstatusThreads=" + numListstatusThreads +
|
||||
", maxMaps=" + maxMaps +
|
||||
", mapBandwidth=" + mapBandwidth +
|
||||
", sslConfigurationFile='" + sslConfigurationFile + '\'' +
|
||||
", copyStrategy='" + copyStrategy + '\'' +
|
||||
", preserveStatus=" + preserveStatus +
|
||||
", preserveRawXattrs=" + preserveRawXattrs +
|
||||
", atomicWorkPath=" + atomicWorkPath +
|
||||
", logPath=" + logPath +
|
||||
", sourceFileListing=" + sourceFileListing +
|
||||
", sourcePaths=" + sourcePaths +
|
||||
", targetPath=" + targetPath +
|
||||
", targetPathExists=" + targetPathExists +
|
||||
", preserveRawXattrs=" + preserveRawXattrs +
|
||||
", filtersFile='" + filtersFile + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
@ -399,11 +399,16 @@ public void testInvalidArgs() {
|
||||
@Test
|
||||
public void testToString() {
|
||||
DistCpOptions option = new DistCpOptions(new Path("abc"), new Path("xyz"));
|
||||
String val = "DistCpOptions{atomicCommit=false, syncFolder=false, deleteMissing=false, " +
|
||||
"ignoreFailures=false, maxMaps=20, sslConfigurationFile='null', copyStrategy='uniformsize', " +
|
||||
"sourceFileListing=abc, sourcePaths=null, targetPath=xyz, targetPathExists=true, " +
|
||||
"preserveRawXattrs=false, filtersFile='null'}";
|
||||
Assert.assertEquals(val, option.toString());
|
||||
String val = "DistCpOptions{atomicCommit=false, syncFolder=false, "
|
||||
+ "deleteMissing=false, ignoreFailures=false, overwrite=false, "
|
||||
+ "skipCRC=false, blocking=true, numListstatusThreads=0, maxMaps=20, "
|
||||
+ "mapBandwidth=100.0, sslConfigurationFile='null', "
|
||||
+ "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(),
|
||||
DistCpOptionSwitch.ATOMIC_COMMIT.name());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user