Skip to content
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

HADOOP-18969. S3A: AbstractS3ACostTest to clear bucket fs.s3a.create.performance #6264

Merged
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 @@ -107,7 +107,8 @@ public Configuration createConfiguration() {

removeBaseAndBucketOverrides(bucketName, conf,
DIRECTORY_MARKER_POLICY,
AUTHORITATIVE_PATH);
AUTHORITATIVE_PATH,
FS_S3A_CREATE_PERFORMANCE);
// directory marker options
conf.set(DIRECTORY_MARKER_POLICY,
keepMarkers
Expand Down Expand Up @@ -235,6 +236,21 @@ protected Path file(Path path, final boolean overwrite)
return path;
}

/**
* Create a file with a specific body, returning its path.
* @param path path to file.
* @param overwrite overwrite flag
* @param body body of file
* @return path of new file
*/
protected Path file(Path path, final boolean overwrite, byte[] body)
throws IOException {
ContractTestUtils.createFile(getFileSystem(), path, overwrite, body);
return path;
}



/**
* Touch a file, overwriting.
* @param path path
Expand Down