HADOOP-16150. checksumFS doesn't wrap concat(): concatenated files don't have checksums.
Contributed by Steve Loughran. Change-Id: I85fc1fc9445ca0b7d325495d3bc55fe9f5e5ce52
This commit is contained in:
parent
feccd282fe
commit
8b517e7ad6
|
@ -372,6 +372,12 @@ public abstract class ChecksumFileSystem extends FilterFileSystem {
|
||||||
+ "by ChecksumFileSystem");
|
+ "by ChecksumFileSystem");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void concat(final Path f, final Path[] psrcs) throws IOException {
|
||||||
|
throw new UnsupportedOperationException("Concat is not supported "
|
||||||
|
+ "by ChecksumFileSystem");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculated the length of the checksum file in bytes.
|
* Calculated the length of the checksum file in bytes.
|
||||||
* @param size the length of the data file in bytes
|
* @param size the length of the data file in bytes
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.hadoop.fs.contract.localfs;
|
package org.apache.hadoop.fs.contract.localfs;
|
||||||
|
|
||||||
|
import org.junit.Assume;
|
||||||
|
|
||||||
import org.apache.hadoop.conf.Configuration;
|
import org.apache.hadoop.conf.Configuration;
|
||||||
import org.apache.hadoop.fs.contract.AbstractContractMultipartUploaderTest;
|
import org.apache.hadoop.fs.contract.AbstractContractMultipartUploaderTest;
|
||||||
import org.apache.hadoop.fs.contract.AbstractFSContract;
|
import org.apache.hadoop.fs.contract.AbstractFSContract;
|
||||||
|
@ -27,6 +29,12 @@ import org.apache.hadoop.fs.contract.AbstractFSContract;
|
||||||
public class TestLocalFSContractMultipartUploader
|
public class TestLocalFSContractMultipartUploader
|
||||||
extends AbstractContractMultipartUploaderTest {
|
extends AbstractContractMultipartUploaderTest {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setup() throws Exception {
|
||||||
|
Assume.assumeTrue("Skipping until HDFS-13934", false);
|
||||||
|
super.setup();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected AbstractFSContract createContract(Configuration conf) {
|
protected AbstractFSContract createContract(Configuration conf) {
|
||||||
return new LocalFSContract(conf);
|
return new LocalFSContract(conf);
|
||||||
|
|
Loading…
Reference in New Issue