Giter VIP home page Giter VIP logo

amazon-glacier-developer-guide's Introduction

amazon-glacier-developer-guide's People

Contributors

aws-alan avatar aws-dianakm avatar blange avatar gfernie avatar hmaher avatar hmnzr avatar hyandell avatar joshbean avatar k2009dutta avatar luankevinferreira avatar randyocheltree avatar txciclista avatar wjdavis5 avatar yanjieniu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-glacier-developer-guide's Issues

Java example for generating Tree Hash does not work

The Java example at https://github.com/awsdocs/amazon-glacier-developer-guide/blob/master/doc_source/checksum-calculations.md contains a bug in getChunkSHA256Hashes. The offset variable is misused when reading from the fileStream into the buff buffer. As soon as you try to hash a file larger than one chunk size (1MiB) it will thrown an IndexOutOfBounds exception:

Exception in thread "main" java.lang.IndexOutOfBoundsException
        at java.base/java.io.FileInputStream.readBytes(Native Method)
        at java.base/java.io.FileInputStream.read(FileInputStream.java:279)
        at TreeHashExample.getChunkSHA256Hashes(TreeHashExample.java:97)
        at TreeHashExample.computeSHA256TreeHash(TreeHashExample.java:56)
        at TreeHashExample.main(TreeHashExample.java:28)

Removing the offset variable and changing the while-loop to:

            while ((bytesRead = fileStream.readNBytes(buff, 0, ONE_MB)) > 0) {
                md.reset();
                md.update(buff, 0, bytesRead);
                chunkSHA256Hashes[idx++] = md.digest();
            }

will make it work correctly.

test issue

Glacier topic blah ..has this test issue. fix it.

Bulk retrieval is free?

Correct me if I'm wrong, but in this doc we mention bulk retrieval cost the least but we don't say how to calculate.

Screenshot 2023-05-08 at 7 00 48 pm

I did some search and found it's free:

Screenshot 2023-05-08 at 6 58 30 pm

https://aws.amazon.com/s3/glacier/pricing/
this was also mentioned in https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-s3-glacier-storage-class-amazon-s3-glacier-flexible-retrieval/

If it is true, I think it'd be more user-friendly for the doc to just say so("cost the least" is technically true but ambiguous ).

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.