Skip to content

HADOOP-16150. ChecksumFileSystem doesn't wrap concat() #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@ public boolean truncate(Path f, long newLength) throws IOException {
+ "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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -27,6 +29,12 @@
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);
Expand Down