Giter Site home page Giter Site logo

[BUG] java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-epoll-1, when using uploadWithResponse method of BlobClient about azure-sdk-for-java HOT 5 CLOSED

RichaNegi avatar RichaNegi commented on June 20, 2024
[BUG] java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-epoll-1, when using uploadWithResponse method of BlobClient

from azure-sdk-for-java.

Comments (5)

alzimmermsft avatar alzimmermsft commented on June 20, 2024 2

@ibrahimrabab when release is done this month can you update this issue with the version containing the fix.

from azure-sdk-for-java.

joshfree avatar joshfree commented on June 20, 2024

@alzimmermsft could you help Storage by taking a first look at this?

/cc @ibrahimrabab

from azure-sdk-for-java.

alzimmermsft avatar alzimmermsft commented on June 20, 2024

Thanks for reporting this @RichaNegi

This issue appears due to the InputStream returned by the BlobClient blocking downloads from the service but when the InputStream is passed to the upload method the stream is converted from InputStream to Flux<ByteBuffer> due to the sync-over-async nature of the Storage SDKs.

For now, I'll work with you on a workaround for this. Is there a reason that this code pattern is used rather than the Copy Blob REST API?

from azure-sdk-for-java.

bferrenq avatar bferrenq commented on June 20, 2024

Hello @alzimmermsft ,
and thank you for your feedback and proposal.
Rational on our side for such use case is our framework is doing streaming between various source type and destination, like sftp to sftp or sftp to blobstore. In this ticket situation it is blob to blob.
We could potentially update our code to use "copy" instead of "uploadWithResponse", can you please tell us if behind the scene it would bring some optimizations or any additional benefits, or would it only fix this issue?

from azure-sdk-for-java.

baiglin avatar baiglin commented on June 20, 2024

Hi @alzimmermsft where can we check the new version delivered from that change?

from azure-sdk-for-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.