HADOOP-16150. Added concat method to ChecksumFS as unsupported operation.
Contributed by Steve Loughran
(cherry picked from commit 8b517e7ad6
)
This commit is contained in:
parent
3ef1235215
commit
3c5b7136e2
|
@ -372,6 +372,12 @@ public abstract class ChecksumFileSystem extends FilterFileSystem {
|
|||
+ "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.
|
||||
* @param size the length of the data file in bytes
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
*/
|
||||
package org.apache.hadoop.fs.contract.localfs;
|
||||
|
||||
import org.junit.Assume;
|
||||
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.fs.contract.AbstractContractMultipartUploaderTest;
|
||||
import org.apache.hadoop.fs.contract.AbstractFSContract;
|
||||
|
@ -27,6 +29,12 @@ import org.apache.hadoop.fs.contract.AbstractFSContract;
|
|||
public class TestLocalFSContractMultipartUploader
|
||||
extends AbstractContractMultipartUploaderTest {
|
||||
|
||||
@Override
|
||||
public void setup() throws Exception {
|
||||
Assume.assumeTrue("Skipping until HDFS-13934", false);
|
||||
super.setup();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected AbstractFSContract createContract(Configuration conf) {
|
||||
return new LocalFSContract(conf);
|
||||
|
|
Loading…
Reference in New Issue