taoensso / faraday

Amazon DynamoDB client for Clojure
https://www.taoensso.com/faraday
Eclipse Public License 1.0
238 stars 84 forks source link

Return :billing-mode :provisioned when BillingModeSummary is nil #147

Closed joelittlejohn closed 4 years ago

joelittlejohn commented 4 years ago

The tests have started failing here although there have been no changes to the code. I think DynamoDB Local has changed behaviour (and since clj-dynamodb-local just downloads the latest, we're exposed to this kind of change).

It appears that a table set to provisioned billing mode can return a nil billing more summary. Since provisioned is the default, I suppose this is reasonable. I found reports on other projects that indicate people have seen real dynamo tables sometimes behave in this way, so I think it's something that we should accommodate rather than just update the test.

kipz commented 4 years ago

I was able to recreate the failure locally on master by removing the dynamodb-local cache directory which forces the update mentioned above:

rm -rf  ~/.clj-dynamodb-local/