Details
Description
when you switch s3a output stream buffering to heap or byte buffer, the storage class option isn't added to the put request
<property> <name>fs.s3a.fast.upload.buffer</name> <value>bytebuffer</value> </property>
and the ITestS3AStorageClass tests fail.
java.lang.AssertionError: [Storage class of object s3a://stevel-london/test/testCreateAndCopyObjectWithStorageClassGlacier/file1] Expecting: <null> to be equal to: <"glacier"> ignoring case considerations at org.apache.hadoop.fs.s3a.ITestS3AStorageClass.assertObjectHasStorageClass(ITestS3AStorageClass.java:215) at org.apache.hadoop.fs.s3a.ITestS3AStorageClass.testCreateAndCopyObjectWithStorageClassGlacier(ITestS3AStorageClass.java:129)
we noticed this in a code review; the request factory only sets the option when the source is a file, not memory.
proposed: parameterize the test suite on disk/byte buffer, then fix
Attachments
Issue Links
- is caused by
-
HADOOP-12020 Support configuration of different S3 storage classes
- Resolved
- is depended upon by
-
HADOOP-16259 Distcp to set S3 Storage Class
- Resolved
- is related to
-
HADOOP-12020 Support configuration of different S3 storage classes
- Resolved
- links to