hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-13937) Mock bucket locations in MockS3ClientFactory
Date Fri, 23 Dec 2016 01:10:58 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-13937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mingliang Liu updated HADOOP-13937:
-----------------------------------
    Attachment: HADOOP-13937-HADOOP-13345.000.patch

Now the unit test:
{code}
Creating DynamoDB table TestDynamoDBMetadataStore in region us-west-1
{code}

We return non-null region for all bucket locations instead of just the bucket because the
s3 client may operate on other buckets other than the default S3 bucket when initializing
{{DynamoDBMetadataStore}}.


> Mock bucket locations in MockS3ClientFactory
> --------------------------------------------
>
>                 Key: HADOOP-13937
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13937
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: HADOOP-13345
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>            Priority: Minor
>         Attachments: HADOOP-13937-HADOOP-13345.000.patch
>
>
> Currently the MockS3ClientFactory}} does not mock the bucket locations. One effect is
that {{TestDynamoDBMetadataStore}} will have null region for the bucket.
> {code}
> INFO - Creating DynamoDB table TestDynamoDBMetadataStore in region null
> {code}
> The reason is that the DynamoDBMetadataStore will use the same region as the S3 bucket.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message