Skip to content
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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

andreeastroe96
Copy link

No description provided.

if (item instanceof CloudBlob) {
items.add(AzureBlobInfo.fromCloudBlob((CloudBlob)item));
}

Copy link
Contributor

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

Copy link
Contributor

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 {
Copy link
Contributor

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"));
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants