-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[plugin] repository-azure is not working properly hangs on basic operations #1740
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -283,4 +283,23 @@ task azureThirdPartyTest(type: Test) { | |
nonInputProperties.systemProperty 'test.azure.endpoint_suffix', "${-> azureAddress.call() }" | ||
} | ||
} | ||
check.dependsOn(azureThirdPartyTest) | ||
|
||
task azureThirdPartyDefaultXmlTest(type: Test) { | ||
SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class); | ||
SourceSet internalTestSourceSet = sourceSets.getByName(InternalClusterTestPlugin.SOURCE_SET_NAME) | ||
setTestClassesDirs(internalTestSourceSet.getOutput().getClassesDirs()) | ||
setClasspath(internalTestSourceSet.getRuntimeClasspath()) | ||
dependsOn tasks.internalClusterTest | ||
include '**/AzureStorageCleanupThirdPartyTests.class' | ||
systemProperty 'javax.xml.stream.XMLInputFactory', "com.sun.xml.internal.stream.XMLInputFactoryImpl" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn’t this be the default for all tests to match real usage? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We would hopefully do upstream fix and will test with both, this is the only test which actually could run against Azure cloud, I did run it in all configurations. |
||
systemProperty 'test.azure.account', azureAccount ? azureAccount : "" | ||
systemProperty 'test.azure.key', azureKey ? azureKey : "" | ||
systemProperty 'test.azure.sas_token', azureSasToken ? azureSasToken : "" | ||
systemProperty 'test.azure.container', azureContainer ? azureContainer : "" | ||
systemProperty 'test.azure.base', (azureBasePath ? azureBasePath : "") + "_third_party_tests_" + BuildParams.testSeed | ||
if (useFixture) { | ||
nonInputProperties.systemProperty 'test.azure.endpoint_suffix', "${-> azureAddress.call() }" | ||
} | ||
} | ||
|
||
check.dependsOn(azureThirdPartyTest, azureThirdPartyDefaultXmlTest) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,6 +224,8 @@ public DeleteResult deleteBlobDirectory(String path, Executor executor) throws U | |
|
||
do { | ||
// Fetch one page at a time, others are going to be fetched by continuation token | ||
// TODO: reconsider reverting to simplified approach once https://github.com/Azure/azure-sdk-for-java/issues/26064 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we open an OpenSearch issue as well so we don't forget here? Something like "Revert repository-azure patch once upstream fixes are available" would be fine. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
// gets addressed. | ||
final Optional<PagedResponse<BlobItem>> pageOpt = blobContainer.listBlobs(listBlobsOptions, timeout()) | ||
.streamByPage(continuationToken) | ||
.findFirst(); | ||
|
@@ -327,6 +329,8 @@ public Map<String, BlobMetadata> listBlobsByPrefix(String keyPath, String prefix | |
|
||
do { | ||
// Fetch one page at a time, others are going to be fetched by continuation token | ||
// TODO: reconsider reverting to simplified approach once https://github.com/Azure/azure-sdk-for-java/issues/26064 | ||
// gets addressed | ||
final Optional<PagedResponse<BlobItem>> pageOpt = blobContainer.listBlobsByHierarchy("/", listBlobsOptions, timeout()) | ||
.streamByPage(continuationToken) | ||
.findFirst(); | ||
|
@@ -372,6 +376,9 @@ public Map<String, BlobContainer> children(BlobPath path) throws URISyntaxExcept | |
String continuationToken = null; | ||
|
||
do { | ||
// Fetch one page at a time, others are going to be fetched by continuation token | ||
// TODO: reconsider reverting to simplified approach once https://github.com/Azure/azure-sdk-for-java/issues/26064 | ||
// gets addressed | ||
final Optional<PagedResponse<BlobItem>> pageOpt = blobContainer.listBlobsByHierarchy("/", listBlobsOptions, timeout()) | ||
.streamByPage(continuationToken) | ||
.findFirst(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍