-
Notifications
You must be signed in to change notification settings - Fork 414
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
OAK-11267 - Upgrade Azure SDK V8 to V12 for oak-blob-azure #2137
base: trunk
Are you sure you want to change the base?
Conversation
if (item instanceof CloudBlob) { | ||
items.add(AzureBlobInfo.fromCloudBlob((CloudBlob)item)); | ||
} | ||
|
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.
Is this needed? Can't we just return the blobItems.getIterator()? Pagination based on max results is already handled by the sdk, https://learn.microsoft.com/en-us/azure/developer/java/sdk/pagination
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.
Consider just using the sdk without any decorator as well. Just returning blobItems.getIterator() directly in the getAll* methods
*/ | ||
package org.apache.jackrabbit.oak.blob.cloud.azure.blobstorage; | ||
|
||
public interface Constants { |
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.
Update to latest values
@@ -94,12 +97,22 @@ public DataStore createDataStore() { | |||
|
|||
String connectionString = Utils.getConnectionStringFromProperties(azProps); | |||
try { | |||
CloudBlobContainer container = Utils.getBlobContainer(connectionString, containerName); | |||
container.createIfNotExists(); | |||
boolean useSDK12 = Boolean.parseBoolean(azProps.getProperty(AZURE_SDK_12_ENABLED, "false")); |
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.
What about tests/implementations dependent upon the AzureDataStoreFixture, we should have parametrized tests or some other mechanism that test those with both v12 & v8 versions.
There are many command supproted in oak run utility which would have corresponding tests which should support above.
No description provided.