Git Product home page Git Product logo

Comments (9)

RyanFitzSimmonsAK avatar RyanFitzSimmonsAK commented on July 18, 2024

Hi @jeffgardnerdev, thanks for reaching out. Could you provide debug logs of this behavior? You can get debug logs by adding --debug to your command, and redacting any sensitive information. Logs with --delete and without --delete would both be appreciated. Thanks!

from aws-cli.

jeffgardnerdev avatar jeffgardnerdev commented on July 18, 2024

Here are the two debug outputs, one without the --delete option and one with the --delete option. In this case the two prefixes are identical but the sync command copies/deletes 4 of the 5 files every time. Bucket names are redacted. ListObjectsV2 responses for the two prefixes return the objects in a different order.
s3-sync-standard-to-directory-with-delete-debug-output.txt
s3-sync-standard-to-directory-debug-output.txt

from aws-cli.

RyanFitzSimmonsAK avatar RyanFitzSimmonsAK commented on July 18, 2024

@jeffgardnerdev, thanks for your patience. I was able to reproduce this behavior, and your theory that this is related to ListObjectsV2 not sorting directory buckets is likely correct. We've reached out to the service team, and I'll leave any updates in this issue.

If other people are experiencing this issue, providing details and any impact in this issue would be appreciated.

Ticket # for internal use : P114641353

from aws-cli.

jeffgardnerdev avatar jeffgardnerdev commented on July 18, 2024

@RyanFitzSimmonsAK Could you share some more information about the decision to disable the sync command for directory buckets entirely? This is useful functionality that would be nice to keep, provided the ordering issue could be fixed.

from aws-cli.

kellertk avatar kellertk commented on July 18, 2024

Hello,

Thank you for reporting this issue. We have released AWS CLI v1.32.25 and v2.15.13 and strongly recommend that you upgrade to address this issue. If you are unable to upgrade, do not run the aws s3 sync command with an S3 Express One Zone directory bucket.

from aws-cli.

kellertk avatar kellertk commented on July 18, 2024

@jeffgardnerdev I did see your question about further information, which I will post here if I am able.

from aws-cli.

kellertk avatar kellertk commented on July 18, 2024

Here are some additional technical details on this issue if you are interested.

The reason we’ve removed the sync command for directory buckets is what @jeffgardnerdev already noticed: there is an incompatibility between the way that the CLI compares a list of objects in a bucket and the results of the ListObjectsv2 API call on directory buckets[1]. Operations with S3 are threaded, and we’re comparing a list of objects as from the S3 API as that list is being populated. This isn’t compatible with directory buckets, because there’s no way to ensure the ordering of objects coming from S3. Because of the incompatibility, the sync command will not work properly on a directory bucket. There is no workaround for directory buckets and sync at this time, except to refrain from using sync and instead use cp or similar.

In the versions of the CLI I noted above, v1.32.25 and v2.15.13 and later, we removed sync with directory bucket destinations or sources to prevent anyone from using this command and getting inconsistent or incorrect results.

1: Specifically, "Sorting order of returned objects" on the linked documentation page.

from aws-cli.

github-actions avatar github-actions commented on July 18, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

from aws-cli.

Froskekongen avatar Froskekongen commented on July 18, 2024

Isn't it a bit weird to close this issue, @kellertk? I would assume that people would want sync to work with S3 Express One Zone, for natural API compatibility.

from aws-cli.

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.