localstack-error

This project demonstrates 2 errors with localstack.

The first error involves doing many puts in parallel:

Note: This error has been fixed by localstack/localstack#1217

  1. Clone this repo
  2. Make sure Docker is running on your machine
  3. Run mvn clean install -Dtest=LocalstackTest#testParallelWrites
  4. See many errors (Unable to verify integrity of data upload) no errors
  5. Change MAX_THREADS to 1 in LocalstackTest
  6. Run mvn clean install -Dtest=LocalstackTest#testParallelWrites again
  7. See no errors
  8. Be confused and sad happy

The second error involves doing a put with data that has a trailing newline:

  1. Clone this repo
  2. Make sure Docker is running on your machine
  3. Run mvn clean install -Dtest=LocalstackTest#testTrailingNewline
  4. See an error (Unable to verify integrity of data upload)
  5. Remove the trailing newline in the contents variable in the testTrailingNewline method in LocalstackTest
  6. Run mvn clean install -Dtest=LocalstackTest#testTrailingNewline again
  7. See no error
  8. Be confused and sad