HADOOP-14120 needless S3AFileSystem.setOptionalPutRequestParameters in S3ABlockOutputStream putObject().
Contributed by Yuanbo Liu
This commit is contained in:
parent
f98f4bb6ca
commit
20878d052c
|
@ -378,9 +378,8 @@ class S3ABlockOutputStream extends OutputStream {
|
|||
int size = block.dataSize();
|
||||
final S3ADataBlocks.BlockUploadData uploadData = block.startUpload();
|
||||
final PutObjectRequest putObjectRequest = uploadData.hasFile() ?
|
||||
writeOperationHelper.newPutRequest(uploadData.getFile())
|
||||
: writeOperationHelper.newPutRequest(uploadData.getUploadStream(), size);
|
||||
fs.setOptionalPutRequestParameters(putObjectRequest);
|
||||
writeOperationHelper.newPutRequest(uploadData.getFile()) :
|
||||
writeOperationHelper.newPutRequest(uploadData.getUploadStream(), size);
|
||||
long transferQueueTime = now();
|
||||
BlockUploadProgress callback =
|
||||
new BlockUploadProgress(
|
||||
|
|
|
@ -1869,7 +1869,7 @@ public class S3AFileSystem extends FileSystem {
|
|||
}
|
||||
}
|
||||
|
||||
protected void setOptionalPutRequestParameters(PutObjectRequest request) {
|
||||
private void setOptionalPutRequestParameters(PutObjectRequest request) {
|
||||
switch (serverSideEncryptionAlgorithm) {
|
||||
case SSE_KMS:
|
||||
request.setSSEAwsKeyManagementParams(generateSSEAwsKeyParams());
|
||||
|
|
Loading…
Reference in New Issue