HADOOP-14120 needless S3AFileSystem.setOptionalPutRequestParameters in S3ABlockOutputStream putObject().
Contributed by Yuanbo Liu (cherry picked from commit 20878d052cebc715c2494a97362fdff08885a77f)
This commit is contained in:
parent
59d69257a8
commit
a5a4867f3b
@ -378,9 +378,8 @@ private void putObject() throws IOException {
|
||||
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(
|
||||
|
@ -1870,7 +1870,7 @@ protected void setOptionalCopyObjectRequestParameters(
|
||||
}
|
||||
}
|
||||
|
||||
protected void setOptionalPutRequestParameters(PutObjectRequest request) {
|
||||
private void setOptionalPutRequestParameters(PutObjectRequest request) {
|
||||
switch (serverSideEncryptionAlgorithm) {
|
||||
case SSE_KMS:
|
||||
request.setSSEAwsKeyManagementParams(generateSSEAwsKeyParams());
|
||||
|
Loading…
Reference in New Issue
Block a user