Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When running more than one test with Azure fixture, the second tests fails, with the error below.
> 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)
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.