Skip to content
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

Handle missing table exceptions #12

Closed
sebdah opened this issue Apr 5, 2013 · 0 comments
Closed

Handle missing table exceptions #12

sebdah opened this issue Apr 5, 2013 · 0 comments
Assignees
Milestone

Comments

@sebdah
Copy link
Owner

sebdah commented Apr 5, 2013

Stack trace:

Traceback (most recent call last):
  File "./dynamic-dynamodb", line 7, in <module>
    main.main()
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/main.py", line 174, in main
    dynamic_ddb.run()
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/dynamic_dynamodb.py", line 148, in run
    self.ensure_proper_provisioning()
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/dynamic_dynamodb.py", line 160, in ensure_proper_provisioning
    read_usage_percent = self._get_consumed_reads_percentage()
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/dynamic_dynamodb.py", line 322, in _get_consumed_reads_percentage
    float(consumed_reads) / float(self._get_provisioned_read_units()) * 100))
  File "/Users/sebastian/git/dynamic-dynamodb/dynamic_dynamodb/dynamic_dynamodb.py", line 365, in _get_provisioned_read_units
    table = self.ddb_connection.get_table(self.table_name)
  File "/usr/local/lib/python2.7/site-packages/boto/dynamodb/layer2.py", line 360, in get_table
    response = self.layer1.describe_table(name)
  File "/usr/local/lib/python2.7/site-packages/boto/dynamodb/layer1.py", line 217, in describe_table
    return self.make_request('DescribeTable', json_input)
  File "/usr/local/lib/python2.7/site-packages/boto/dynamodb/layer1.py", line 118, in make_request
    retry_handler=self._retry_handler)
  File "/usr/local/lib/python2.7/site-packages/boto/connection.py", line 845, in _mexe
    status = retry_handler(response, i, next_sleep)
  File "/usr/local/lib/python2.7/site-packages/boto/dynamodb/layer1.py", line 158, in _retry_handler
    data)
boto.exception.DynamoDBResponseError: DynamoDBResponseError: 400 Bad Request
{u'message': u'Requested resource not found: Table: prod-sssions-201304 not found', u'__type': u'com.amazonaws.dynamodb.v20111205#ResourceNotFoundException'}
@ghost ghost assigned sebdah Apr 5, 2013
sebdah added a commit that referenced this issue Apr 5, 2013
@sebdah sebdah closed this as completed Apr 5, 2013
sebdah added a commit that referenced this issue Apr 5, 2013
sebdah added a commit that referenced this issue Apr 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant