|
@@ -128,7 +128,7 @@ public class TestDistCpOptions {
|
|
new Path("hdfs://localhost:8020/target/"));
|
|
new Path("hdfs://localhost:8020/target/"));
|
|
Assert.assertFalse(builder.build().shouldSkipCRC());
|
|
Assert.assertFalse(builder.build().shouldSkipCRC());
|
|
|
|
|
|
- final DistCpOptions options = builder.withSyncFolder(true).withCRC(true)
|
|
|
|
|
|
+ final DistCpOptions options = builder.withSyncFolder(true).withSkipCRC(true)
|
|
.build();
|
|
.build();
|
|
Assert.assertTrue(options.shouldSyncFolder());
|
|
Assert.assertTrue(options.shouldSyncFolder());
|
|
Assert.assertTrue(options.shouldSkipCRC());
|
|
Assert.assertTrue(options.shouldSkipCRC());
|
|
@@ -391,7 +391,7 @@ public class TestDistCpOptions {
|
|
new Path("hdfs://localhost:8020/target/"))
|
|
new Path("hdfs://localhost:8020/target/"))
|
|
.withSyncFolder(true)
|
|
.withSyncFolder(true)
|
|
.withAppend(true)
|
|
.withAppend(true)
|
|
- .withCRC(true)
|
|
|
|
|
|
+ .withSkipCRC(true)
|
|
.build();
|
|
.build();
|
|
fail("Append should fail if skipCrc option is specified");
|
|
fail("Append should fail if skipCrc option is specified");
|
|
} catch (IllegalArgumentException e) {
|
|
} catch (IllegalArgumentException e) {
|