Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20995

camel-azure-storage-blob uploadBlockBlob retry operation fails due to mark and reset issue / Flux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.0, 4.4.0, 4.7.0
    • 4.0.6, 4.4.4, 4.8.0
    • camel-azure
    • None
    • Unknown

    Description

      camel-azure-storage-blob uploadBlockBlob retry operation fails due to mark and reset issue / Flux

      Due to some of the issues Azure blob storage retrying for upload again, but it is failed to upload due to the input stream length is 0 which is not expected.

      As per the azure core/common bode Flux code suggestion it is suggested to make markAndreset request parameter to true, But the out camel component always send the parameter value as false.

      Solution: Instead of sending the default value to false, we can use inputStream.markSupported() method.

      Here I am adding traces and screenshots, for easy understanding.

      Thanks.

       

       

       

      Attachments

        1. Code snip.png
          341 kB
          Hareesh Billa
        2. Log trace
          7 kB
          Hareesh Billa

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              hareeshbilla Hareesh Billa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: