[
https://issues.apache.org/jira/browse/HADOOP-13877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mingliang Liu updated HADOOP-13877:
-----------------------------------
Attachment: HADOOP-13877-HADOOP-13345.002.patch
In current unit test, the cases that are not using default bucket name will set
the config again and initialize a new metadata store. You're right about making
createContract() more flexible and clear about table/bucket binding.
I had a look at the test code, and wondering if we can make it clear in a
different approach: 1) we can avoid creating contract multiple times if we make
{{contract}} protected 2) we can remove the assumption that the default table
name is always the bucket name 3) we can also respect the test configuration
file as the v1 patch does.
I attach a simple patch for that idea. Creating a new contract is not heavy
anyway as the s3 file system is mocked. I also +1 the v1 patch; you can skip
the v2 patch unless interested.
> S3Guard: fix TestDynamoDBMetadataStore when fs.s3a.s3guard.ddb.table is set
> ---------------------------------------------------------------------------
>
> Key: HADOOP-13877
> URL: https://issues.apache.org/jira/browse/HADOOP-13877
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: HADOOP-13345
> Reporter: Aaron Fabbri
> Assignee: Aaron Fabbri
> Attachments: HADOOP-13877-HADOOP-13345.001.patch,
> HADOOP-13877-HADOOP-13345.002.patch
>
>
> I see a couple of failures in the DynamoDB MetadataStore unit test when I set
> {{fs.s3a.s3guard.ddb.table}} in my test/resources/core-site.xml.
> I have a fix already, so I'll take this JIRA.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]