New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception when account limit exceeded #98

Closed
sebdah opened this Issue Dec 20, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@sebdah
Owner

sebdah commented Dec 20, 2013

Unhandled exception when account limit exceeded

2013-12-19 14:08:36,610 - dynamic-dynamodb - INFO - dynamic-test2 - Consumed read units: 0%
2013-12-19 14:08:36,614 - dynamic-dynamodb - INFO - dynamic-test2 - Reached provisioned reads min limit: 1024
2013-12-19 14:08:36,938 - dynamic-dynamodb - INFO - dynamic-test2 - Consumed write units: 0%
2013-12-19 14:08:36,938 - dynamic-dynamodb - INFO - dynamic-test2 - Changing provisioning to 1024 read units and 1 write units
2013-12-19 14:08:37,352 - dynamic-dynamodb - INFO - dynamic-test2 - Provisioning updated to 1024 reads and 1 writes
2013-12-19 14:08:37,683 - dynamic-dynamodb - INFO - dynamic-test3 - Consumed read units: 0%
2013-12-19 14:08:37,683 - dynamic-dynamodb - INFO - dynamic-test3 - Reached provisioned reads min limit: 1024
2013-12-19 14:08:38,015 - dynamic-dynamodb - INFO - dynamic-test3 - Consumed write units: 0%
2013-12-19 14:08:38,016 - dynamic-dynamodb - INFO - dynamic-test3 - Changing provisioning to 1024 read units and 1 write units
Traceback (most recent call last):
  File "/usr/local/bin/dynamic-dynamodb", line 5, in <module>
    pkg_resources.run_script('dynamic-dynamodb==1.7.0-SNAPSHOT', 'dynamic-dynamodb')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 489, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1207, in run_script
    execfile(script_filename, namespace, namespace)
  File "/Library/Python/2.7/site-packages/dynamic_dynamodb-1.7.0_SNAPSHOT-py2.7.egg/EGG-INFO/scripts/dynamic-dynamodb", line 26, in <module>
    dynamic_dynamodb.main()
  File "/Library/Python/2.7/site-packages/dynamic_dynamodb-1.7.0_SNAPSHOT-py2.7.egg/dynamic_dynamodb/__init__.py", line 124, in main
    table.ensure_provisioning(table_name, table_key)
  File "/Library/Python/2.7/site-packages/dynamic_dynamodb-1.7.0_SNAPSHOT-py2.7.egg/dynamic_dynamodb/core/table.py", line 41, in ensure_provisioning
    table_name, updated_read_units, updated_write_units, key_name)
  File "/Library/Python/2.7/site-packages/dynamic_dynamodb-1.7.0_SNAPSHOT-py2.7.egg/dynamic_dynamodb/core/table.py", line 300, in __update_throughput
    'write': int(write_units)
  File "/Library/Python/2.7/site-packages/boto-2.20.1-py2.7.egg/boto/dynamodb2/table.py", line 323, in update
    'WriteCapacityUnits': int(self.throughput['write']),
  File "/Library/Python/2.7/site-packages/boto-2.20.1-py2.7.egg/boto/dynamodb2/layer1.py", line 1469, in update_table
    body=json.dumps(params))
  File "/Library/Python/2.7/site-packages/boto-2.20.1-py2.7.egg/boto/dynamodb2/layer1.py", line 1483, in make_request
    retry_handler=self._retry_handler)
  File "/Library/Python/2.7/site-packages/boto-2.20.1-py2.7.egg/boto/connection.py", line 907, in _mexe
    status = retry_handler(response, i, next_sleep)
  File "/Library/Python/2.7/site-packages/boto-2.20.1-py2.7.egg/boto/dynamodb2/layer1.py", line 1526, in _retry_handler
    data)
boto.exception.JSONResponseError: JSONResponseError: 400 Bad Request
{u'message': u'This request would have caused the ReadCapacityUnits limit to be exceeded for the account in us-east-1. Current ReadCapacityUnits reserved by the account: 1536. Limit: 2000. Current ReadCapacityUnits provisioned for the table and indexes: 512. Requested: 1024. Refer to the Amazon DynamoDB Developer Guide for current limits and how to request higher limits.', u'__type': u'com.amazonaws.dynamodb.v20120810#LimitExceededException'}

@ghost ghost assigned sebdah Dec 20, 2013

sebdah added a commit that referenced this issue Dec 20, 2013

@sebdah sebdah closed this Dec 21, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment