jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Ryan (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OAK-9318) oak-segment-aws integration tests fail when region is us-east-1
Date Fri, 08 Jan 2021 21:05:00 GMT

    [ https://issues.apache.org/jira/browse/OAK-9318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17261586#comment-17261586
] 

Matt Ryan commented on OAK-9318:
--------------------------------

A change in Amazon's SDK meant that if you are using the region {{us-east-1}} you simply don't
specify the region.  Unfortunately this causes our code to fail (dumb, I know).  To work
around it you simply detect if the region is {{us-east-1}} and instead send {{null}} as the
region if so.

See [0] for an example of how we're handling this in {{oak-blob-cloud}}.

[0] - [https://github.com/apache/jackrabbit-oak/blob/efc9485b688be249eac2507e1658d4157303b640/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/S3Backend.java#L266-L274]

> oak-segment-aws integration tests fail when region is us-east-1
> ---------------------------------------------------------------
>
>                 Key: OAK-9318
>                 URL: https://issues.apache.org/jira/browse/OAK-9318
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-aws
>    Affects Versions: 1.36.0
>            Reporter: Matt Ryan
>            Priority: Major
>
> If you run the integration tests for {{oak-segment-aws}}, the tests will fail if your
configuration specifies the AWS region {{us-east-1}}.
> To reproduce, in the {{oak-it}} module run {{mvn test -Ds3.config=/path/to/aws.config
-PintegrationTesting}}.  If {{s3Region=us-east-1}} is set in your config the tests will fail
when trying to create a bucket for the test content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message