Skip to content

Commit

Permalink
HADOOP-18969. S3A: AbstractS3ACostTest to clear bucket fs.s3a.create.…
Browse files Browse the repository at this point in the history
…performance (apache#6264)


Add the option to the removeBaseAndBucketOverrides() list
  • Loading branch information
steveloughran authored Nov 21, 2023
1 parent f609460 commit b108e9e
Showing 1 changed file with 17 additions and 1 deletion.
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

0 comments on commit b108e9e

Please sign in to comment.