Git Product home page Git Product logo

Comments (2)

afranken avatar afranken commented on July 22, 2024

@vlbaluk did you get an AsyncClient to work in your tests? It should be easily possible to do so.
I can look into adding Async versions to the test infrastructure in one of the next releases for convenience.

from s3mock.

vlbaluk avatar vlbaluk commented on July 22, 2024

Hey @afranken, Thank you for asking.

It is not functioning as expected with S3TransferManager, which should enable multipart uploading and downloading by default.

  1. File content on the S3 mock Docker container contains not only data but also metadata, which leads to incorrect downloads.
  2. S3Mock always returns incorrect length for multipart downloads, too.

Experiment, file content is "BBBBB"

  • Async CRT client with multipart and S3TransferManager stores the following file in S3Mock docker container:

BBBBBAsyncAttachment

  • Synchronous client stores correct content:

ffe7b8b720bd49a98902fdb950d5bc97

Code snippet:

store.write("test data".getBytes(UTF_8));
 // under the hood, s3TransferManager.uploadFile(uploadFileRequest) with CRT async client


s3TransferManager.download(downloadFileRequest).completionFuture().join().result().response().contentLength() 
// download returns incorrect content, including additional lines at the beginning and at the end, as on the screen above.  
                

from s3mock.

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.