Skip to content

[BUG] EncryptedBlobAsyncClient uses block() in async method #12689

Description

@weidongxu-microsoft

Describe the bug
EncryptedBlobAsyncClient uses block() in async method
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobAsyncClient.java#L448-L449

It would cause runtime error

block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-nio-5

Exception or Stack Trace
Add the exception log and stack trace if available

To Reproduce
Steps to reproduce the behavior:
Config with AsyncKeyEncryptionKey and upload some file.

encryptedBlobClient.uploadFromFile(file2Path);

Code Snippet
Add the code snippet that causes the issue.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Setup (please complete the following information):

  • OS: [e.g. iOS] Windows
  • IDE : [e.g. IntelliJ] IntelliJ
  • Version of the Library used 12.7.0

Additional context
Add any other context about the problem here.

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions