HADOOP-12268. AbstractContractAppendTest#testRenameFileBeingAppended misses rename operation. Contributed by Zhihai Xu
(cherry picked from commit a628a6f126
)
This commit is contained in:
parent
52ee3ecdf6
commit
b9ec7f15d0
|
@ -543,6 +543,9 @@ Release 2.8.0 - UNRELEASED
|
|||
each platform, not hardcoded to their Linux values (Martin Walsh via Colin
|
||||
P. McCabe)
|
||||
|
||||
HADOOP-12268. AbstractContractAppendTest#testRenameFileBeingAppended
|
||||
misses rename operation. (Zhihai Xu)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -24,13 +24,12 @@ import org.junit.Test;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import static org.apache.hadoop.fs.contract.ContractTestUtils.cleanup;
|
||||
import static org.apache.hadoop.fs.contract.ContractTestUtils.createFile;
|
||||
import static org.apache.hadoop.fs.contract.ContractTestUtils.dataset;
|
||||
import static org.apache.hadoop.fs.contract.ContractTestUtils.touch;
|
||||
|
||||
/**
|
||||
* Test concat -if supported
|
||||
* Test append -if supported
|
||||
*/
|
||||
public abstract class AbstractContractAppendTest extends AbstractFSContractTestBase {
|
||||
private static final Logger LOG =
|
||||
|
@ -112,6 +111,7 @@ public abstract class AbstractContractAppendTest extends AbstractFSContractTestB
|
|||
FSDataOutputStream outputStream = getFileSystem().append(target);
|
||||
outputStream.write(dataset);
|
||||
Path renamed = new Path(testPath, "renamed");
|
||||
rename(target, renamed);
|
||||
outputStream.close();
|
||||
String listing = ls(testPath);
|
||||
|
||||
|
|
Loading…
Reference in New Issue