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

Azure Storage Blob - BlockBlobClient Sync Stack Integration #34409

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

g2vinay
Copy link
Member

@g2vinay g2vinay commented Apr 11, 2023

  • Adds Sync Stack to Storage Block Blob Client.
  • Adds Sync logic to Storage Policies.
  • Adds Missing Async tests for Storage Block Blob Client.

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Apr 11, 2023
@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 11, 2023

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-storage-common
azure-storage-blob

@g2vinay
Copy link
Member Author

g2vinay commented Apr 11, 2023

Remaining Block Blob Client Missing Async tests to follow in upcoming commit this week.

@g2vinay g2vinay marked this pull request as ready for review April 11, 2023 18:51
@g2vinay g2vinay requested a review from ibrahimrabab June 28, 2023 15:46
Comment on lines 644 to +653
try {
return blockWithOptionalTimeout(upload, timeout);
return timeout != null
? THREAD_POOL.submit(() -> operation.get()).get(timeout.toMillis(), TimeUnit.MILLISECONDS)
: operation.get();
} catch (UncheckedIOException e) {
throw LOGGER.logExceptionAsError(e);
} catch (ExecutionException | TimeoutException | InterruptedException e) {
throw LOGGER.logExceptionAsError(new RuntimeException(e));
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Member

@samvaity samvaity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other changes lgtm.

Comment on lines 644 to +653
try {
return blockWithOptionalTimeout(upload, timeout);
return timeout != null
? THREAD_POOL.submit(() -> operation.get()).get(timeout.toMillis(), TimeUnit.MILLISECONDS)
: operation.get();
} catch (UncheckedIOException e) {
throw LOGGER.logExceptionAsError(e);
} catch (ExecutionException | TimeoutException | InterruptedException e) {
throw LOGGER.logExceptionAsError(new RuntimeException(e));
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

BinaryData data = options.getData();
if (data == null) {
if (options.getDataStream() != null) {
data = BinaryData.fromStream(options.getDataStream());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this issue applies here too #33256
We should add a test case to confirm this is not an issue.

}

// TODO (kasobol-msft) add metadata back (https://github.com/Azure/azure-sdk-for-net/issues/15969)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo can be removed, @ibrahimrabab ?

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

Hi @g2vinay. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Sep 8, 2023
@github-actions
Copy link
Contributor

Hi @g2vinay. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing /reopen if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions bot closed this Sep 15, 2023
@joshfree
Copy link
Member

Reactivating just to get CI run coverage (feel free to close again if it's not something we want!)

@joshfree joshfree reopened this Jan 13, 2025
@github-actions github-actions bot removed the no-recent-activity There has been no recent activity on this issue. label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants