Ahmar Suhail created HADOOP-18638:
-------------------------------------
Summary: Encryption behaviour
Key: HADOOP-18638
URL: https://issues.apache.org/jira/browse/HADOOP-18638
Project: Hadoop Common
Issue Type: Sub-task
Reporter: Ahmar Suhail
When doing a copy, S3A always uses encryption configuration of the filesystem,
rather than the source object. This behaviour may not have been intended, as in
`RequestFactoryImpl.copyEncryptionParameters()` it does copy source object
encryption properties
[here|https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/RequestFactoryImpl.java#L336]
, but a missing return statement means it ends up using the FS settings
anyway.
Proposed:
* If the copy is called by rename, always preserve source object encryption
properties.
* For all other copies, use current FS encryption settings.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]