[
https://issues.apache.org/jira/browse/OAK-9328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Miroslav Smiljanic updated OAK-9328:
------------------------------------
Attachment: 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)