You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Miroslav Smiljanic (Jira)" <ji...@apache.org> on 2021/01/20 11:59:00 UTC

[jira] [Commented] (OAK-9328) Error when running more than one benchmark test with Oak-Segment-Azure fixture

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

Miroslav Smiljanic commented on OAK-9328:
-----------------------------------------

Patch with the system property that delays test execution: [^OAK-9328.patch]

> Error when running more than one benchmark test with Oak-Segment-Azure fixture
> ------------------------------------------------------------------------------
>
>                 Key: OAK-9328
>                 URL: https://issues.apache.org/jira/browse/OAK-9328
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: benchmarks
>            Reporter: Miroslav Smiljanic
>            Assignee: Miroslav Smiljanic
>            Priority: Major
>         Attachments: OAK-9328.patch
>
>
> When running more than one test with Azure fixture, the second tests fails, with the error below.
> {noformat}
> > java -jar target/oak-benchmarks-*-SNAPSHOT.jar benchmark --azure 'DefaultEndpointsProtocol=https;AccountName=***;AccountKey=***;EndpointSuffix=core.windows.net'  --azureContainerName benchmark --azureRootPath oak GetDeepNodeTest GetNodeWithAnonymous Oak-Segment-Azure
> Apache Jackrabbit Oak 1.37-SNAPSHOT
> # GetNodeWithAnonymous             C     min     10%     50%     90%     max     N       mean 
> Oak-Segment-Azure                  1      25      26      27      29     66    2227      27
> # GetDeepNodeTest                  C     min     10%     50%     90%     max     N       mean 
> com.microsoft.azure.storage.StorageException: The specified container is being deleted. Try operation later.
>         at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:87)
>         at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:305)
>         at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:196)
>         at com.microsoft.azure.storage.blob.CloudBlobContainer.create(CloudBlobContainer.java:236)
>         at com.microsoft.azure.storage.blob.CloudBlobContainer.createIfNotExists(CloudBlobContainer.java:360)
>         at com.microsoft.azure.storage.blob.CloudBlobContainer.createIfNotExists(CloudBlobContainer.java:301)
>         at org.apache.jackrabbit.oak.fixture.SegmentTarFixture.setUpCluster(SegmentTarFixture.java:333)
>         at org.apache.jackrabbit.oak.fixture.OakRepositoryFixture.setUpCluster(OakRepositoryFixture.java:167)
>         at org.apache.jackrabbit.oak.fixture.OakRepositoryFixture.setUpCluster(OakRepositoryFixture.java:163)
>         at org.apache.jackrabbit.oak.benchmark.AbstractTest.createRepository(AbstractTest.java:663)
>         at org.apache.jackrabbit.oak.benchmark.AbstractTest.run(AbstractTest.java:209)
>         at org.apache.jackrabbit.oak.benchmark.BenchmarkRunner.main(BenchmarkRunner.java:487)
>         at org.apache.jackrabbit.oak.run.BenchmarkCommand.execute(BenchmarkCommand.java:27)
>         at org.apache.jackrabbit.oak.run.Main.main(Main.java:54)
> {noformat}
> After first test finishes, as part of the cleanup, Azure blob store container is being deleted. Second test tries to crate container again with the same name. It is not possible in blob store while deletion of the container with the same name is in progress.
> It can be solved with a start parameter that delays test execution, and gives enough time for container created by the previous test to be deleted.



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